How can I manually change or reset a user's password using the REST API?
246 Views 0 Helpful

Question

How can I manually change or reset a user's password using the REST API?

Product

  • Registration-as-a-Service (RaaS)
  • REST API

Answer

This can be done by calling the accounts.resetPassword[1] REST API method twice:

  1. On the first call, pass the "sendEmail" parameter as false and the "loginID" parameter as the user's login identifier
  2. Read the "passwordResetToken" value from the response
  3. On the second call, pass the "passwordResetToken" and "newPassword" parameters to reset the user's password

    Note: This effectively bypasses the user-verification step that requires the user to receive a password reset email and click on the link within before being able to reset their password. Therefore, this method should only be used by an administrator after being satisfied that the user requesting for such a reset is the owner of the account. Otherwise, Gigya recommends following the steps in the guide "How to send a password reset email for a user account in the Gigya Admin Console"[2] instead.

Links

[1]: http://developers.gigya.com/display/GD/accounts.resetPassword+REST
[2]: https://knowledge.gigya.com/GKB_Article?id=a6H400000004CzxEAE

Was this article helpful?