Sample SOAP requests to create a Provisioning Role via TEWS

Document ID : KB000041309
Last Modified Date : 26/07/2018
Show Technical Document Details
Introduction:
For bulk / automated way of creating Provisioning Roles, TEWS can be used
 
 
 
 
Instructions:
Execute the following request in SOAP UI, using credentials and values appropriate to your environment:
 
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">
   <soapenv:Header/>
   <soapenv:Body>
      <wsdl:TaskContext>
         <wsdl:admin_id>imadmin</wsdl:admin_id>
         <wsdl:admin_password>test</wsdl:admin_password>
      </wsdl:TaskContext>
      <wsdl:CreateProvisioningRole>
         <wsdl:CreateProvisioningRoleSearch>
            <wsdl:CreateCopy>false</wsdl:CreateCopy>
            <wsdl:CreateNew>true</wsdl:CreateNew>
         </wsdl:CreateProvisioningRoleSearch>
         <wsdl:CreateProvisioningRoleProfileTab>
            <wsdl:Name>TewsRole</wsdl:Name>
            <wsdl:Description>test via tews</wsdl:Description>
         </wsdl:CreateProvisioningRoleProfileTab>
         <wsdl:CreateProvisioningRoleAccountTemplatesTab>
            <wsdl:Policies>
               <wsdl:add index="0">
                  <wsdl:Name>AD Template</wsdl:Name>
                  <wsdl:EndpointType>ActiveDirectory</wsdl:EndpointType>
                </wsdl:add>
            </wsdl:Policies>
         </wsdl:CreateProvisioningRoleAccountTemplatesTab>
       <wsdl:CreateProvisioningRoleAdministratorsTab>
            <wsdl:AdminsManageAdmins>1</wsdl:AdminsManageAdmins>
            <wsdl:Policy>
               <wsdl:add index="0">
                  <wsdl:Admin><![CDATA[<MemberRule><RoleMember><AdminRole name="System Manager"/></RoleMember></MemberRule>]]></wsdl:Admin>
                  <wsdl:ManageMembers>1</wsdl:ManageMembers>
                  <wsdl:ManageAdmins>1</wsdl:ManageAdmins>
                  <wsdl:User><![CDATA[<ScopeRule object="USER" purpose="*"><All/></ScopeRule>]]></wsdl:User>
               </wsdl:add>
            </wsdl:Policy>
         </wsdl:CreateProvisioningRoleAdministratorsTab>
             <wsdl:CreateProvisioningRoleOwnersTab>
            <wsdl:Policy>
               <wsdl:add index="0">
                  <wsdl:Owner>
                  <![CDATA[<MemberRule><AttributeExpression attribute="%USER_ID%" comparator="EQUALS" value="admin"/></MemberRule>]]>
                  </wsdl:Owner>
               </wsdl:add>
                       <wsdl:add index="1">
                  <wsdl:Owner>
                  <![CDATA[<MemberRule><AttributeExpression attribute="%USER_ID%" comparator="EQUALS" value="imuser"/></MemberRule>]]>
                  </wsdl:Owner>
               </wsdl:add>
            </wsdl:Policy>
         </wsdl:CreateProvisioningRoleOwnersTab>
      </wsdl:CreateProvisioningRole>
   </soapenv:Body>
</soapenv:Envelope>
Additional Information:
The SOAP response will be the transaction ID number, for example:
 
<soapenv:Envelope xsi:schemaLocation="http://schemas.xmlsoap.org/soap/envelope/ http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://tews6/wsdl" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
   <soapenv:Body>
      <ImsStatus version="6.0">
         <transactionId>fd5f53e2-8f98351f-b921810e-0e85d8</transactionId>
      </ImsStatus>
   </soapenv:Body>
</soapenv:Envelope>