Symantec IGA

Expand all | Collapse all

TEWS request to retrieve multiple Access roles by name

Jump to Best Answer
  • 1.  TEWS request to retrieve multiple Access roles by name

    Posted 04-11-2018 11:17 AM

    With the following XML request I'm able to find the Access Role named SSO_APP_SERVICENOW

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">
    <soapenv:Header/>
    <soapenv:Body>
    <wsdl:TaskContext>
    <wsdl:admin_id>testiam</wsdl:admin_id>
    </wsdl:TaskContext>
    <wsdl:ViewAccessRoleQuery>
    <wsdl:ViewAccessRoleSearch>
    <wsdl:Subject index="0">
    <wsdl:Name>SSO_APP_SERVICENOW</wsdl:Name>
    </wsdl:Subject>
    </wsdl:ViewAccessRoleSearch>
    </wsdl:ViewAccessRoleQuery>
    </soapenv:Body>
    </soapenv:Envelope>

     

    Now, I would like to return more than one Access Roles with only one request.

    I tried with the following XML with no success because it always finds the first searched Access Role (that one with index="0"), SSO_APP_SERVICENOW in this case:

     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">
    <soapenv:Header/>
    <soapenv:Body>
    <wsdl:TaskContext>
    <wsdl:admin_id>testiam</wsdl:admin_id>
    </wsdl:TaskContext>
    <wsdl:ViewAccessRoleQuery>
    <wsdl:ViewAccessRoleSearch>
    <wsdl:Subject index="0">
    <wsdl:Name>SSO_APP_SERVICENOW</wsdl:Name>
    </wsdl:Subject>
    <wsdl:Subject index="1">
    <wsdl:Name>SSO_APP_PARCEL</wsdl:Name>
    </wsdl:Subject>
    <wsdl:Subject index="2">
    <wsdl:Name>SSO_APP_SALESFORCE</wsdl:Name>
    </wsdl:Subject>
    </wsdl:ViewAccessRoleSearch>
    </wsdl:ViewAccessRoleQuery>
    </soapenv:Body>
    </soapenv:Envelope>

     

    Is it possible? May you provide the right request XML?

     

    Regards,

    Gabriele



  • 2.  Re: TEWS request to retrieve multiple Access roles by name

    Broadcom Employee
    Posted 04-12-2018 08:24 AM

    A Salesforce ticket is opened for this issue.

    Philippe.



  • 3.  Re: TEWS request to retrieve multiple Access roles by name
    Best Answer

    Posted 04-12-2018 08:32 AM

    CA Support confirmed that is not possible to retrieve more than one Access Role at time with a TEWS call (it is possible for User objects invoking operation named ViewUserSearch using Filter tag but it is not possible with ViewAccessRoleSearch because no Filter tag exists for it).