Add device to application user controlled devices

Version 1
    This document was generated from CDN thread

    Created by: Gionata Navarra on 01-09-2010 03:31:18 PM
    Hi all,
    I need via AXL request to add a device to the list of controlled device of an application user.
    I've found an UpdateAppUserReq, but it seems that not all the fields are updatable with this request, i.e Userid, Password and  digestCredentials.

            UpdateAppUserReq updateUser = new UpdateAppUserReq();
            updateUser.setUserid("myUser");
            axlPort.updateAppUser(updateUser);
     
    I've found also UpdateUserReq but it seems to control End Users and not Application Users.
    How can I add that device using Axl req?
    I'm working with CUCM 7.0.
     
    Thanks
    Gionata Navarra

    Subject: RE: Add device to application user controlled devices
    Replied by: David Staudt on 01-09-2010 05:12:20 PM
    updateUser is for end-user accounts (which can show up in the directory), updateAppUser is for application users (which don't.)
     
    You should be able to update the password, digest credentials and associated devices. In your snippet above, setting the userId field as shown would be for identifying which record to update (you don't show any fields being used, so nothing would change)  If you want to modify the user's actual userId value, use the (newUserId) field.
     
    Please attach the AXL service logs (access via RTMT) from an attempt if you're still having problems.

    Subject: RE: Add device to application user controlled devices
    Replied by: Gionata Navarra on 02-09-2010 08:14:37 AM
    updateUser is for end-user accounts (which can show up in the directory), updateAppUser is for application users (which don't.)
     
    You should be able to update the password, digest credentials and associated devices. In your snippet above, setting the userId field as shown would be for identifying which record to update (you don't show any fields being used, so nothing would change)  If you want to modify the user's actual userId value, use the (newUserId) field.
     
    Please attach the AXL service logs (access via RTMT) from an attempt if you're still having problems.

     
    Sorry for incomplete snippet. I've checked my code but I've noticed that it's possible call only these four set methods on updateUser:
     
    updateUser.setUserid(String value),
    updateUser.setPassword(String value),
    updateUser.setDigestCredentials(JAXBElement<String> value),
    updateUser.setSequence(BigInteger value),
     
    Nothing like setAssociatedDevices()...
     
    I miss anything?

    Subject: RE: Add device to application user controlled devices
    Replied by: Gionata Navarra on 03-09-2010 08:26:21 AM


    updateUser is for end-user accounts (which can show up in the directory), updateAppUser is for application users (which don't.)
     
    You should be able to update the password, digest credentials and associated devices. In your snippet above, setting the userId field as shown would be for identifying which record to update (you don't show any fields being used, so nothing would change)  If you want to modify the user's actual userId value, use the (newUserId) field.
     
    Please attach the AXL service logs (access via RTMT) from an attempt if you're still having problems.


     
    Sorry for incomplete snippet. I've checked my code but I've noticed that it's possible call only these four set methods on updateUser:
     
    updateUser.setUserid(String value),
    updateUser.setPassword(String value),
    updateUser.setDigestCredentials(JAXBElement<String> value),
    updateUser.setSequence(BigInteger value),
     
    Nothing like setAssociatedDevices()...
     
    I miss anything?

     
     
    Found the problem: an old version of AXLAPI.wsdl (1.0) now replaced with version 7.0. SetAssociatedDevices() method is now enabled.
    Last question: is there compatibility also with a cucm 6.0?
     
    Thank you
    Gionata
     
     

    Subject: RE: Add device to application user controlled devices
    Replied by: David Staudt on 04-09-2010 04:29:21 PM
    What are you using to compile the AXL wsdl?  
     
    The actual XML will look something like this:
     

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/7.0">
       <soapenv:Header/>
       <soapenv:Body>
          <ns:updateUser sequence="1">
             <userid>dstaudt</userid>
             <associatedDevices>
                <device>SEP123456789012</device>
         <device>SEP234567890123</device>
             </associatedDevices>
          </ns:updateUser>
       </soapenv:Body>
    </soapenv:Envelope>

     
    Depending on the language you are using to compile the wsdl, how it chooses to represent the XML access objects may vary.

    Subject: RE: Add device to application user controlled devices
    Replied by: David Staudt on 10-11-2010 04:43:09 PM
    I believe in 6.0(1) only the password/pin can be modified via updateAppUser.  You will need to use SQL via <executeSQLUpdate> to associated devices to users for appusers (or modify other appuser attributes.)  See the Data Dictionary document for details, the table is 'applicationuserdevicemap'.

    Subject: RE: Add device to application user controlled devices
    Replied by: Sivakumar N on 10-11-2010 04:10:20 PM
    Can we associate a CTI Route Point to Application User using any of the following AXL API methods?
    1. UpdateAppUser
    2. UpdateUser
     

    when we try using
      UpdateAppUser method does not have the provision to update Associated devices
      UpdateUser method does have the provision to update Associated devices but for End User and not Application User (Attatched realtime log for this)



    We are using Cisco Unified CM 6.0.1.