CUCM 6.13 - updateUser - How to force User to Change their password

Version 1
    This document was generated from CDN thread

    Created by: Keith Lunn on 03-08-2009 05:28:06 PM
    Hello Folks, I am using the updateUser API to update the End User's firstname, lastname, password and then I need to force them to change their startup password at next login.
    My code updates the firstname, lastname and password correctly, but it is not forcing the user to change their password at next login. Any ideas?
    Here's my XML transmission and response:
    SOAP Request=[
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="<a>http://schemas.xmlsoap.org/soap</a>]
    /envelope/" xmlns:axlns="<a>http://www.cisco.com/AXL/API/6.1</a>]"> <SOAP-ENV:Header/> <
    SOAP-ENV:Body>
     <axlns:updateUser sequence="600">
      <userid>5555551212</userid>
      <firstname>KeithX</firstname>
      <lastname>LunnX</lastname>
      <password>Pass001!</password>
      <passwordCredentials>
        <pwdCredUserMustChange>true</pwdCredUserMustChange>
      </passwordCredentials>
      </axlns:updateUser>
       </SOAP-ENV:Body> </SOAP-ENV:Envelope>]
     Len[465]
    Return HTTP Status=>200
    XML Return[
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="<a>http://schemas.xmlsoap.org/soap/envelope/</a>]" SO
    AP-ENV:encodingStyle="<a>http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Header/</a>]>
    <SOAP-ENV:Body>
    <axl:updateUserResponse xmlns:axl="<a>http://www.cisco.com/AXL/API/6.1</a>]" xmlns:xsi="<a>http://www.cisco.com/AXL/API/6.1</a>]" sequence="600">
    <return>{D9E4BB2B-3109-9C89-9796-E07F91F4287C}</return>
    </axl:updateUserResponse>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    ]
    Rows returned[1]
     
    Thanks!!!!

    Subject: RE: CUCM 6.13 - updateUser - How to force User to Change their password
    Replied by: Sascha Monteiro on 03-08-2009 11:07:53 PM
    if you use the default credential policy, it is set to "Never Expire", and if that is set, the change on next login doesn't work!
    you need to create a new policy with an expiry of the password, then you can set the flag to change on next login

    Subject: RE: CUCM 6.13 - updateUser - How to force User to Change their password
    Replied by: Keith Lunn on 04-08-2009 03:21:43 PM
    Yes - that was the issue - Thanks!!!!!!!!!!

    Subject: RE: CUCM 6.13 - updateUser - How to force User to Change their password
    Replied by: Jean Lofrano on 02-07-2013 09:30:58 AM
    Hey team,

    How can I test that script?
    Because that is exactly the solution for my project...

    Regards.