08-09-2018 09:51 PM
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.
Solved! Go to Solution.
08-09-2018 11:01 PM
08-09-2018 11:01 PM
08-10-2018 02:37 AM
08-09-2018 11:15 PM
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>
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide