How to create bulk users in catalog application

Document ID : KB000015069
Last Modified Date : 14/02/2018
Show Technical Document Details
Question:

How can we create bulk contacts in catalog application

Answer:

This can be achieved using the 'UserService' web service provided by catalog

Run the "createUser" method for contacts creation in Catalog. You may have to loop the web services method multiple times for each contact to be created.

Below is the sample envelope for single user creation using web services

 

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ser="http://services.soap.usm.ca.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">

   <soapenv:Header/>

   <soapenv:Body>

      <ser:createUser soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

         <sessionID xsi:type="xsd:string">SESSIONID</sessionID>

         <userObj xsi:type="urn:User" xmlns:urn="urn:usmUserService">

            <userID xsi:type="xsd:string">USERID</userID>

            <firstName xsi:type="xsd:string">FIRSTNAME</firstName>

      <lastName xsi:type="xsd:string">LASTNAME</lastName>

         </userObj>

      </ser:createUser>

   </soapenv:Body>

</soapenv:Envelope>

Additional Information:

The information in this article has been included in our product documentation. You can find further details here:

https://docops.ca.com/ca-service-management/14-1/en/building/building-ca-service-catalog/guidelines-for-modifying-catalog-content/frequently-asked-questions