Delete Portal user = wwsec_person$

Hi,
For my project I need to remove users from our portal system.
Users are delete from OID with dbms_ldap.delete_s.
After performing a successful delete, we are not able to user the deleted user =>OK
This user still appear on table wwsec_person$. Is this logical ? Do I need to drop the portal user ?
I try to create a new user with the same user_name and it works, user is created on OID.
Thanks, Eddy.

I'm guessing you are trying to do this from a tool outside portal such as sqlplus, SQL Developer, Toad, ...? If so, I think it is hiccuping because you don't have a lightweight identity -- you need to be logged into portal to access that table. Two choices -- delete the entry via the DBA tab in navigator when logged in as an administrative user (portal or orcladmin for example) or set context in your database session by running "exec PORTAL.wwctx_api.set_context('portal','<portal's lighweight password>');. Note that password is the user password for portal when logging in the portal GUI, not the PORTAL schema password.
Rgds/Mark M.

Similar Messages

  • Deleting portal users using APIs

    Hi
    We are deleting users from portal through a java class using
    JBDC( using prepareCall and executeUpdate) . We can successfully
    delete the user from the login server using the procedure
    PORTAL30_SSO.WWSSO_API_USER_ADMIN.DELETE_USER(). However, when
    we try to delete the user from portal30 using
    PORTAL30.WWSEC_API.DELETE_PORTAL_USER()
    we get the following errors
    ERROR at line 1:
    ORA-01086: savepoint 'DELETEUSER_SAVEPOINT' never established
    ORA-06512: at "PORTAL30.WWSEC_API", line 1471
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWCTX_SSO", line 849
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWCTX_SSO", line 669
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at line 1
    We can run the delete_portal_user procedure successfully as
    portal30(the owner of the portal30 schema). But when we try to
    delete a user as another dba user, we get the error shown above.
    This user has full sysdba priveleges on the portal30 schema. The
    workaround is to create another database connection in the Java
    class for the portal30 user. However they prefer to run it
    as the dba who have created the user but not as portal30.
    I checked in the JPDK documentation but there is no API to delete
    users.
    Any help is greatly appreciated.
    Many Thanks
    Raja

    I get the same thing would any answer this question please ?

  • Programmatically Delete Portal user Cache

    Hi! I have a problem re-using the "Portal User Profile" portlet to put on my own portal page. It is not able to execute unless i am Portal Administrator (PORTAL). The requirement is that I need to clear the cache for a Particular User.
    <br><br>
    I tweaked the Portal User Profile Portlet and from the "View Source", was able to construct the following HTML and place it in an "HTML Portlet". But when I submit, it doesn't work. Am I missing something...? Any Help is greatly appreciated.
    <br><br>
    Thanks
    Ram
    <br>
    HTML Code
    <head><br>
    <script type="text/javascript">
    function buttonClearCacheSubmit(){
         document.UserProfile.p_username.value=document.UserProfile.username.value;
         document.UserProfile.username.value="";
         document.UserProfile.submit();
    </script>
    </head><br>
    <font style="portlettext1">Clear the cache in Web Cache for User</font><br>
    <form name="UserProfile" method="POST" action="/pls/portal30/portal30.wwsec_app_user_mgr.edit_user" enctype="multipart/form-data"><br>
    <input name="username" type="text" size="30" maxlength="30"><br>
    <input type="button" name="p_request" value="OK" onClick="javascript:buttonClearCacheSubmit()"><br>
    <input type="hidden" name="p_username" value=""><br>
    <input type="hidden" name="p_clearcache value="Y"><br>
    <input type="hidden" name="p_action" value="TAB1"><br>
    <input type="hidden" name="p_back" value="http%3A%2F%2Fhostname.domain%3A7778%2Fportal%2Fpage%3F_pageid%3D428%2C61204%26_dad%3Dportal30%26_schema%3DPORTAL30"><br>
    </form><br>

    I'm glad with this (default) behaviour, although I would have no problems with a cascaded delete as an option.
    We use portal for our intranet site, and a default cascaded delete, would mean that if a worker leaves our company, and therefore his account would be deleted, all his contributions to the intranet would be deleted too.
    Ton

  • Problems deleting portal user any 1 ?

    ERROR at line 1:
    ORA-01086: savepoint 'DELETEUSER_SAVEPOINT' never established
    ORA-06512: at "PORTAL30.WWSEC_API", line 1471
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWCTX_SSO", line 849
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL30.WWCTX_SSO", line 669
    ORA-06502: PL/SQL: numeric or value error
    using this
    PORTAL30_SSO.WWSSO_API_USER_ADMIN.DELETE_USER
    WWSEC_API.DELETE_PORTAL_USER
    could someone tell me what is going on
    thanks

    If I understood it right... you have a service to del
    a child and all children / related objects of it.No, it's just that I have one item, say of type person, and a person has n phone numbers. In my application there's a table component which displays a list. This list is populated with the phone numbers of that person (I cannot use the person.phones list directly, so I do a tab_list = person.phones when logging in). Next to that table there are buttons to add and delete phone numbers.
    When a user clicks on the "add" button, an item is added to the tab_list and when the user saves his changes these statements are executed:
    // Delete old phones list
    List<Phone> lp = person.getPhones();
    for (int i = 0; i < lp.size(); i++) {
    Phone p = lp.get(i);
    service.removePhone(p);
    // Replace with new phones list
    person.setPhones(tab_list);
    service.mergeEntity(person);
    I am not sure about your mergeEntity stuff.. You say
    you want to insert new objects.. so why merge?I'm developing a JSF application with several forms to edit data. Basically all entities I deal with are related to a single Person object, so when the user clicks the save button I do a service.mergeEntity(person) and changes to all related entities are made persistent via the cascade option.
    I hope this clarifies a bit... In case you know any tutorials/examples that show how to implement a load-save-mechanism like that I'd be happy to know (one type of object being queried for, all related objects retrieved via annotations, data being entered/updated in JSF-JSPs using #{mainObj.relatedObj.someData} expressions bound to input fields, and then the whole construct persisted using serivice.mergeEntity(mainObj);.
    Thanks for trying to help anyways!

  • WWC-41742 or How to delete a user from wwsec_person$

    Hey all,
    We're syncing users from AD, and then doing WNA... that all works fine... but it hiccuped. Had a user got married, and somehow, it didn't just synch the user, up, but it created a new one with the new name. (same NT user ID, different DN)
    Not knowing that it would cause a problem we nuked the old user, but now we get WWC-41742 which says to delete the user from wwsec_person$... which I can't seem to do...
    SQL> delete from portal.wwsec_person$ where user_name='ANNAM';
    delete from portal.wwsec_person$ where user_name='ANNAM'
    ERROR at line 1:
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1803
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1637
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1922
    ORA-06512: at "PORTAL.WWCTX_API", line 279
    ORA-06512: at "PORTAL.WWERR_API_ERROR", line 99
    ORA-06512: at "PORTAL.WWERR_API_ERROR", line 222
    ORA-06512: at "PORTAL.WWUTL_API_CACHE", line 7665
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1803
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1637
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "PORTAL.WWCTX_SSO", line 1922
    ORA-06512: at "PORTAL.WWCTX_API", line 279
    ORA-06512: at "PORTAL.WWERR_API_ERROR", line 99
    ORA-06512: at "PORTAL.WWERR_API_ERROR", line 222
    ORA-06512: at "PORTAL.WWUTL_API_CACHE", line 6301
    ORA-06510: PL/SQL: unhandled user-defined exception
    ORA-06512: at "PORTAL.WWCTX_SSO", l
    What am I missing?
    Ken

    I'm guessing you are trying to do this from a tool outside portal such as sqlplus, SQL Developer, Toad, ...? If so, I think it is hiccuping because you don't have a lightweight identity -- you need to be logged into portal to access that table. Two choices -- delete the entry via the DBA tab in navigator when logged in as an administrative user (portal or orcladmin for example) or set context in your database session by running "exec PORTAL.wwctx_api.set_context('portal','<portal's lighweight password>');. Note that password is the user password for portal when logging in the portal GUI, not the PORTAL schema password.
    Rgds/Mark M.

  • Deleting portal DB users in EP6 SR1

    Hi
    When we try deleting database users under User Administration->Users(a few users have the same userids in portal DB and MS-ADS) in the portal we get a User Management Exception. (We get the same exception with user administration using http://<server:port>/useradmin).
    When we go back to Search under Detailed Navigation in the portal we get the following error message:
    "The iView has timed out. There is no cached content to display.Click 'Reload' to retrieve updated content. You may need to wait for the cache to retrieve the content from the source. Reload".
    I tried setting the property but it didnt work.
    Any idea these issues fixed with SP Stack 10?
    Thanks in advance
    Premal

    Hey Premal,
    You can try deleting the users from the admin tool -> server -> services -> UM Provider.
    Regards,
    Natti Nachmias.

  • Using Powershell to delete all users from the Portal

    Summary
    This script will delete all users from the Portal except for Administrator and the Built-In Sync account.
    Based on Markus's "Delete a User" script.
    Useful when developing your system if you want to quickly clear out the data and start again.
    set-variable -name URI -value "http://localhost:5725/resourcemanagementservice' " -option constant
    function DeleteObject
    PARAM($objectType, $objectId)
    END
    $importObject = New-Object Microsoft.ResourceManagement.Automation.ObjectModel.ImportObject
    $importObject.ObjectType = $objectType
    $importObject.TargetObjectIdentifier = $objectId
    $importObject.SourceObjectIdentifier = $objectId
    $importObject.State = 2
    $importObject | Import-FIMConfig -uri $URI
    if(@(get-pssnapin | where-object {$_.Name -eq "FIMAutomation"} ).count -eq 0) {add-pssnapin FIMAutomation}
    $allobjects = export-fimconfig -uri $URI `
    –onlyBaseResources `
    -customconfig "/Person"
    $allobjects | Foreach-Object {
    $displayName = $_.ResourceManagementObject.ResourceManagementAttributes | `
    Where-Object {$_.AttributeName -eq "DisplayName"}
    if([string]::Compare($displayName.Value, "Administrator", $True) -eq 0)
    {write-host "Administrator NOT deleted"}
    elseif([string]::Compare($displayName.Value, "Built-in Synchronization Account", $True) -eq 0)
    {write-host "Built-in Synchronization Account NOT deleted"}
    else {
    $objectId = (($_.ResourceManagementObject.ObjectIdentifier).split(":"))[2]
    DeleteObject -objectType "Person" `
    -objectId $objectId
    write-host "`nObject deleted`n" $displayName.Value }
    Go to the FIM ScriptBox
    http://www.wapshere.com/missmiis

    The DeleteObject function opens and closes a connection for each object.  This approach is faster:
    http://social.technet.microsoft.com/wiki/contents/articles/23570.how-to-use-powershell-to-delete-fim-users-that-have-a-null-attribute-name.aspx
    Mike Crowley | MVP
    My Blog --
    Planet Technologies

  • Deleting a user does not delete profile

    Hi,
    I create user 'test' in the portal (Win Nt/Solaris, 3.0.8.9.1/3.0.8.9.2 - doesn't matter).
    I then add 'test' to a group 'HR'.
    I then delete the user 'test' from the edit user screen.
    The PORTAL30.WWSEC_PERSON$ entry for 'test' remains.
    I then create another user 'test'. This picks up any previous profile info such as the name (WHY?) and try to add the same user to the 'HR' group which now does not display user 'test' as a member.
    This fails with the following error:
    Unexpected Error in wwsec_app_group_mgr.edit_group - ORA-00001: unique constraint (PORTAL30.WWSEC_FLAT_UK) violated (WWC-41234)
    Unexpected error encountered in wwsec_api.add_user_to_list (ORA-00001: unique constraint (PORTAL30.WWSEC_FLAT_UK) violated) (WWC-41417)
    I've looked in the wwsec_member$, wwsec_flat$ and wwsec_group$ tables for clues. All seems ok in there...
    This is pretty crazy. Oracle- any ideas.

    Check out bugs 2003485 and 2159110 - these are all related. This will affect everyone using the portal it seems!

  • WHAT IS THE MECHANISM FOR AUDITING PORTAL USER ACTIVITY

    Is there any default mechanism for auditing a portal users access to
    tables. At the DB level, we are seeing the portal_public user but we want to see the portal user instead; e.g. we need to report on activity such as: portal user johndoe deleted a row of data from a table.
    johndoe is only a portal user not a database user.
    We are trying to keep from writing additional custom code to auditing. We are
    using wwctx_api.get_user_id in other parts of the application and we would like
    to avoid writing a custom auditing module.

    William,
    I'm not sure if this is what you are looking for, but...
    When you create (or edit) a component in Portal 10g, there is a Log Activity check box. If you check this box, then go to Manage the component (in the Portal Navigator), there are Develop, Manage and Access tabs. The Manage tab has a Monitor icon, which has the information you may be looking for. This does not seem to be available directly for database tables. However, I created a Calendar, based on a database table I created to keep track of the Calendar Events. I also created a form to allow users to add Calendar Event entries. I turned logging on for both components. The Monitoring allows me to see when each user has accessed the Calendar, and who and when they insert, update or delete entries from the Calendar table.
    -Ricky Burke

  • Details regarding Portal users vs 8i DB users

    Is there a good DBA level explanation of the differences between a PORTAL/SSO user and a normal database user?
    It appears we have to set up new users in Portal for all of our existing users in the database (painful). This was not required in Webdb. Is there a way to import existing database users and link them to their existing schemas painlessly?
    The bits and pieces I can find indicate that if you do go ahead and set up a new Portal user manually and link them to their own existing database user schema then the normal database objects roles and rights should appear. This does not seem to be true in 3.0.8 Portal. I created a portal user, assigned them to their existing 8.1.7 schema and:
    1) the normal database objects they have rights to do NOT show up in the browse database objects. In Webdb 2.2. all of these objects show up fine. The ability to browse database objects was one of the good things about Webdb that we need to preserve.
    2) try to create a portal component, a form, based on a table/view. Unlike #1 above I can in fact create the form on an existing table even though it does not show up in the browse above. The user has update rights to this table, but the form will NOT compile if I leave in the UPDATE, DELETE, INSERT buttons. What is going on?
    Is there a technical paper that discusses exactly how to map db users to portal users and how to transfer rights, privileges etc. so we can make portal 3.0 as functional as webdb 2.2 was?

    Quinn,
    Here are my answers:
    1) the normal database objects they have rights to do NOT show up in the browse database objects. In Webdb 2.2. all of these objects show up fine. The ability to browse database objects was one of the good things about Webdb that we need to preserve.
    Ans))
    You have better control on this ability now.
    2) try to create a portal component, a form, based on a table/view. Unlike #1 above I can in fact create the form on an existing table even though it does not show up in the browse above. The user has update rights to this table, but the form will NOT compile if I leave in the UPDATE, DELETE, INSERT buttons. What is going on?
    Ans))
    The ability to create a component in Oracle Portal 3.0 no longer depends on whether the developer has privileges to build components in a schema, but instead on whether the developer has privileges to build a component in an application.
    =====
    Is there a technical paper that discusses exactly how to map db users to portal users and how to transfer rights, privileges etc. so we can make portal 3.0 as functional as webdb 2.2 was?
    Ans))
    Read the following help:
    a) Migrating WebDb users to Oracle Portal.
    b) What are schema and object privileges?
    c) What are global privileges?
    d) What's the difference between an Oracle Portal User & an Oracle Database User?
    ====================
    Now the next question is..Where to find them?
    Here are the location:
    login > Navigator > Database Objects tab>
    Click on "Grant Access" > Click on the context help.
    Here under the related topics you will find:
    (b). Click on it:
    Again under the related topics you will find:
    (a) & (d) (Both are same).
    For (c):
    login > Create a user > edit that user > click on "Privileges" tab > context help.
    Hope this will clear your doubts...
    Thanx,
    Chetan.

  • Exporting and Importing Portal users from Source system to Target system

    Hi All,
    I have exported all portal users from source portal in to file Users.txt do i need to convert this file in to some other format so that i can import these users in Target portal.
    any links documents
    Regards,
    Murali

    Hi,
    If you look in to User.txt
    I have role also i have deleted role in User.txt uploded file with rest of the otherdata including group it it able to create users.
    so in Nut shell let's say
    1. UID-Murali
       Role- Manager
      Group- HRGroup
    user existing  in DEV and i want to trnasfer data to PRD
    Role:Manger should exist in PRD, and group is not mandatory optional
    but the link http://help.sap.com/saphelp_nw70/helpdata/EN/ae/7cdf3dffadd95ee10000000a114084/frameset.htm
    says while uploading users role is optional it throws waring but i got error.
    i am bit confused.
    Now let's sau there are 10 users, 10 roles and 2 groups in source system if i want to export all users,roles,groups to target system what sequnce i have to follow without getting any error , warining is there any restriction on number of users, roles, groups i know file size should be less than 1MB.
    Points are on the way.
    Regards,
    Murali

  • ICE_SERVICE portal user doesn't allow an anonymous access to KM content

    When we upload files (e.g. image files) into root/documents/MyFolder repository they get a /irj/go/km/docs/MyFolder/* link. After that they can be seen by an anonymous users.
    But every day at 9AM ICE_SERVICE portal user modifies all files in /documents/MyFolder folder and transform /irj/go/km/docs/MyFolder/* file link into /irj/servlet/prt/prtroot/ (we can see that in file Details window). After that an anonymous user lose permission to access the files of the repository.
    How to prevent such behavior or to workaround this?

    It might be happening due to configured ICE Online Exchange so, check following....
    Go to Content Management -
    > Content Exchange -
    > Syndicators----
    > Offers     there you'll see list of offers just delete them if not needed , this might solve the issue...
    Regards,
    Tushar Dave

  • Export and Import of Portal Users (UME database only)

    Hi
    What is the most efficient way to export all Portal user that are stored in Portal UME database so that it can be imported to another Portal installation and be used..
    Thanks in Advance
    Ananda

    Hi,
    SAP User Administration is the standard way to export and import users in the portal. Using the export functionality, all the user information will get exported, including the roles and groups assigned:
    [User]
    uid=userid
    last_name=Lastname
    first_name=Tobias
    language=en
    accessibility=0
    role=pcd:portal_content/com.sap.portal.xxx;
    group=Administrators;
    If you only want to export the user data without the roles and groups, you'll have to delete these lines.
    SAP Help: http://help.sap.com/saphelp_nw04/helpdata/en/70/9be23d44d48e5be10000000a114084/frameset.htm
    Export Format: http://help.sap.com/saphelp_nw04/helpdata/en/ae/7cdf3dffadd95ee10000000a114084/frameset.htm
    SDN Article: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f02e3e37-5ee3-2910-129d-967aef3fa386
    br,
    Tobias

  • Portal users authentication !

    HEllo !
    The table in which oracle portal users are stored is wwsec_person$ . It means portal authentication of users is done through this table . I want that portal should do authentication of users through some other table which i have created for authentication . It should not do authentication from its default table .
    Waiting for ur reply !
    Regards
    null

    HEllo !
    The table in which oracle portal users are stored is wwsec_person$ . It means portal authentication of users is done through this table . I want that portal should do authentication of users through some other table which i have created for authentication . It should not do authentication from its default table .
    Waiting for ur reply !
    Regards
    null

  • Creating portal users with owner privileges?

    Hello,
    I need to let local adminstrators create users in the portal.
    This is based on instance-specific privileges, not global.
    Setting them to 'owners' of the group in the portal should let them add users.
    Once created and I log in as one of them I do not have the privileges of being an
    'owner', eventhough it's visible in the portal that I am an owner.
    Anybody?
    /

    Hi,
    To make the problem a little clearer.
    I want to have "local adminstrators" that can manage portal users i.e; delete, insert and update portal users.
    However I do not want these "local administrators" to be "Full administrators"- too dangerous.
    The "local adminstrators" should belong to the same group as the users they are set to administer. The
    only difference between a "local administrator" and a user of a group is that the "local administrator" have privileges
    to manage the other users of the group. If I have understood the concept right an owner have these privileges.
    I made them owners of the group, but this did not enable them to manage users.
    This must be a rather common approach, to have some users being able to administer other users without being a fullfledge DBA.
    Right now I'm looking into mapping them(the local administrators) to a different database schema with rights to manage users.
    I realize that to map them to another schema, then the checkbox "Use this schema for Portal Users" have to be checked when creating the
    schema. How do I check if this was checked and if it wasn't checked can I alter it now?
    Another thought is to dynamically upon meeting certain conditions making them Full Administrators, then after finishing the task
    reinstating them as normal users.. but this.. well hmm
    Thanks.
    /

Maybe you are looking for