cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2927
Views
5
Helpful
3
Replies

Updating a User with Device in CUCM

AR7
Level 1
Level 1

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

Joseph Jacobs
Level 4
Level 4
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

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

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

BjoernMartin
Spotlight
Spotlight

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>

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: