Reputation: 23
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
Reputation: 14644
If you are wanting to reset the password for an account interactively, then you can:
https://graph.windows.net/myorganization/users/{user_id}
.{
"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