cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1127
Views
0
Helpful
1
Replies

Adding a User using AXL in CUCM

AR7
Level 1
Level 1

I am using AXL to add a User in the CUCM. I am using the following AXL syntax:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/9.1">
  <soapenv:Header/>
  <soapenv:Body>
    <ns:addUser sequence="?">
      <user>
        <firstName>John</firstName>
        <lastName>Doe</lastName>
        <userid>john.doe</userid>
        <password>1234</password>
        <mailid>jd@g.com</mailid>
        <department>IT</department>
        <enableMobility>T</enableMobility>
        <phoneProfiles>
         <profileName>john.doe_EM</profileName>
        </phoneProfiles>
       
      <associatedDevices>
      <device>SEP001F3A924223</device>
      </associatedDevices>
        
        
        </user>
    </ns:addUser>
  </soapenv:Body>
</soapenv:Envelope>

The above works when I remove the tags for adding defaultProfile and primaryExtension. As a turn around i used the SQL statement for adding the defaultProfile but I am still not able to add the primaryExtension. is there an SQL statement for that? 

1 Reply 1

dcburleigh
Level 1
Level 1

What error are you seing when you try to add the primary extension?

The WSDL contains this comment:

:Only DNs associated with the associatedDevices of the  User can be used as primary extension.

 

Is the DN/Partition you're trying to add already associated the device ?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: