Bart Vermeersch
Bart Vermeersch

Reputation: 23

Reset password of B2C local account in Azure portal

We want to reset the password of local B2C user accounts through the Azure portal.

After resetting, when trying to log on with the new password an error is shown (Invalid username or password) and the user is unable to log on.

We found info on this issue on github.com dated three years ago. The suggested workaround is through https://graph.windows.net but so far we were unsuccesful to get this working.

Upvotes: 2

Views: 376

Answers (1)

Chris Padgett
Chris Padgett

Reputation: 14644

If you are wanting to reset the password for an account interactively, then you can:

  1. Browse to https://graphexplorer.azurewebsites.net/.
  2. Log in with a Global Administrator user that is a member of your Azure AD B2C directory.
  3. Change the request verb from GET to PATCH.
  4. Change the request URL to https://graph.windows.net/myorganization/users/{user_id}.
  5. Enter the following JSON in the request body and then select Go:
{
  "passwordProfile": {
    "password": "{new_password}",
    "forceChangePasswordNextLogin": false
  }
}

If you are otherwise wanting to do it programmatically, then you can refer to the Azure AD Graph API documentation for resetting a password for an account.

Upvotes: 2

Related Questions