cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
278
Views
0
Helpful
1
Replies
Highlighted
Beginner
Beginner

Removing an Association of Device from a User

I have the following AXL syntax for removing all the associations of devices from the User:

<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:updateUser xmlns:axl="http://www.cisco.com/AXL/API/11.5" sequence="12055">
                    <userid>john.doe</userid>
                   <associatedDevices>
                    </associatedDevices>
                  </axl:updateUser >
                  </SOAP-ENV:Body>
                </SOAP-ENV:Envelope>

I just keep the associated devices tag blank, and all the association is deleted. My problem is what if I have to remove a single association from a list of associatedDevices, how will the syntax be like.

And after removing the association will the ownerUserName in the Phone config be removed.

1 REPLY 1
Highlighted
Enthusiast

Hi,

First check with getUser which Devices are associated with your enduser.
In my response you can see two device CSFBMARTIN and SEP000011112222.

Now I just want to assign my Jabber Device and remove the SEP000011112222 Device.
Following by an Update!

 

REQUEST:

<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:getUser sequence="?">
         <!--You have a CHOICE of the next 2 items at this level-->
         <userid>bmartin@rsc-lab.de</userid>
         <returnedTags uuid="?">
            <associatedDevices>
               <device></device>
            </associatedDevices>
            <lineAppearanceAssociationForPresences>
               <lineAppearanceAssociationForPresence uuid="?">
                  <laapAssociate></laapAssociate>
                  <laapProductType></laapProductType>
                  <laapDeviceName></laapDeviceName>
                  <laapDirectory></laapDirectory>
                  <laapPartition></laapPartition>
                  <laapDescription></laapDescription>
               </lineAppearanceAssociationForPresence>
            </lineAppearanceAssociationForPresences>
         </returnedTags>
      </ns:getUser>
   </soapenv:Body>
</soapenv:Envelope>


RESPONSE:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Body>
      <ns:getUserResponse xmlns:ns="http://www.cisco.com/AXL/API/11.5">
         <return>
            <user uuid="{2D887B79-6D9B-3521-470F-3F0B025D9146}">
               <associatedDevices>
                  <device>CSFBMARTIN</device>
                  <device>SEP000011112222</device>
               </associatedDevices>
               <lineAppearanceAssociationForPresences>
                  <lineAppearanceAssociationForPresence uuid="{72D88797-F3FA-AFB6-AC98-7113B30DC138}">
                     <laapAssociate>t</laapAssociate>
                     <laapProductType>Cisco Unified Client Services Framework</laapProductType>
                     <laapDeviceName>CSFBMARTIN</laapDeviceName>
                     <laapDirectory>\+49211469951062</laapDirectory>
                     <laapPartition>glo_intern</laapPartition>
                     <laapDescription>CSF,Bjšrn Martin,2301062,DTTS GmbH</laapDescription>
                  </lineAppearanceAssociationForPresence>
                  <lineAppearanceAssociationForPresence uuid="{CE02488E-1A7C-1DD7-6508-578D45DE7F8F}">
                     <laapAssociate>f</laapAssociate>
                     <laapProductType>Cisco 9971</laapProductType>
                     <laapDeviceName>SEP000011112222</laapDeviceName>
                     <laapDirectory>\+49211469951662</laapDirectory>
                     <laapPartition>glo_intern</laapPartition>
                     <laapDescription>2311662_Bjoern Martin</laapDescription>
                  </lineAppearanceAssociationForPresence>
               </lineAppearanceAssociationForPresences>
            </user>
         </return>
      </ns:getUserResponse>
   </soapenv:Body>
</soapenv:Envelope>

 

REQUEST Update:

<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>bmartin@rsc-lab.de</userid>
         <associatedDevices>
            <device>CSFBMARTIN</device>
         </associatedDevices>
         <lineAppearanceAssociationForPresences>
            <lineAppearanceAssociationForPresence>
               <laapAssociate>t</laapAssociate>
               <laapProductType>Cisco Unified Client Services Framework</laapProductType>
               <laapDeviceName>CSFBMARTIN</laapDeviceName>
               <laapDirectory>\+49211469951062</laapDirectory>
               <laapPartition>glo_intern</laapPartition>
               <laapDescription>2311662_Bjoern Martin</laapDescription>
            </lineAppearanceAssociationForPresence>
         </lineAppearanceAssociationForPresences>
      </ns:updateUser>
   </soapenv:Body>
</soapenv:Envelope>

This widget could not be displayed.