Kamil Banaszczyk
Kamil Banaszczyk

Reputation: 1153

Microsoft Graph API v1.0 self service reset password missing

I would like to follow Microsoft instructions and use Microsoft Graph v1.0 instead of Azure Graph Api. Unfortunately i don't see possibility to allow user for password reset.

Additionally i would like to discover possibilities for Self service password reset using graph API. My purpose is to create custom page for resetting password for user. Application authentication will be build using ROPC approach.

Upvotes: 1

Views: 921

Answers (1)

Allen Wu
Allen Wu

Reputation: 16438

You could use Update user to update user's passwordProfile property to reset user's password.

An example:

PATCH https://graph.microsoft.com/v1.0/users/{id | userPrincipalName}
{
     "passwordProfile":
    {
      "forceChangePasswordNextSignIn":false,
      "password": "**"
    }
}

For Self service password reset, just take advantage of Get access on behalf of a user and use Delegated Permission to allow users to reset their own passwords.

Upvotes: 1

Related Questions