Synchronize User with Account Templates via TEWS
search cancel

Synchronize User with Account Templates via TEWS

book

Article ID: 267219

calendar_today

Updated On:

Products

CA Identity Manager CA Identity Suite

Issue/Introduction

This article provides the steps required to programmatically execute the "Synchronize User with Account Templates" task in Identity Manager (Release 14.4) using the Task Execution Web Service (TEWS).

Environment

Identity Manager

Resolution

o execute the synchronization task via TEWS, ensure that Web Services are enabled within the Identity Manager environment.

  1. Enable Web Services: Ensure "Enable Web Services" is checked in your Identity Manager environment configuration.
  2. Construct the Request: Send your request to the following endpoint: http://<hostname>:8080/iam/im/TEWS6/identityEnv
  3. Required Parameters: Include the following credentials and identifiers in your XML request:
    • Admin Username: The administrator username with sufficient privileges.
    • Admin Password: The password for the specified administrator.
    • User UID: The Unique Identifier (UID) of the user object to be synchronized.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsdl="http://tews6/wsdl">
   <soapenv:Header>
      <wsdl:DoSynchUserTemplatesTaskContext>
         <!--You may enter the following 11 items in any order-->
         <wsdl:admin_id>username of admin</wsdl:admin_id>
         <!--Optional:-->
         <wsdl:admin_password>admin password</wsdl:admin_password>
         <!--Optional:-->
       
      </wsdl:DoSynchUserTemplatesTaskContext>
   </soapenv:Header>
   <soapenv:Body>
      <wsdl:DoSynchUserTemplates>
         <wsdl:DoSynchUserTemplatesSearch>
            <wsdl:Subject index="?">
               <wsdl:UID>UID of user in question</wsdl:UID>
            </wsdl:Subject>
         </wsdl:DoSynchUserTemplatesSearch>
         <!--Optional:-->
         <wsdl:DoSynchUserTemplatesDoSynchUserTemplatesTab/>
      </wsdl:DoSynchUserTemplates>
   </soapenv:Body>
</soapenv:Envelope>

 

You can create a policy that triggers after for example user activation to send such TEWS to IM. 

 

Additional Information