How to reset password using API


Is there a way to reset password with an API call without sending a reset password email request? As in directly updating password via API just as we can set the password first time when we create the account using the API?


1 Like

Hi @rhasan,
as far as I know, there is no such API in Open edX. Even the Account micro-frontend allows you to reset your password only by sending an email, which contains a link to the LMS password reset page at the moment.

There is an API, which accepts a PATCH request to update a user’s account, but it:

  1. Allows a user to modify only their own account.
  2. Does not seem to be serializing passwords in the update function.

It’s not clear, which use-case you have in mind, but maybe an OAuth2 or SAML SSO would be a good fit there?