How to use TEWS to execute the "Synchronize User With Roles" task
search cancel

How to use TEWS to execute the "Synchronize User With Roles" task

book

Article ID: 97740

calendar_today

Updated On: 04-17-2025

Products

CA Identity Manager CA Identity Governance CA Identity Portal

Issue/Introduction


Is there an example of the XML for TEWS to execute the "Synchronize User With Roles" task?

Environment

Identity Manager

Resolution

Below is an example showing the expected input for executing the "Synchronize User With Roles" with TEWS.
Note that the BindUser, BindPassword, and TestUser values would need to be adjusted and that you may only need to set either addMissing, deleteExtra, or both to true depending on what you want to do.


<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">
   <soapenv:Body>

   <admin_id xmlns="http://tews6/xsd/types">uid=BindUser,ou=people,ou=im,ou=ca,o=com</admin_id>
   <admin_password xmlns="http://tews6/xsd/types">BindPassword</admin_password> 

 <wsdl:DoSynchUserRoles> 
      <wsdl:DoSynchUserRolesSearch> 
         <wsdl:Filter index="0"> 
            <wsdl:Field>%USER_ID%</wsdl:Field> 
            <wsdl:Op>EQUALS</wsdl:Op> 
            <wsdl:Value>TestUser</wsdl:Value> 
         </wsdl:Filter> 
         </wsdl:DoSynchUserRolesSearch> 
            <wsdl:DoSynchUserRolesDoSynchUserRolesTab> 
            <wsdl:addMissing>true</wsdl:addMissing> 
            <wsdl:deleteExtra>true</wsdl:deleteExtra> 
         </wsdl:DoSynchUserRolesDoSynchUserRolesTab> 
      </wsdl:DoSynchUserRoles> 

   </soapenv:Body>
</soapenv:Envelope>

Additional Information

For information about how to synchronize user with roles in bulk outside of TEWS, see Synchronization User with Roles in Bulk section in Synchronize Users with Roles