AnsweredAssumed Answered

XOG inserting Custom Object security problems

Question asked by markl_af on Sep 4, 2013
Latest reply on Sep 4, 2013 by markl_af
Using Clarity 13.2 I created custom object: Error Log / c_error_log. It does NOT have a Master Object.

In a process invoked by the Execute a Process job, I'm able to create the Error Log object instance, but it is unavailable to all but the Niku Administrator. I have entered the Security node in the code below, but I've tried without, too.
(The next_err_code is the value returned from cmn_autonum_schemes and populates the instance code correctly)

I want to make these object instances available to anyone.
      <gel:parse var="write_error_log">
        <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd">
          <Header action="write" externalSource="NIKU" objectType="customObjectInstance" version="13.2.0.472"/>
          <customObjectInstances objectCode="c_error_log">
            <instance instanceCode="${next_err_code}" objectCode="c_error_log">
              <CustomInformation>
                <ColumnValue name="code">${next_err_code}</ColumnValue>
                <ColumnValue name="partition_code">NIKU.ROOT</ColumnValue>
                <ColumnValue name="name">Resource Update</ColumnValue>
                <ColumnValue name="page_layout">odf.c_error_logFrame</ColumnValue>
                <ColumnValue name="odf_period_start"/>
                <ColumnValue name="odf_period_end"/>
                <ColumnValue name="c_err_process_name">Resource Update</ColumnValue>
                <ColumnValue name="c_err_process_step">XOG</ColumnValue>
                <ColumnValue name="c_err_msg_short">${error_message}</ColumnValue>
                <ColumnValue name="c_error_messages">${long_message}</ColumnValue>
              </CustomInformation>
              <OBSAssocs complete="false"/>
              <Security>
                <UserSecurity rightCode="odf_cst_c_error_log_edit" userName="mlucas"/>
              </Security>
            </instance>
          </customObjectInstances>
        </NikuDataBus>
      </gel:parse>

      <soap:invoke endpoint="${XOGURL}/niku/xog" var="out">
        <soap:message>
          <soapenv:Envelope
              xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xog="http://www.niku.com/xog">
            <soapenv:Header>
              <xog:Auth>
                <xog:SessionID>${sessionID}</xog:SessionID>
              </xog:Auth>
            </soapenv:Header>
            <soapenv:Body>
              <gel:include select="$write_error_log"/>
            </soapenv:Body>
          </soapenv:Envelope>
        </soap:message>
      </soap:invoke>
Thanks,
Mark Lucas

Outcomes