cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
402
Views
5
Helpful
3
Replies
Highlighted
Beginner
Beginner

Updating a User with Device in CUCM

I am working on a project that's automating the CUCM activities.Presently what I am trying to do is update an existing user and make an association to a new device and remove an existing association. I am trying to achieve that using Python. The following is the XML structure for that:

 

<SOAP-ENV:Envelope xmlns:SOAP- 
ENV="http://schemas.xmlsoap.org/soap/envelope/" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema">  
<SOAP-ENV:Body>    
  <axl:updateAppUser xmlns:axl="http://www.cisco.com/AXL/API/1.0" 
   sequence="12055">         
  <userid>atest</userid>         
  <associatedDevices>
  <device>TCTVINU</device>      
 </associatedDevices>    
 </axl:updateAppUser >
 </SOAP-ENV:Body>
 </SOAP-ENV:Envelope>

But when I run the code, it'showing that the user does not exist, but the user is there in the CUCM. is there any other alternate way to achieve that? 

There is also a technique using the executeSQLUpdate, but I am not aware of the syntax.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Enthusiast

You’re trying to update appUser. Instead just do user. AppUser is application users and don’t have phones.

View solution in original post

3 REPLIES 3
Highlighted
Enthusiast

You’re trying to update appUser. Instead just do user. AppUser is application users and don’t have phones.

View solution in original post

Highlighted

Thanks was using the wrong user, it worked with updateUser.
Highlighted
Enthusiast

Hi,

which Kind of user is "atest"? An EndUser or Application User?

 

If you want to remove all devices from End User, can you use this post!

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/11.5">
   <soapenv:Header/>
   <soapenv:Body>
      <ns:updateUser sequence="?">
         <userid>atest</userid>
         <associatedDevices>
         </associatedDevices>
      </ns:updateUser>
   </soapenv:Body>
</soapenv:Envelope>

This widget could not be displayed.