Please note: These WebEx forums have replaced the earlier site forums. All the previous threads and posts have been replicated here, and if you subscribed to the previous forums, please re-subscribe. Thank you.
« Back to User Management

Reset a user password using SetUser

Combination View Flat View Tree View
Threads [ Previous | Next ]
Hi.
 
Trying to use the XML API to reset a users password to a set string. I don't want to just set it to require updating next time. I simply want to programatically set it to a new password.
 

            Dim strXML As String
            strXML = "<?xml version='1.0' encoding='UTF-8'?>" & _
                    "<serv:message xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:serv='http://www.webex.com/schemas/2002/06/service'>" & _
                    "  <header>" & _
                    "    <securityContext>" & _
                    "      <webExID>" & v_strAdminUsername & "</webExID>" & _
                    "      <password>" & v_strAdminPassword & "</password>" & _
                    "      <siteID>" & v_strSiteID & "</siteID>" & _
                    "      <partnerID>" & v_strPartnerID & "</partnerID>" & _
                    "    </securityContext>" & _
                    "  </header>" & _
                    "  <body>" & _
                    "       <bodyContent xsi:type='java:com.webex.service.binding.user.SetUser'>" & _
                    "           <webExId>" & v_strUserToUpdate.Trim & "</webExId>" & _
                    "           <security>" & _
                    "               <use:password>" & v_strNewPassword & "</use:password>" & _
                    "           </security>" & _
                    "       </bodyContent>" & _
                    "  </body>" & _
                    "</serv:message>"

 
....isn't working. Returning error "validation: unable to find FieldDescriptor for 'password' in ClassDescriptor of securityType" which is probably fair enough as I am probably firing the wrong thing at the API. Please can somebody point me in the right direction.
 
Thanks
Tom.

Fixed this. Took out the security tag. Not needed. Also changed <use:password> to just <password>
 
Tom.

Create a Cisco account today and gain access across all Cisco Collaboration Developer sites.

 

Follow the WebEx Developer program on Twitter for the latest industry and WebEx Meetings related information.