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 ?

Similar Messages

  • Error occurred while finding users using API with custom field

    Hi All,
    I am getting the following error while searching user using API with custom attribute. Did anybody faced the same problem before ?
    Hashtable<Object,Object> env = new Hashtable<Object,Object>();
    env.put("java.naming.factory.initial", "weblogic.jndi.WLInitialContextFactory");
    env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, "t3://localhost:14000");
    System.setProperty("java.security.auth.login.config","C:\\Oracle\\Middleware\\Oracle_IDM1\\designconsole\\config\\authwl.conf");
    System.setProperty("OIM.AppServerType", "wls");
    System.setProperty("APPSERVER_TYPE", "wls");
    tcUtilityFactory ioUtilityFactory = new tcUtilityFactory(env, "xelsysadm", "Weblogic123$");
    OIMClient client = new OIMClient(env);
    client.login("xelsysadm", "Weblogic123$".toCharArray());
    SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");
    tcUserOperationsIntf moUserUtility = (tcUserOperationsIntf)ioUtilityFactory.getUtility("Thor.API.Operations.tcUserOperationsIntf");
    Hashtable mhSearchCriteria = new Hashtable();
    mhSearchCriteria.put("USR_UDF_ACTUALSTARTDATE",formatter.format(date));
    tcResultSet moResultSet = moUserUtility.findAllUsers(mhSearchCriteria);
    printTcResultSet(moResultSet,"abcd");
    log4j:WARN No appenders could be found for logger (org.springframework.jndi.JndiTemplate).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" Thor.API.Exceptions.tcAPIException: Error occurred while finding users.
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
    at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_1036_WLStub.findAllUsersx(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
    at com.sun.proxy.$Proxy2.findAllUsersx(Unknown Source)
    at Thor.API.Operations.tcUserOperationsIntfDelegate.findAllUsers(Unknown Source)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
    at weblogic.security.Security.runAs(Security.java:41)
    at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
    at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
    at com.sun.proxy.$Proxy3.findAllUsers(Unknown Source)
    at oim.standalone.code.OIMAPIConnection.usersearch(OIMAPIConnection.java:209)
    at oim.standalone.code.OIMAPIConnection.main(OIMAPIConnection.java:342)
    Caused by: Thor.API.Exceptions.tcAPIException: Error occurred while finding users.
    at com.thortech.xl.ejb.beansimpl.tcUserOperationsBean.findAllUsers(tcUserOperationsBean.java:4604)
    at Thor.API.Operations.tcUserOperationsIntfEJB.findAllUsersx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor1614.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy347.findAllUsersx(Unknown Source)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl.findAllUsersx(Unknown Source)
    at Thor.API.Operations.tcUserOperationsIntf_e9jcxp_tcUserOperationsIntfRemoteImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Thank you

    Hi J,
    Thanks for the reply. But the code is working fine for OOTB attributes and  for 11g API i am getting permission exception
    Exception in thread "main" oracle.iam.platform.authz.exception.AccessDeniedException: You do not have permission to search the following user attributes: USR_UDF_ACTUALSTARTDATE.
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.search(UserManagerImpl.java:1465)
    at sun.reflect.GeneratedMethodAccessor1034.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
    at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy366.search(Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManagerEJB.searchx(Unknown Source)
    at sun.reflect.GeneratedMethodAccessor1449.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
    at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
    at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
    at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
    at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
    at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
    at com.sun.proxy.$Proxy365.searchx(Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.__WL_invoke(Unknown Source)
    at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl.searchx(Unknown Source)
    at oracle.iam.identity.usermgmt.api.UserManager_nimav7_UserManagerRemoteImpl_WLSkel.invoke(Unknown Source)
    at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
    at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
    at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
    at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
    Caused by: oracle.iam.identity.exception.SearchAttributeAccessDeniedException: You do not have permission to search the following user attributes: USR_UDF_ACTUALSTARTDATE.
    at oracle.iam.identity.usermgmt.impl.UserManagerImpl.search(UserManagerImpl.java:1462)
    ... 44 more

  • How to get a organization name for a particular user using API's

    Hi alll,
    How to get a organization name for a particular user using API's

    You need to do something like this:
    SearchCriteria criteria = new SearchCriteria("User Login", "XELSYSADM", SearchCriteria.Operator.EQUAL);
                   UserManager usrService = oimClient.getService(UserManager.class);
                   Set<String> retAttrs = new HashSet<String>();
                   retAttrs.add(UserManagerConstants.AttributeName.USER_ORGANIZATION.getId());
                   List<oracle.iam.identity.usermgmt.vo.User> users = usrService.search(criteria, retAttrs, null);
                   System.out.println("ORG KEY :: " + users.get(0).getAttribute("act_key"));

  • Create portal user using web dynpro abap application

    Dear All,
    I would like to know is it possible to create portal user-id through web dynpro abap application.
    My requirement is
    > I have to create a web dynpro abap application. In the web dynpro abap application I have name email-id and phone number as entry fields.
    > I will click on submit, one unique id will get created. This unique id will be the login id for portal.
    I found how to create portal user using web dynpro java, but i could not find regarding web dynpro abap.
    If it is possible to create the portal users using web dynpro abap pls share the code as well.
    Regards,
    Swapnil Indulkar

    Hi swapnil,
    I think by using BAPi.. BAPI_USER_CREATE1 you can create.
    Please check this...
    Create portal user from webdynpro abap
    Creating user and assigning a group through code
    user administration su01
    How can i get the portal user id from logon ticket in the webdyn 4 ABAP
    Cheers,
    Kris.
    Edited by: kissnas on May 21, 2011 8:47 AM

  • To get the Roles, Worksets, iviews assigned to portal user using webdynpro

    Hi..
    I need to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    I tried to search in SDN and found a few blogs on this... but all are for DynPages. I could not find any inputs on how to achieve this in Webdynpro.
    I am listing down the blogs for your reference :
    1) /people/prakash.singh4/blog/2005/07/28/browse-roles-folders-pages-iviews-assigned-to-a-user-ep6-sp9-and-higher
    2) /people/prakash.singh4/blog/2005/09/06/create-a-sitemap-for-your-portal
    Please provide me your suggestions on how to display the roles, worksets, pages and iviews that are assigned to a particular portal user using WebDynpro.
    Thanks and Regards,
    Sayan Ghosh

    Please use following code to get all roles assigned to user:
         IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();
         IUser user = wdUser.getSAPUser();
         String strRoleID = "", strRoleDesc = "";
         IRoleFactory iRoleFactory;
         iRoleFactory = UMFactory.getRoleFactory();
         // Get All the Roles of the User
         Iterator iteratorRoles = user.getRoles(true);//prtRequest.getUser().getRoles(true);
         // Loop through all the Roles
         while(iteratorRoles.hasNext())
              strRoleID = iteratorRoles.next().toString();
              try
                   strRoleDesc = iRoleFactory.getRole(strRoleID).getDescription();
                   wdComponentAPI.getMessageManager().reportSuccess("Role: "+strRoleDesc);
              catch(Exception e)
                   wdComponentAPI.getMessageManager().reportException("Exception e: "+e, false);

  • 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

  • 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 =&gt;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.

  • Adding New Portal User using PLSQL APIs

    I am trying to use the PLSQL APIs to add a new user based. Please let me know if I am on the right track. I am using Portal 3.0.8
    1) At the portal30_sso schema, I used wwwsso_ls_private.ls_create_user and it works.
    2) At the portal30 schema, I used wwsec_api.add_portal_user and it works.
    3) I used the activate_user api and it works.
    4) Still can't log on using my user name and password. The message is "Error: Authentication failed. Please try again. (WWC-41419)"
    Please help.
    null

    Here are the steps I have taken to set up Self Registration using the PL/SQL API
    1st Solution...
    1) At the portal30_sso schema, I used wwwsso_ls_private.ls_create_user and it works.
    2) At the portal30 schema, I used wwsec_api.add_portal_user and it works.
    3) I used the activate_user api and it works.
    4) Still can't log on using my user name and password. The message is "Error: Authentication failed. Please try again. (WWC-41419)"
    2nd Solution
    1st Solution...
    1) At the portal30_sso schema, I used WWSSO_API_USER_ADMIN.create_user and it works.
    2) At the portal30 schema, I used wwsec_api.add_portal_user and it works.
    3) I used the activate_user api and it works.
    4) Still can't log on using my user name and password. The message is "Error: Authentication failed. Please try again. (WWC-41419)"
    Here is a code sample of step 1.
    declare
    v_user portal30_sso.sso_user_type;
    v_err number;
    begin
    portal30_sso.wwsso_api_user_admin.create_user
    p_username => 'NEWUSER2',
    p_password => 'PASSWORD',
    p_error_code => v_err
    end;
    It would really help me out if I can get a response to see if it is possible or not to create a self-registration feature for Portal. Thank you for your help.
    null

  • 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!

  • Portal Users using server realm

    Does anyone know to config users in server realm for portal?
    many thanks!

    "Cat Wong" <[email protected]> wrote:
    >
    Does anyone know to config users in server realm for portal?
    many thanks!Trying adding this line to your start weblogic script
    set JAVA_OPTIONS=%JAVA_OPTIONS% -Dcom.bea.p13n.usermgmt.AuthenticationProviderName=beaAuthenticator
    where beaAuthenticator is your custom authentication provider.
    Andy

  • Authenticate Portal user using AD

    Users are getting authenticated with OID.
    Question is :
    Would it be possible to authentocate with AD and if user does not exists in AD then authentocate using OID.
    We have more users in OID. Not all users have AD userid /password but they do have account in OID.
    Is it possible to do ?
    Thanks
    Sanjay

    Hi Ritesh,
    According to your description, the users and the SQL Server Analysis Service server are not on the same domain, what you want is that let user enable browse the cube data, right?
    In this case, here is a blog which describe how to connecting to SQL Server Analysis Services using a Different Domain Account that the user currently log on (SSAS on Different Domain and the user logon to another Domain), please see:
    http://blogs.technet.com/b/nraja/archive/2011/09/19/connecting-to-sql-server-analysis-services-using-a-different-domain-account-that-the-user-currently-log-on-ssas-on-different-domain-and-the-user-logon-to-another-domain.aspx
    Regards,
    Charlie Liao
    TechNet Community Support

  • Deleting users using GTC - CSV connector

    Hi All,
    I am using GTC connector for trusted recon , create and update user functionality are working , but I am not able to delete the user using a GTC .
    Any Help would be highly appreciated .
    Thanks
    Regards
    Easwaran

    Lets assume we have a HR system and the user has got deleted in the system, the HR system drop a CSV file to a specified location with the details of the user to be deleted from the IDM system . Now the CSV GTC connector would need to read the record and delete the user .
    This can be done , I have done this using API calls , but i assume that there would be someway of doing this using the OOB GTC .I think we need to set the correct value for the status field to do this ..
    I am not sure what status to set.

  • How can I grant Application access to a user via API ) programattically

    how do I grant access to a portal user from API
    I want to grant access to a user from an API, ie I need a
    command to grant "SCOTT" access to "EXAMPLE_APP" APPLICATION as
    an end user?

    Hi,
    I am assuming that you have already updated the EUL in the Administrator Edition, correct? If not, open Discoverer Administrator and login to the database you want to connect to. You must use your EUL user name which I assume has already been created and assigned the correct privileges in the database. You will be asked to update your EUL. Follow the prompts.
    Once logged into the EUL, go to Tools \ Privileges and find the user that you want to give administrator access to.
    Hopefully, this answers your question.
    Regards,
    Nancy

  • UNABLE TO RETRIEVE THE CLIENT IP ADDRESS AND HOST NAME OF A PORTAL USER

    I'm trying to retrive the client IP address and host name of a portal user
    trying to access a portal page using APIs:
    PortletRenderRequest portletRequest =
    (PortletRenderRequest)request.getAttribute(HttpCommonConstants.PORTLET_RENDER_REQUEST);
    HttpServletRequest servletRequest =
    (HttpServletRequest)portletRequest.getAttribute(HttpCommonConstants.SERVLET_REQUEST);
    String l_szClientIPAddress = servletRequest.getRemoteAddr();
    String l_szClientHost = servletRequest.getRemoteHost();
    but i found that for all portal users on different machines IP addresses, the
    returned IP is the same for all which is Portal middle tier IP address.
    So how can retrive the IP addess of a portal user trying to access a portal
    page ?

    Brijesh,
    Do you mean how to see hostname/ip address of client requests processed by the server? If yes, depending on what's your front ending component - Web Cache or OHS, you can configure the access log format to have this information recorded in either of these component's access log file.
    For Web Cache access log file, refer this:
    http://download.oracle.com/docs/cd/B14099_19/caching.1012/b14046/diagnostics.htm#sthref2090
    For OHS access log file, refer this:
    http://download.oracle.com/docs/cd/B14099_19/web.1012/b14007/servlog.htm#sthref439
    By default, both Web Cache and OHS are configured to use Common Log Format (CLF) that does record hostname/ip address so if you haven't made any changes to log format, this info is already there for you. Look for $ORACLE_HOME/webcache/logs/access_log file for Web Cache and $ORACLE_HOME/Apache/Apache/logs/access_log file for OHS.
    Thanks
    Shail

  • Deactivating Portal users

    I was deactivating a user using the portal user maintenance API, 'deactivate_portal_user' passing in the portal user name. I called this procedure on a trigger from Forms, it looked as if it worked in forms but when I tried to log on in Single sign on I was allowed to which is not what I expected to happen.
    Am I correct in assuming that I can deactivate a user in forms using the api. If so can you shed any light I what may have went wrong
    Thank You.

    Mervyn,
    single sign-on uses mod_osso and the SSO server to check if a user has been authenticated or not. All user information is stored in OID. Don't know what happens after you execute your Portal procedure, but it is actually not logging off the single sign-on user. There is a API on teh Single Sign-On Server (I think its a Java API) that allows you to propagate single sign-offs which then leads to all sso accounts getting disconnected from teh session.
    Frank

Maybe you are looking for

  • How do I divide my iTunes library into multiple libraries based on unique Apple ID?

    I have one iTunes library on my iMac that started with just me.  As each of my kids and my husband got their own Apple IDs, all of their purcahses are loaded into my library.  They have their own IDs because each has their own phone/iPod/iPad and is

  • No longer offering Java Services to our clients

    http://area51solutions.com/modules.php?name=News&file=article&sid=2 As of July 8th 2008 Area 51 IT Solutions will no longer be supporting Java technologies. Sun Microsystems has failed to keep integrating Java technologies up to date on Windows Serve

  • RAW Images won't open in elements

    I recently loaded Photoshop Elements onto my MAC and attempted to use it to review and edit some images I took with my 7D Mark ii. Received the following message: Could not complete your request because the file appears to be from a camera model whic

  • Show if recordset not empty requires a space: any way around this?

    hi, i've got a lot of recordsets which may end up empty -- possibly up to half the time. i'm trying to make the output look nice, but i'm stuck with the a space for the empty recordset. its a small thing, but i'd still like to have the text flow perf

  • Pass word required for public files?

    I just published a link to acrobat.com so that anyone in the public could view the file. When it opened it required a password and user name. I thought the idea of anyone being able to view which I have selected would be so that it would open directl