Programmatically adding/deleting users to/from portal groups

I am using the following PDK api, to delete an user from a portal group (otp_sales).
I get the following error which doestn make sense. I tested the following api from a
script shown below. In my application, this gets called from a trigger, and fails
because it sees a ROLLBACK getting used in the API.
<<<<<<<<<<<<< delete_from_group.sql >>>>>>>>>>>>>>>>>>>>>>
DECLARE
BEGIN
moc.wwsec_api.delete_user_from_list (p_group_id
=>MOC.wwsec_API.GROUP_ID('OTP_SALES')
,p_member_person_id =>73);
END;
<<<<<<<<<<<<<<<<<<<<<<<<<<>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
SQL> @delete_from_group.sql
Input truncated to 1 characters
DECLARE
ERROR at line 1:
ORA-01086: savepoint 'DELETEUSERFROMLIST_SAVEPOINT' never established
ORA-06512: at "MOC.WWSEC_API", line 2467
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "MOC.WWCTX_SSO", line 849
ORA-06510: PL/SQL: unhandled user-defined exception
ORA-06512: at "MOC.WWCTX_SSO", line 669
ORA-06502: PL/SQL: numeric or value error
ORA-06512: at line 3
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
Thanks
regards
-Ananth

We had the same problem and it turned out that deleting a portal user(delete_portal_user), removing a portal user from a list (delete_user_from_list) or updating a portal user, the "savepoint xxxx never established message" came up when there was no context set. If the procedure is called from within a portal page (or as user portal30) ,and the context is set and it works. The solution is to check to see if the context was set, and then set it if not.
if not portal30.wwctx_api_private.is_context_set then
portal30.wwctx_api_private.set_context(p_user_name => 'portal30');
end if;
Hope this helps
Tania

