Add a User
Problem
Your application needs to add a new user to Cisco Unified CM.
Solution
Cisco UC Manager Version: 8.5
Use the addUser AXL API to add a new user to Unified Communications Manager.
Step 1: Add user and specify required and optional information.
You can specify many attributes for the user. In this example, we specify some user details such as name and department, and associate a device and primary extension. The addUser response returns the uuid of the new user.
addLine
Request Response
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5"> <soapenv:Header/> <soapenv:Body> <ns:addUser sequence="?"> <user> <firstName>Joe</firstName> <lastName>Sample</lastName> <userid>jsample</userid> <password>password</password> <pin>12345</pin> <mailid>jsample@company.com</mailid> <department>Marketing</department> <manager>Jane Doe</manager> <associatedDevices> <!--Zero or more repetitions:--> <device>SEPE8B7480316D6</device> </associatedDevices> <primaryExtension> <pattern>1010</pattern> </primaryExtension> </user> </ns:addUser> </soapenv:Body> </soapenv:Envelope>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"> <soapenv:Body> <ns:addUserResponse xmlns:ns="http://www.cisco.com/AXL/API/8.5"> <return>{13466CB4-A9BE-8040-561A-EF3BAFFBD5E9}</return> </ns:addUserResponse> </soapenv:Body> </soapenv:Envelope>