changeOwnPassword()

Lets users change their passwords from old values to new values that they specify.

Use changeOwnPassword() to allow users to change their passwords to values that they specify. For example, a client application prompts a user to specify a different password, and then invokes changeOwnPassword() to change the user’s password. Use setPassword() if you want to set a different user’s password to a value you specify. Use resetPassword() if you want to reset a target user’s password with a random value generated by the API.

This sample accepts old password and new password parameters, which it uses in the changeOwnPassword() call to set the new password of the user.

This sample accepts old password and new password parameters, which it uses in the changeOwnPassword() call to set the new password of the user.

NameTypeDescription
oldPasswordstringThe user’s previous password that is being replaced.
newPasswordstringThe user’s new password.

ChangeOwnPasswordResult

InvalidOldPasswordFault

InvalidNewPasswordFault

UnexpectedErrorFault

See Also