Similar Messages

  • LDAP Resource Adapter - Delete "uniqueMember"s from LDAP Groups

    We are trying to add/delete users (dn) to LDAP groups. Built in a workflow that uses the "updateResoruceObject" service to update any LDAP Group. The 'add' operation works fine as anticipated, but the 'delete' does not. Our guess is that the LDAPResourceAdapter only supports the ldapadd and not delete. We want to find out if customizing the LDAPResourceAdapter is the only workaround.
    Thanks in advance.
    Message was edited by:
    indie

    Hey, I am challenged now by not being able to remove users from ldapGroups. I found after adding ldapGroups to LDAP schema mapping, I can only keep adding users to the new groups, accounts[LDAP].ldapGroups is never able to return any value, namely is always null, so I also keep getting errors for user updating because the form keeps adding the same groups based on my custom formula.
    Overall, would you mind explain a little bit in detail how you ldapGroups field works for you on updating user groups?

  • User mapping from portal to R/3

    Hello everyone,
    Our situation is this :
    We made some visual composer iviews (charts and tables) that get data from R/3.
    Instead of creating users in R/3, we want to use only one public user who can only call RFC's in R/3. So how is the user mapping implemented in this situation?
    Please give me detailed explanation for it or links of documentation.
    I will be appreciative and all answers will be rewarded with points.
    Thanks for help.

    In addition and from a maintenance perspective you could do a: Portal Group to R/3 UserMapping.
    This will then automatically map all Portal Users in the Portal Group to the one R/3 user in the back-end. This saves effort when new users are created on the portal you don't have to map them all.
    This method is also proposed by SAP for mapping to MDM for example.
    NOTE: When you choose this you cannot trace the user in the back-end because
    this back-end user is shared. If this is not a problem for your scenarion then I would say go for it.
    Cheers,
    Benjamin Houttuin

  • Users based on Portal Group

    Hi all,
    Is there any table or RFC which contains the Users based on Portal Group in ECC.I need to writa a programme which extracts the users based on poratal group.
    Thanks and Regards,
    Venkat

    Hi Venkat,
    To get users of a group:
    boolean b =false;
    String name = null;
    IGroup grp = UMFactory.getGroupFactory().getGroupByUniqueName("GroupName entered by User as a input");
    if(grp.equals("<Name of Group>"))
           Iterator i = grp.getUserMembers(true);
           grp.getGroupMembers(true);
           for (int a= 0; i.hasNext(); a++)
                  name = i.next().getClass().getName();
                  //Print / Store Name
    Regards,
    Vaibhav

  • CUA- Deleting user IDs from Child systems

    Is there a possibility of configuring CUA in such a way that user IDs can be created and access can be updated from CUA but deleting user IDs should be taking place only in the child system (Not in all the child systems)?

    Generally good advice to keep the uniqueness of UIDs over time, also after Elvis has left the building
    What you could consider is a CUA RFC user which is not authorized to delete UID's and schedule a purge job for those IDOCs which deleted only them.
    However these sorts of "workaround" solutions are not the best advise, to be honest. What happens it someone temporarily assigns SAP_ALL because there is a big problem and authorizations should be excluded as the cause to get it working again?
    Also, every time a new child system is added to the CUA you will be flooded.
    My advice: Rather change your procedure (as discribed by Jurgen).
    What would be interesting to test is whether you are authorized to move a user (change the authorization relevevant group which they currently have) to a group which the CUA user is no long able to subsequently administrate? But theen you will still be hunting down IDOCs from time to time, most likely.
    If your shop is big enough to have these systems you have described, then you might want to consider an IdM system to replace your CUA at some time.
    If you wish, I will move this thread to the IdM forum.
    Cheers,
    Julius
    ps: Please do not cross-post.

  • How to delete user SAP* from database in MaxDB

    I´m unable to login with user SAP* into client 000 but in other clients.
    How can I delete the user SAP* from client 000 that I can login with the standard password?
    Is it possible within a transaction in another client or only on DB?

    Hi Damian,
    You need to connect to MaxDB SQL studio using user SuperDBA,admin
    Run the following commands
    select bname from <SAPSCHEMA>.USER02 where bname='SAP' and MANDT='000;*
    This will list user SAP* from client 000
    delete from <SAPSCHEMA>.USR02 where bname='SAP' and MANDT='000';*
    This will delete SAP* from client 000.
    Regards,
    Deepak Kori

  • Metadata through user input from portal application while new check In

    Hi,
    We have a requirment to create new doc/html from portal end, and check in it into UCM with user populated metadata's
    I have few quetions
    - Can I user OOTB RichtextEditor taskflow with little customization.
    - Is it a easy option to add a check in form (custom taskflow).
    - or we have to create new custom taskflow and use CHECKIN_NEW service using RIDC api.
    Thanks
    Edited by: 953836 on Aug 21, 2012 2:20 AM

    You could go with the standard stuff, but everything depends on what user experience you want to achieve.
    a) doc/html
    What formats you want to support? HTML is OK, but .DOC (especially if it means MS-Word) might be a challenge
    b) you could use SSXA tags (see here: http://docs.oracle.com/cd/E23943_01/doc.1111/e13650/toc.htm ) which could do exactly what you ask for (via Contributor Data Files). Note, however, that this user experience is not often met with understanding. And even more important, mind this: Clarification on SSXA Support with WebCenter Portal
    c) you could also use CHECKIN_NEW_FORM (see here http://docs.oracle.com/cd/E23943_01/doc.1111/e11011/c04_core.htm#BABGBCHI ) and somehow consume its output in your custom code. By doing this, you could use Content's standard functionality, profiles, but yet, achieve the user experience similar to what Desktop Integration Suite provides.

  • Delete connection information from portal

    i have successfully imported the portal pages and portlets.now i am not able to edit the connection information as it is disabled in the connection information for my old connection.
    how can i delete or edit connection information from portal
    thanks
    mish

    Check out this thread. Something similar would do for a KM Repository as well.
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=2812737&messageID=608126">https://forums.sdn.sap.com/click.jspa?searchID=2812737&messageID=608126</a>

  • Adding multiple users into one security group at one shot

    Hi,
    Is there any way we can add multiple users into one security group at one shot into PWA.
    For example: I want 100 create 100 users in EPM and Providing them with custom define Team defined permissions and can I add Time sheet Manager as well while creating bulk user through resource template in Project server 2010.
    Thanks,
    Prashant

    Hi Prashant,
    In order to add users in a security group, you can open the group, select all the appropriate resources (pressing CTRL key) and add them to the group. There is no other easy way. Otherwise a powershell script could do the job.
    For the timesheet manager, if all the 100 resources have the same timesheet manager, you can go to the resource center, select the resources (sorting by resource ID will give you together the latest resources added), bulk edit the resources and select the
    timesheet manager for the selected resources.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

  • Get User ID from Portal Environment

    Hi,
    In order to avoid creation of as many SAP backend users as our Portal Customers. We have created one SAP communication user and mapped it to LDAP roles & a similar LDAP user. The same user is configured in SICF for this ABAP webdynpro application.
    Now following are my questions:
    1- Is the above mentioned strategy is recommended or should be avoided? when & why
    2- How can we get the portal customer id in ABAP webdynpro code
    as we need to find which customer it is related to?
    Thanx.

    Thanx I got the answer from one of the old log....

  • How do u delete a contact from a group in address book?

    I have been on address book help and have found where it clearly explains how to remove a contact from a group? Problem is the program will not highlight the option in the edit menu to perform this action...what gives???

    In your address book on the iMac drag the contact to the All on My Mac section.
    Check that section to make sure the contact copied there correctly. Next remove it from the iCloud section and thus from your other devices.
    OT

  • Problem adding some user or active directory group to sharepoint 2010 group

    Hi All
    I have a problem in a specific site collection in a web Application (but not on other site collection in that webApp).
    whenever I add a user like some system account to a sharepoint group or create a new sharepoint group or add an ActiveDirectory group to a sharepoint group I get an error and the user / group are not added :
    System.Runtime.InteropServices.COMException: [Work Email Address] - [Wrong Email Format]    at Microsoft.SharePoint.Library.SPRequestInternalClass.EnsureUserExists(String bstrUrl, String bstrLogin, String bstrEmail, String bstrName, String
    bstrNotes, String bstrMobilePhone, Int32 lFlags, Boolean bIsRole, Boolean bSendEmail, Boolean bForceAdd, Byte[]& ppsaSystemId, Boolean bImportDeleted, Int32& plUserId)     at Microsoft.SharePoint.Library.SPRequest.EnsureUserExists(String
    bstrUrl, String bstrLogin, String bstrEmail, String bstrName, String bstrNotes, String bstrMobilePhone, Int32 lFlags, Boolean bIsRole, Boolean bSendEmail, Boolean bForceAdd, Byte[]& ppsaSystemId, Boolean bImportDeleted, Int32& plUserId)
    when I add a regular user - all goes well.
    10x for any help
    Shlomy

    Hi Shlomy,
    i was thinking, perhaps there is an application that use this checking method on your specific site collection, and perhaps it is using a hard-coded command to request it, but seems it got some issue.
    as the other site collections, may not have the issue, so perhaps other site collections don't have this application, and you may check that as lead investigation process.
    you may try to capture fiddler tool, it may come in handy on tracing the http requests.
    http://fiddler2.com/
    usually when i trace the application, i would like to create new site, and add the webpart or application one by one, then i may know which application/webpart that have the issue.
    as other regular user may not have the issue, perhaps its because system account is by design to not have an email address properties, so when the application/webpart request for it, it become failure.
    Regards,
    Aries
    Microsoft Online Community Support
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

  • Display attachments in SAP work list (at user decision) from portal.

    Hi Experts,
    How can we get the uploaded attachment form portal to SAP UWl .
    We have requirement like user wants to upload the travel expenses related documents (.PDF,.Txt or .doc files) in portal that attachments needs to available in approver inbox as link at user decision level.
    We have done the binding part and we are getting the attachment from first level to next level but unable to get the attachments uploaded in portal.
    I found one link but itu2019s not working.
    How to store Multiple Attachments in Workflow.
    SAP_WAPI_GET_ATTACHMENTS by using this function module I am getting only OBJECT_ID                                SOFM
    DESCRIPT                       Office Document
    SHORTTEXT                      Office Document
    Please help....good Rewards for useful answers ....
    Edited by: RameshG on Jan 12, 2011 7:04 PM

    Dear Ramesh,
    Need your help!
    While creating travel expense request from Enterprise Portal, travelers create few attachments [pdf/doc/xms/txt] and then save the travel expense reports.
    A workflow then gets triggered and this travel expense report reached the SAP Inboxes of the checkers [in the finance department].
    The issue here is that these checkers do not have access to enterprise portal and they expect to see the attachments [that the traveler has created via the portal] via corresponding work items in their SAP Inboxes u2013 which currently is not happening!
    I checked the trip transaction that got created [in the backend / in SAP] and found the u2018attachment listu2019 menu option in GOS being disabled [may be because there is not even one attachment that has come to the backend!]
    What needs to be done so that the attachments can even be viewed from the backend / from SAP Inbox?  Does this involve coding?
    Please suggest!
    Br,
    Hari

  • Delete Repository Service from portal

    Hi.
    I want to completely remove a custom Repository Service from my NW04s/SP9 Portal. I already deleted the service config and undeployed the containing par.
    What else?
    Jan

    Check out this thread. Something similar would do for a KM Repository as well.
    <a href="https://forums.sdn.sap.com/click.jspa?searchID=2812737&messageID=608126">https://forums.sdn.sap.com/click.jspa?searchID=2812737&messageID=608126</a>

  • How to delete user data from damaged iPhone?

    Hi,
    I have a damaged iPhone 3GS that I'm selling for parts on ebay. The device's is currently stuck on "update mode", basically I was updating to iOS 6.1 a while back and in the middle of the process, the phone returned an "hardware error" message and now it's allways stuck on the "connect to itunes" screen.
    No matter what resets I try to do or restores, it wll allways return the "hardware error" message and then to the apple screen and finally to the "connect to itunes" screen.
    So, I decided to sell it for parts since I've bought another (newer) iPhone, but I wanted to make sure that all my user data (accounts, text messages, phone numbers, etc.) was deleted just in case the lucky buyer manages to get it fixed. How can I do this?
    Will the "clear phone data"option on iCloud do the trick, or do I need to do something more?
    I also know that have to remove the iPhone from my iCloud account, is this correct?
    What are procedures can you guys recomend for this?
    Thanks

    I have a "new" piece of information about this issue that might help clarify the problem a bit.
    I plugged it in today to do a final check on it's maladies and this is what happened:
    1.Device starts charging
    2.Device show the "connect to iTunes" screen (the one with the USB and itunes icon)
    3.I connect it to iTunes
    4.iTunes says something like: "This iPhone's software is damaged. A factory reset is required to restore the OS. Your device will be reset to factory settings and all your data will be deleted. After the reset is completed, you will have the possibility to restore your information on the device"
    5. I click "Restore iPhone"
    6. It starts checking for software, extracting software, etc.
    7.I get the apple screen with the loading bar
    8. On iTunes the process stops on the "restoring firmware" step. It gets stuck there for a couple of hours and then eventualy it returns an hardware error
    9. The loading bar on the apple screen gets full, but the iPhone never manages to leave "restore iPhone" mode.
    From all the iTunes messages and procedures that I'm doing, I take it that the iPhone's memory is in fact already wiped clean, am I assuming it right? That's why he won't boot and is stuck on recovery mode?
    Can I also assume that any data I had there cannot be recovered unless I restored it from my laptop/iCloud?
    And finally and just out of morbid curiosity, anyone has an idea about what is wrong with the iPhone? I never managed to figure out what happened or if it's something "fixable".
    Thanks for the help!

Maybe you are looking for