FM to add role to BP

Hi Experts,
I need a FM to assign a role to a business partner. I am currently using FM BAPI_BUPA_ROLE_ADD, but this is not able to assign the role for me. It is also not returning any error after execution.
Please help how to fix this issue.
Regards,
Saumya

Hi,
Thanks for your replies.
I tried the FM BAPI_BUPA_ROLE_ADD_2 but am getting the following error 'Business partner cat. 2 not permitted for BP role BUP001' as result message.
Please help me how to rectify it. If you can state the parameters I need to pass that would be an added advantage.
Regards,
Saumya

Similar Messages

  • ABAP prog with Call Transaction  to SU01 will not add roles in a CUA client

    I am modifying a current ABAP program that works in a non-CUA client to hopefully execute in a CUA client.  This program performs a Call Transaction to tcode SU01 and adds roles to an existing user.  I used tcode SHDB to identify the new BDC commands needed for CUA when using tcode SU01.  When executing the program in the CUA client  it does not save the roles to the user.  There is no error message or abnormal termination.
    When I assign the role to the same user that's referenced in my program directly with tcode SU01 it works fine.  Its just when I run the ABAP program the role assigment is not retained.  I opened a Customer Message with SAP and they referenced OSS Note 93802 and said this was a consulting question.  My program is not abending as referenced in Note 93802, it just does not add the role.
    Has anyone been able to get this to work in a CUA client?

    Hi,
    it should be fairly simple to create a new ABAP using the BAPI's related to business object USER. Call BAPI_USER_CREATE1 to create the users, and BAPI_USER_LOCACTGROUPS_ASSIGN to assign roles in a CUA environment. It should go something like this:
    [read file with user data into internal table wt_users]
    [read file with role assignments into internal table wt_roles]
    Loop at wt_users into wa_user.
      [create LOGINDATA, ADDRESS and other structures for user in BAPI below, based on the data in wa_user]
      call 'BAPI_USER_CREATE1'
      exporting
        username                      = [the user name from input file]
      NAME_IN                       =
        logondata                     = [structure for logondata]
        password                      = [initial password value]
      DEFAULTS                      =
        address                       = [address structure created above]
        [etc.]
      if sy-subrc eq 0.
    Assign roles for the user
    clear wt_activitygroups. refresh wt_activitygroups.
    loop at wt_roles into wa_roles where username = wa_user-username.
        [build an internal table, wt_activitygroups, for system/role assignments for the user]
    endloop.
        call BAPI_USER_LOCACTGROUPS_ASSIGN
          exporting
            username                      = [the users name]
          tables
            activitygroups           = wt_activitygroups
            return                       = wt_return.
    Endloop.
    Ideally, you would have two input files: one with the user data (one record per user), and another one containing the data for the BAPI_USER_LOCACTGROUPS_ASSIGN (on the format USERNAME, SYSTEM, ROLENAME); one entry per line. You'd loop at the first table, containing the user data, then create the user, then loop at all entries in the system/role assignment file for the same username, building an internal table of role assignemnts; then call the second BAPI (provided there were any role assignments to assign for that user!)
    Hope this makes sense. It's not rocket science really; you can omit most of the parameters of BAPI_USER_CREATE1, and the second BAPI is even simpler. You could consider validating the input data by checking entries in table USRSYSACT, which contains all valid system/role assignments as seen from the CUA system (this table gets updated every time you do a "text compare" from within SU01.
    Regards,
    Trond

  • Add Role To Business Partner

    Hi,
    I am using BAPI "BAPI_BUPA_ROLE_ADD_2" to add a Role to Business Partner.
    When i try to do that manually using transaction BP, in change mode i select the role to be added and SAVE. The role gets added to the BP.
    But when i try the same using BAPI, it does not work. The code is written as below.
    -- code ---
    DATA IT_BAPIRET2 TYPE TABLE OF BAPIRET2.
    CALL FUNCTION 'BAPI_BUPA_ROLE_ADD_2'
      EXPORTING
        BUSINESSPARTNER     = '900001'
        BUSINESSPARTNERROLE = 'TR0809'
      TABLES
        RETURN              = IT_BAPIRET2.
    COMMIT WORK.
    After which i go to the Table BUT100, give the Business partner number, No records are found.
    Please give me a solution or an alternative to add role to BP.
    Regards,
    Santosh

    Hi,
    IT_BAPIRET2  is Initial. No Error Messages.
    I don't get any error messages. i.e.  IT_BAPIRET2 is not filled with any messages.
    Additional Info:
    Only when i run the BAPI directly from SE37 Tcode, first time IT_BAPIRET2  is initial. Second Time if i just come back ( without doing /NSE37 ), if i just execute , Then it says the Role 'T...' already exists.
    But if i execuet the same BAPI again /NSE37 , IT_BAPIRET2  is initial.
    Thought the reason would be because of Memory / Buffer.
    After which i go to Tcode BP see if the role is added to the Partner number. It does not happen. Also tries looking into the Table BUT100, it does not appear there.
    Then tried executing the BAPI from SE38 giving a commit work. Thinking Commit work is not happening when its being executed from SE37.
    But the same result, is there anything which i have to look into.
    Or an alternative function module which i can try.
    please suggest.
    regards,
    Santosh

  • DBUM 9.1.0.4.0 add role task rejected

    Hi all, I'm facing some problems with dbum connector. When i'm provisioning a user, the account is being created in target system but roles are not being granted. When I see "Resource History" i notice that the "Add Role or Grant" task is rejected. The user has all the permissions.
    does somebody face something like this?. Every response will be appreciated,
    thanks in advance,
    Guido

    thanks for your quick response. I made the same test (grant role) in db (oracle db) with the same user that is configured in the IT resource and it worked fine, so i think that user's privilegies are not the trouble here.
    here is the log:
    [2012-10-31T19:22:58.665-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.common.db.util.DBConnection : getNonPooledConnection:: FINISHED
    [2012-10-31T19:22:58.669-03:00] [oim_server1] [ERROR] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [APP: oim#11.1.1.3.0] ================= Start Stack Trace =======================
    [2012-10-31T19:22:58.670-03:00] [oim_server1] [ERROR] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [APP: oim#11.1.1.3.0] oracle.iam.connectors.dbum.common.db.util.DBUtil : executeQuery
    [2012-10-31T19:22:58.671-03:00] [oim_server1] [ERROR] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [APP: oim#11.1.1.3.0] Error occurred while trying to execute query.
    [2012-10-31T19:22:58.672-03:00] [oim_server1] [ERROR] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [APP: oim#11.1.1.3.0] Description : ORA-01741: identificador de longitud cero no válido[[
    [2012-10-31T19:22:58.673-03:00] [oim_server1] [ERROR] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [APP: oim#11.1.1.3.0] java.sql.SQLSyntaxErrorException: ORA-01741: identificador de longitud cero no válido[[
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:457)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:405)
         at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:889)
         at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:476)
         at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:204)
         at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:540)
         at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:202)
         at oracle.jdbc.driver.T4CStatement.executeForRows(T4CStatement.java:1074)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1466)
         at oracle.jdbc.driver.OracleStatement.executeInternal(OracleStatement.java:2224)
         at oracle.jdbc.driver.OracleStatement.execute(OracleStatement.java:2168)
         at oracle.jdbc.driver.OracleStatementWrapper.execute(OracleStatementWrapper.java:333)
         at oracle.iam.connectors.dbum.common.db.util.DBUtil.executeQuery(Unknown Source)
         at oracle.iam.connectors.dbum.common.db.util.DBUtil.executeQuery(Unknown Source)
         at oracle.iam.connectors.dbum.operation.DBUMDatabaseOperation.executeQuery(Unknown Source)
         at oracle.iam.connectors.dbum.integration.DBUMProvisionProxyManager.executeQuery(Unknown Source)
         at oracle.iam.connectors.dbum.integration.DBUMProvisionManager.executeQuery(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpDBUMEXECUTEQUERY.EXECUTEQUERY(adpDBUMEXECUTEQUERY.java:178)
         at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpDBUMEXECUTEQUERY.implementation(adpDBUMEXECUTEQUERY.java:87)
         at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:196)
         at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2492)
         at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:2917)
         at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:547)
         at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:602)
         at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
         at com.thortech.xl.dataobj.tcOrderItemInfo.processChildTableChange(tcOrderItemInfo.java:655)
         at com.thortech.xl.dataobj.tcOrderItemInfo.eventPostInsert(tcOrderItemInfo.java:184)
         at com.thortech.xl.dataobj.tcUDProcess.eventPostInsert(tcUDProcess.java:234)
         at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:602)
         at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:474)
         at com.thortech.xl.dataobj.tcTableDataObj.save(tcTableDataObj.java:2906)
         at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.addProcessFormChildData(tcFormInstanceOperationsBean.java:1929)
         at com.thortech.xl.ejb.beansimpl.tcFormInstanceOperationsBean.addProcessFormChildData(tcFormInstanceOperationsBean.java:1593)
         at Thor.API.Operations.tcFormInstanceOperationsIntfEJB.addProcessFormChildDatax(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         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.bea.core.repackaged.springframework.jee.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:37)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.bea.core.repackaged.springframework.jee.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:50)
         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 $Proxy352.addProcessFormChildDatax(Unknown Source)
         at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
         at Thor.API.Operations.tcFormInstanceOperationsIntfEJB_h6wb8n_tcFormInstanceOperationsIntfRemoteImpl.addProcessFormChildDatax(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
         at $Proxy175.addProcessFormChildDatax(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         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.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:198)
         at $Proxy351.addProcessFormChildDatax(Unknown Source)
         at Thor.API.Operations.tcFormInstanceOperationsIntfDelegate.addProcessFormChildData(Unknown Source)
         at com.thortech.xl.webclient.actions.DirectProvisionUserAction.handleVerifyProcessData(DirectProvisionUserAction.java:2093)
         at com.thortech.xl.webclient.actions.DirectProvisionUserAction.goNext(DirectProvisionUserAction.java:363)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:269)
         at com.thortech.xl.webclient.actions.tcLookupDispatchAction.execute(tcLookupDispatchAction.java:133)
         at com.thortech.xl.webclient.actions.tcActionBase.execute(tcActionBase.java:894)
         at com.thortech.xl.webclient.actions.tcAction.execute(tcAction.java:213)
         at org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
         at org.apache.struts.chain.commands.AbstractExecuteAction.execute(AbstractExecuteAction.java:67)
         at org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
         at org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:305)
         at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:191)
         at org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
         at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
         at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at com.thortech.xl.webclient.security.CSRFFilter.doFilter(CSRFFilter.java:76)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.iam.platform.auth.web.PwdMgmtNavigationFilter.doFilter(PwdMgmtNavigationFilter.java:121)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.iam.platform.auth.web.OIMAuthContextFilter.doFilter(OIMAuthContextFilter.java:107)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:111)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.runJaasMode(JpsAbsFilter.java:94)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:161)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:71)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.servlet.DMSServletFilter.doFilter(DMSServletFilter.java:136)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3715)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3681)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2277)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2183)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1454)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
    [2012-10-31T19:22:58.674-03:00] [oim_server1] [ERROR] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [APP: oim#11.1.1.3.0] ================= End Stack Trace =======================
    [2012-10-31T19:22:58.674-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.common.db.util.DBConnection : closeConnection:: STARTED
    [2012-10-31T19:22:58.675-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.common.db.util.DBConnection : closeConnection : Connection closed....
    [2012-10-31T19:22:58.677-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.common.db.util.DBConnection : closeConnection:: FINISHED
    [2012-10-31T19:22:58.678-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionProxyManager : executeQuery : result:- 1741
    [2012-10-31T19:22:58.679-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionProxyManager : executeQuery:: FINISHED
    [2012-10-31T19:22:58.679-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionManager : executeQuery : Error code received: 1741
    [2012-10-31T19:22:58.680-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionManager : getErrorCodeKey:: STARTED
    [2012-10-31T19:22:58.681-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionManager : getErrorCodeKey : return code to be looked for:1741
    [2012-10-31T19:22:58.681-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionManager : getErrorCodeKey : Error code lookup name :Lookup.DBUM.Oracle.Error.Mapping
    [2012-10-31T19:22:58.682-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.common.dao.OIMUtil : getLookUpMap():: STARTED
    [2012-10-31T19:22:58.683-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.common.dao.OIMUtil : getLookUpMap() : LookUpName : Lookup.DBUM.Oracle.Error.Mapping
    [2012-10-31T19:22:58.695-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.common.dao.OIMUtil : getLookUpMap():: FINISHED
    [2012-10-31T19:22:58.696-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionManager : getErrorCodeKey : Error code lookup map :{959=INVALID_TABLE_NAME, 1935=MISSING_ROLE, 1920=USER_ALREADY_EXIST, 1031=INSUFFICIENT_PRIVILEGE, 50004=CHILDNAME_NOT_PROVIDED, 900=INVALID_SQL, 998=INVALID_PASSWORD}
    [2012-10-31T19:22:58.697-03:00] [oim_server1] [TRACE] [] [OIMCP.DBUM] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b66,0] [SRC_CLASS: com.thortech.util.logging.Logger] [APP: oim#11.1.1.3.0] [SRC_METHOD: debug] oracle.iam.connectors.dbum.integration.DBUMProvisionManager : getErrorCodeKey:: FINISHED
    [2012-10-31T19:22:58.946-03:00] [oim_server1] [NOTIFICATION] [IAM-0060016] [oracle.iam.platform.auth.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b68,0] [APP: oim#11.1.1.3.0] La dirección IP desde la que se dispara el explorador es 130.120.5.9
    [2012-10-31T19:22:58.950-03:00] [oim_server1] [NOTIFICATION] [IAM-0060016] [oracle.iam.platform.auth.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b6a,0] [APP: oim#11.1.1.3.0] La dirección IP desde la que se dispara el explorador es 130.120.5.9
    [2012-10-31T19:22:58.950-03:00] [oim_server1] [NOTIFICATION] [IAM-0060016] [oracle.iam.platform.auth.impl] [tid: [ACTIVE].ExecuteThread: '2' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b6c,0] [APP: oim#11.1.1.3.0] La dirección IP desde la que se dispara el explorador es 130.120.5.9
    [2012-10-31T19:22:58.950-03:00] [oim_server1] [NOTIFICATION] [IAM-0060016] [oracle.iam.platform.auth.impl] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b6e,0] [APP: oim#11.1.1.3.0] La dirección IP desde la que se dispara el explorador es 130.120.5.9
    [2012-10-31T19:22:58.967-03:00] [oim_server1] [NOTIFICATION] [IAM-0060016] [oracle.iam.platform.auth.impl] [tid: [ACTIVE].ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b70,0] [APP: oim#11.1.1.3.0] La dirección IP desde la que se dispara el explorador es 130.120.5.9
    [2012-10-31T19:23:06.811-03:00] [oim_server1] [NOTIFICATION] [IAM-0060016] [oracle.iam.platform.auth.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] La dirección IP desde la que se dispara el explorador es 130.120.5.9
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010010] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] ********** Entrando en el segmento de autorización con los parámetros:: LoggedInUserId = 1, target resourceID = 126, Feature = USER_MANAGEMENT, Action = VIEW_USER_DETAILS **********
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010029] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] Se han encontrado resultados de OES en caché con la clave F: USER_MANAGEMENTS: 1P: VIEW_USER_DETAILSOESDefinition
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010021] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] Validando las obligaciones internas: [InternalObligation: name: VIEW_USER_DETAILS, values: [ALL_ATTRIB_OBLI], convertToObligation: true, InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: UDCAO, values: [true], convertToObligation: false, InternalObligation: name: MODIFY_USER_PROFILE, values: [ALL_ATTRIB_OBLI], convertToObligation: false, InternalObligation: name: VIEW_USER_DETAILS, values: [ALL_ATTRIB_OBLI], convertToObligation: true, InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: UDCAO, values: [true], convertToObligation: false, InternalObligation: name: MODIFY_USER_PROFILE, values: [ALL_ATTRIB_OBLI], convertToObligation: false]
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010022] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] ---------- Se ha cumplido la lista de obligaciones internas, devolviendo TRUE ----------
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010021] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] Validando las obligaciones internas: [InternalObligation: name: VIEW_USER_DETAILS, values: [usr_key, LDAP GUID, Status, usr_manager_key, User Login], convertToObligation: true, InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: UDCAO, values: [true], convertToObligation: false]
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010022] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] ---------- Se ha cumplido la lista de obligaciones internas, devolviendo TRUE ----------
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010021] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] Validando las obligaciones internas: [InternalObligation: name: VIEW_USER_DETAILS, values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key], convertToObligation: true, InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: UDCAO, values: [true], convertToObligation: false, InternalObligation: name: VIEW_USER_DETAILS, values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key], convertToObligation: true, InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: UDCAO, values: [true], convertToObligation: false, InternalObligation: name: VIEW_USER_DETAILS, values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key], convertToObligation: true, InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: UDCAO, values: [true], convertToObligation: false, InternalObligation: name: VIEW_USER_DETAILS, values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key], convertToObligation: true, InternalObligation: name: noop, values: [true], convertToObligation: false, InternalObligation: name: UDCAO, values: [true], convertToObligation: false]
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010022] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] ---------- Se ha cumplido la lista de obligaciones internas, devolviendo TRUE ----------
    [2012-10-31T19:23:06.834-03:00] [oim_server1] [NOTIFICATION] [IAM-1010026] [oracle.iam.platform.authz.impl] [tid: [ACTIVE].ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: xelsysadm] [ecid: b5b137796995ea37:-53f1ad5e:13ab2c66c07:-8000-0000000000006b72,0] [APP: oim#11.1.1.3.0] ********** Saliendo del segmento de autorización con resultado Decision :PERMIT[[
    Obligations from policy:
    Name: VIEW_USER_DETAILS values: [ALL_ATTRIB_OBLI]
    Name: UDCAO values: [true]
    Name: MODIFY_USER_PROFILE values: [ALL_ATTRIB_OBLI]
    Name: VIEW_USER_DETAILS values: [ALL_ATTRIB_OBLI]
    Name: UDCAO values: [true]
    Name: MODIFY_USER_PROFILE values: [ALL_ATTRIB_OBLI]
    Obligations from policy:
    Name: VIEW_USER_DETAILS values: [usr_key, LDAP GUID, Status, usr_manager_key, User Login]
    Name: UDCAO values: [true]
    Obligations from policy:
    Name: VIEW_USER_DETAILS values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key]
    Name: UDCAO values: [true]
    Name: VIEW_USER_DETAILS values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key]
    Name: UDCAO values: [true]
    Name: VIEW_USER_DETAILS values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key]
    Name: UDCAO values: [true]
    Name: VIEW_USER_DETAILS values: [usr_key, Full Name, Display Name, User Login, First Name, Last Name, act_key, Status, usr_manager_key]
    Name: UDCAO values: [true] **********
    thanks again!
    Guido

  • Why to add Role to a Role

    Hi
    Could any one explain why we need to add a Role to another Role.
    I just wanted to understand the basic Concept  why SAP has givren this functionallity.
    Thank you
    Regards
    Krishna kanth

    Hello Siddi,
    This could be a way to merge roles
    Please check this post:
    Delta Link - Add Role to Role
    Warm Regards,
    Ritu

  • ADDS role configuration with DCPromo failed , rc = 42

    Hi,
    i'm trying to build a Domain Controller (Windows Server 2008 R2 SP1) using MDT 2012.
    I created a Standard Task Sequence and append the following:
    "Apply Network Settings" Task to apply a fixed ip configuration to the machine.
    "Install Roles and Features" Task to install ADDS
    "Configure ADDS" Task to configure ADDS
    The task sequence itself is working fine till it comes to the "Configure ADDS" Step. Here it fails showing me the following error code:
    ERROR - ADDS role configuration with DCPromo failed , rc = 42
    ZTI ERROR - Non-zero return code by ZTIConfigureADDS, rc = 42
    Here is my ZTIConfigureADDS.log , any ideas what went wrong?
    Thanks a lot !
    Regards, Stefan
    <![LOG[Microsoft Deployment Toolkit version: 6.0.2223.0]LOG]!><time="16:31:23.000+000" date="06-14-2012" component="ZTIConfigureADDS" context="" type="1" thread="" file="ZTIConfigureADDS">
    <![LOG[The task sequencer log is located at C:\Users\ADMINI~1\AppData\Local\Temp\SMSTSLog\SMSTS.LOG. For task sequence failures, please consult this log.]LOG]!><time="16:31:23.000+000" date="06-14-2012" component="ZTIConfigureADDS" context="" type="1" thread="" file="ZTIConfigureADDS">
    <![LOG[---------------- Initialization ----------------]LOG]!><time="16:31:23.000+000" date="06-14-2012" component="ZTIConfigureADDS" context="" type="1" thread="" file="ZTIConfigureADDS">
    <![LOG[Generating DCPromo answer file]LOG]!><time="16:31:23.000+000" date="06-14-2012" component="ZTIConfigureADDS" context="" type="1" thread="" file="ZTIConfigureADDS">
    <![LOG[About to execute command: cmd /C C:\windows\system32\dcpromo.exe /answer:C:\Users\ADMINI~1\AppData\Local\Temp\AD_Answer.txt]LOG]!><time="16:31:24.000+000" date="06-14-2012" component="ZTIConfigureADDS" context="" type="1" thread="" file="ZTIConfigureADDS">
    <![LOG[ERROR - ADDS role configuration with DCPromo failed , rc = 42]LOG]!><time="16:31:34.000+000" date="06-14-2012" component="ZTIConfigureADDS" context="" type="3" thread="" file="ZTIConfigureADDS">
    <![LOG[ZTI ERROR - Non-zero return code by ZTIConfigureADDS, rc = 42]LOG]!><time="16:31:34.000+000" date="06-14-2012" component="ZTIConfigureADDS" context="" type="3" thread="" file="ZTIConfigureADDS">

    Just to add, in my smsts.log it states the following:
    <![LOG[Start executing the command line: cscript.exe "%SCRIPTROOT%\ZTIConfigureADDS.wsf"]LOG]!><time="16:31:23.936+420" date="06-14-2012" component="TSManager" context="" type="1" thread="2124" file="instruction.cxx:2928">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="16:31:23.936+420" date="06-14-2012" component="TSManager" context="" type="1" thread="2124" file="instruction.cxx:2957">
    <![LOG[Expand a string: WinPEandFullOS]LOG]!><time="16:31:23.936+420" date="06-14-2012" component="TSManager" context="" type="0" thread="2124" file="executionenv.cxx:782">
    <![LOG[Executing command line: cscript.exe "%SCRIPTROOT%\ZTIConfigureADDS.wsf"]LOG]!><time="16:31:23.936+420" date="06-14-2012" component="TSManager" context="" type="1" thread="2124" file="commandline.cpp:805">
    <![LOG[Process completed with exit code 42]LOG]!><time="16:31:34.466+420" date="06-14-2012" component="TSManager" context="" type="1" thread="2124" file="commandline.cpp:1102">
    <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="16:31:34.466+420" date="06-14-2012" component="TSManager" context="" type="1" thread="2124" file="instruction.cxx:3010">
    <![LOG[Failed to run the action: Configure ADDS.
    Unknown error (Error: 0000002A; Source: Unknown)]LOG]!><time="16:31:34.482+420" date="06-14-2012" component="TSManager" context="" type="3" thread="2124" file="instruction.cxx:3101">
    <![LOG[Sending status message . . .]LOG]!><time="16:31:34.482+420" date="06-14-2012" component="TSManager" context="" type="1" thread="2124" file="utility.cxx:292">

  • Restful API add role not working - receve 202 accepted but not VM was created

    Hi.
    I am using the Windows azure restful api to add a new role to my vm deployment.
    I have already added a cloud service and a deployment, I can list the deployments fine with the  https://msdn.microsoft.com/en-us/library/azure/ee460804.aspx and is all OK , but when I want to add a new VM to this deployment and I call the api using https://msdn.microsoft.com/en-us/library/azure/jj157186.aspx
    I get a 202 Accepted, but nothing happens, no VM was created , I dont know what I am missing .
    This is the XML that I am sending together with the add role api
    <PersistentVMRole xmlns="http://schemas.microsoft.com/windowsazure" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
                      <RoleName>vm-azure-lti3</RoleName>
                      <RoleType>PersistentVMRole</RoleType>                  
                          <ConfigurationSets>
                            <ConfigurationSet i:type="LinuxProvisioningConfigurationSet">
                              <ConfigurationSetType>LinuxProvisioningConfiguration</ConfigurationSetType>
                              <HostName>vm-linux-3</HostName>
                              <UserName>xxx</UserName>
                              <UserPassword>xxx</UserPassword>                                    
                            </ConfigurationSet>
                          </ConfigurationSets>   
                          <OSVirtualHardDisk>
                            <MediaLink>https://xxxx.blob.core.windows.net/vhds/communityimages2.vhd</MediaLink>
                            <SourceImageName>xxxx</SourceImageName>
                            <OS>Linux</OS>
                          </OSVirtualHardDisk>                  
                    </PersistentVMRole>
    Hope someone can give me some litght into this as I am kind of lost now.
    thanks

    Hi Victor,
    For called the REST API, I suggest you can use
    Fiddler to catch and monitor your error message. If you got 404 error, it is possible that your authentication has something wrong. I suggest you can try to use fiddler to troubleshooting.
    Any results, please feel free to let me know.
    Regards,
    Will
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Create User Activity: How to add Roles to the new user

    Hi all,
    My Problem is Using LC Workbench I have created one process it is having Create User Activity. I am able to creating the new user with this process.
    But I dont have idea how to add roles to that new user? Please anybody can help me out
    Thanks in advance.

    Hi,
      I used Built-in Componets till now, Please help me out What are the steps needed to implement a custom componet.
    Thanks in advance

  • Cannot add role to CAS

    We are have expanded a (2012 r2) primary site into a CAS and would now like to add the asset intelligence synchronization point and reporting services point to the CAS.
    When I right-click on the server name under \Administration\Overview\Site Configuration\Servers and Site System Roles there is no option to add site system roles.
    I am doing this logged in as a domain administrator who has the 'Full administrator' security role.
    If I look under component status and site status everything is green and OK

    Yes it was removed from the primary first. There is no option to add any roles to it.
    I have been looking through some of the logs and have seen this around once a minute in rcmctrl.log on the CAS:
    The current site status: ExpansionFailed.
    (On the primary it says 'The current site status: ReplicationActive.')

  • BAPI to add role to a user.

    Hi,
    Is there any BAPI available to assign role to a user?.
    I got one bapi BAPI_USER_ACTGROUPS_ASSIGN, this bapi does work.
    But the problem is it deletes the previous roles assigned to the user and then assign new one.
    I would like to know if there is any BAPI to just add a new role to the user without deleting the previous roles assigned to it.
    Thanks & Regards,
    Subin.

    Hi John,
    Bapi BAPI_USER_ACTGROUPS_ASSIGN does delete all the existing roles and appends new ones.
    If you wish to keep the existing roles then use BAPI_USER_GET_DETAIL along with BAPI_USER_ACTGROUPS_ASSIGN .
    example :  assuming it_new_activity is table of new activities you wish to assign.
    CALL FUNCTION 'BAPI_USER_GET_DETAIL'
      EXPORTING
        username       = 'TESTUSER'
      TABLES
        activitygroups = it_old_activity
        return         = return.
    APPEND LINES OF it_old_activity TO it_new_activity
    call function 'BAPI_USER_ACTGROUPS_ASSIGN'
      exporting
        username       = 'TESTUSER'
      tables
        activitygroups = it_new_activity
        return         = return.
    Hope this helps.
    Regards,
    Jovito.

  • Add Role to Role Category

    Hello Experts,
    my scenario:
    1) AD Group Reconciliation Task
    2) Auto creation Role category "AD Roles" if it doesnt exists
    3) Auto creation Roles based on AD groups in "AD Roles" Role category
    Ive already done auto creation role category and roles in default category, but i still cant create roles in my category.
    I think it could be done like this in role creation:
    mapAttrs.put(RoleManagerConstants.ROLE_CATEGORY_KEY, key)
    but how can i get Role category key of my category to var "key"?
    Are there more links between role and role category?
    Pls help.
    Thanks.

    public static String getRoleCategoryKey(String categoryName)
    String roleCategoryKey = null;
    RoleManager rmgr2;
    Set retAttrs = new HashSet();
    rmgr2 = oimClient.getService(RoleManager.class);
    System.out.println("Creating....");
    String ctxFactory = "weblogic.jndi.WLInitialContextFactory";
    String serverURL = "t3://10.111.6.101:14000";
    String username = "xelsysadm";
    String password = "xelsysadm";
    Hashtable env = new Hashtable();
    env.put(OIMClient.JAVA_NAMING_FACTORY_INITIAL,ctxFactory);
    env.put(OIMClient.JAVA_NAMING_PROVIDER_URL, serverURL);
    oimClient = new OIMClient(env);
    System.out.println("Logging...");
    try {
    oimClient.login(username, password);
    } catch (LoginException e) {
    System.out.println("Log in");
    rmgr2 = oimClient.getService(RoleManager.class);
    retAttrs.add(RoleManagerConstants.ROLE_CATEGORY_KEY);
    retAttrs.add(RoleManagerConstants.ROLE_CATEGORY_NAME);
    SearchCriteria criteriaM = new SearchCriteria(RoleManagerConstants.ROLE_CATEGORY_NAME, categoryName, SearchCriteria.Operator.EQUAL);
    try
    List roleCategories = rmgr2.search(criteriaM, retAttrs, null);
    System.out.println(roleCategories.size());
    boolean found = false;
    Iterator i$ = roleCategories.iterator();
    do
    if(!i$.hasNext())
    break;
    RoleCategory roleCat = (RoleCategory)i$.next();
    roleCategoryKey = roleCat.getEntityId();
    System.out.println("FOUND!!!");found = true;
    } while(!found);
    catch(Exception e) { }
    return roleCategoryKey;
    - I just find interesting code, but it doesnt work, when i use it to my map:
    mapAttrs = new HashMap<String, Object>();
    mapAttrs.put(RoleManagerConstants.ROLE_NAME, "testrole");
    mapAttrs.put(RoleManagerConstants.ROLE_DISPLAY_NAME, "testrole");
    mapAttrs.put(RoleManagerConstants.ROLE_DESCRIPTION, "desc for test");
    mapAttrs.put(RoleManagerConstants.ROLE_CATEGORY_KEY, getRoleCategoryKey("testcat"));
    And with .browse() I even know my category key, but when i use it:
    mapAttrs = new HashMap<String, Object>();
    mapAttrs.put(RoleManagerConstants.ROLE_NAME, "testrole");
    mapAttrs.put(RoleManagerConstants.ROLE_DISPLAY_NAME, "testrole");
    mapAttrs.put(RoleManagerConstants.ROLE_DESCRIPTION, "desc for test");
    mapAttrs.put(RoleManagerConstants.ROLE_CATEGORY_KEY, "21"));
    - errors.
    Whats wrong?

  • Add role to user when added to room

    Hi,
    We currently have all the users from our LDAP server available in the portal. When our content manager creates a new room and adds members we also have to give the members a default role in order to logon. These seperate steps are necessary, because we don't want give access to all the LDAP users.
    Does anyone know if there is a feature, by which we can give users a default role automatically, when adding them as room members?
    Looking forward to your reply.
    Kind regards,
    Joost Christenhusz

    Hi Joost,
    This feature is not available out of the box. To achieve this functionality you can write your own room extension and make sure that this extension is used in the room template. In the extension you can assign the required portal role to the room members. The extension gets executed when the room is created and your room members will be assigned the appropriate portal role. Use this guide as a starting point for room extensions
    https://media.sdn.sap.com/html/submitted_docs/nw_kmc/howto/coll/Room%20Extension%20Developer%20Guide.html
    Hope this helps.
    Akhilesh

  • Add Role  to a business partner

    Hello,
    I'm trying to add the role to a business partner using the
    BAPI_BUPA_ROLE_ADD_2.
    but it does not work.
    more precisely, the following happens .
    fill the required parameters, run the function BAPI_BUPA_ROLE_ADD_2. 
    it does not give errors, see table but100, there is no updated by,
    run the function again, it shows an error "the role already exists."
    get out of the transaction se37, fill out the required parameters, run the function BAPI_BUPA_ROLE_ADD_2. Again it does not give errors.
    Thank You

    Hello,
    I have been checking for similar issues with FM BAPI_BUPA_ROLE_ADD_2. However, this function module has not been used in SRM, only in CRM.
    In SRM, roles are assigned to users directly via SU01. We don't use to assign roles to business partners. In SRM, roles are assigned in SU01 as well as in portal (as of SRM 6.0).
    Regards,
    Ricardo

  • How can I add roles or features with using WMI?

    Can I add features in Windows server 2008/2012 with using WMI? I found only how to see installed features, but can`t found anything in my question. Can anybody help?

    Hi,
    I agree with Ed’s suggestion. Just in addition, you can install roles, role services, or features via
    Install-WindowsFeature PowerShell cmdlets. Please refer to following TechNet article and check if can help you.
    Install-WindowsFeature
    If any update, please feel free to let us know.
    Hope this helps.
    Best regards,
    Justin Gu

  • Reg: How to add role to a role programitically.

    Hi All,
    How to add a role to another role programmatically ?
    My requirement is...
    I have a super role S1 which has two sub roles R1 and R2.
    I have two schedulers running. When scheduler-1 runs, I want role R1 to be added to super role S1 and the role R2 to be removed. When scheduler-2 runs, I want the role R2 to be added and role R1 to be removed from role S1.
    Now my question is...how to add the sub roles programmatically to super role?
    Thanks,
    Shilpa.

    Hi Shilpa,
    sounds like you want to provide users with different content at different times. Have you ever heard about PCD Filtering? PCD Filtering allows you to hide or show parts of the content using arbitrary filter expressions. I guess you could also implement a PCD filter which filters content depending on the current time.
    Check the article <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3367e690-0201-0010-d285-c69bd884c9f3">Filtering Role and Workset Content</a>, Shantanu's blog <a href="https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/6370">Filtering Role Content by User Attributes</a> and the presentation <a href="https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/17968de1-0a01-0010-1f9f-c090fbc7001a">FilteringRoleand WorksetContentforDevelopers</a> for more information about PCD Filters.
    Best regards,
    Martin

  • Can not add Roles Server 2012 Standard R2

    Every time I try and add the DFS Namespace and replication roles it says the server requires a re-boot.  I check to ensure the version of server is activated and it is.
    I rebooted twice, checked for critical updates which there was none and tried again, same issues, re-boot required, rebooted again.
    Next up I ran DISM /Online /Cleanup-Image /RestoreHealth
    This completed and said it fixed some metadata corruption.  Re-boot, Try role Install, same issue, reboot required.
    Next I check Trusted Installer to see if there was a pending install, nothing, Registry is correct.
    Next I checked the other two entries mentioned in other articles (pending server manager reboot, pending file rename operation) both had correct values.
    I ran DISM /Online /Cleanup-Image /RestoreHealth
    found meta data corruption and fixed, reboot.
    Try role install, same issue, pending reboot.  I have tried to install the rolls from a elevated powershell and through the server manager.
    Last item I tried was to fix and .net corruption, and the tool would not work on Server 2012 R2.
    I am now at a loss as to what to look to get these roles to install.
    What are next steps, what can I do to get these roles installed?  I need to get replication working on this server but it is hard when you can not even add server roles.
    Any help would be appreciated.
    Curt Winter
    Business Technology Services

    Dave,
    I finally got the DFS roles installed, can not remember what I did to get them in besides get lucky.  I am now trying to install domain roles on this same Server, and I keep getting server needs a restart.  Check the registry no entries preventing
    the install, installed critical updated, rebooted countless times.  When the server boots it reports the following:
    It shows red under server mgr and manageability, with the message, "Online - Cannot get role and feature data"
    I ran the DISM.exe /Online /Cleanup-image /ScanHealth
    Here is the link to the CBS log file:
    https://mpillc-my.sharepoint.com/personal/bts_admin_managed-programs_com/_layouts/15/guestaccess.aspx?guestaccesstoken=0XXCwKYbjOL2Y9fXiJcpfoDvJBqVPrCBZ7uvdj%2f5usI%3d&docid=00b8e6c2c0800465eb84afb54c2650715
    Here is a link to the Windows Update File:
    https://mpillc-my.sharepoint.com/personal/bts_admin_managed-programs_com/_layouts/15/guestaccess.aspx?guestaccesstoken=LQ9ldakkbCqwjKDZLIXgEfuvX4Pri1UBCTEAt0NK%2bZw%3d&docid=0ed33ff368f584111b95e180565b02f4b
    Any input would be appreciated, thanks for your response before, sorry I did not respond.
    Curt Winter
    Microsoft Certified Professional
    Business Technology Services

Maybe you are looking for

  • Can  you move your notes from one iphone to another and how?

    Can you move your notes from one iphone to another and how?

  • Won't play in DVD player

    after finishing my DVD I placed it into the DVD player hooked to my TV and it said to check the TV systems(not to sure , what that meant) but I tried in another and it said the same thing. So I changed the setting on idvd to NYSTA (I think), because

  • Can anyone help me wid my N70 model

    Hi, the problem goes like dis...few days bak...i was transferring a song from my friends mobile....via bluetooth(my cell doesnt have the antivirus).....after that my cell has started functioning absurdly....the problem is dat...it does not stick to o

  • Question about analytic function

    I have a table (t1) that contains text (source_ip) and a corresponding number column (attack_count). I'm trying to group source_ip, sum attack_count per unique source ip, and then provide a percentage for unique source_ip attack count to the total su

  • Using PSE  9  on my secondary computer

    using my PSE 9 on secondary computer as allowed by you....now getting a message to provide another S/N....Please make ikt go away otr tell me how