AnsweredAssumed Answered

Xogging User through GEL with <Security><UserSecurity ... /></Security>

Question asked by daniel.aiub on May 7, 2013
Latest reply on May 13, 2013 by daniel.aiub
Hello everybody,
I'm xogging an user in a Group <Groups><Groupid="ProjectManager" /></Groups>.
<soap:invoke endpoint="${clarityHost}/niku/xog" var="return">
      <soap:message>
        <soapenv:Envelope>
          <soapenv:Header>
            <xog:Auth>
              <Username>${User}</Username>
              <Password>${Pass}</Password>
            </xog:Auth>
          </soapenv:Header>
          <soapenv:Body>
            <xog:WriteProject>
              <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_user.xsd">
                <Header action="write" externalSource="ORACLE-FINANCIAL" objectType="user" version="6010"/>
                   <instance instanceCode="${idUser}" objectCode="user">
                        <Users>
                               <User userName="meandi" >
                                   <Resource resourceId="02792269" />
                                   <Groups>
                                      <Group id="ProjectManager" />
                                   </Groups>
                               </User>
                        </Users>
               

<Security>
                            <UserSecurity rightCode="???" userName="process_admin"/>
                        </Security>
                </instance>
              </NikuDataBus>
            </xog:WriteProject>
          </soapenv:Body>
        </soapenv:Envelope>
      </soap:message>
</soap:invoke>
I've taken an example from an [ objectType="customObjectInstance", which has  <instance></instance> plus <Security></Security>.
My question is, now I'm working with an [ objectType="user" ], which is not a custom object, it's from Clarity core. I believe that it's not the point to exclude the <instance> or even the <Security> tag, so if I need to use these tags which 'rightCode' param value do I need to use on user object?

Best regards.

Outcomes