Password Reset In Azure Directory

Risa Shereen 71 Reputation points
2022-07-08T07:22:32.887+00:00

Hi Team,

We went through the document for password reset in azure directory ( https://learn.microsoft.com/en-us/graph/api/passwordauthenticationmethod-resetpassword?view=graph-rest-beta&tabs=java ) and saw that the http request contain 2 types of Id( POST /users/{id | userPrincipalName}/authentication/passwordMethods/{id}/resetPassword ). We need to know what are these two ids specifically.

Microsoft Security | Microsoft Entra | Microsoft Entra ID
0 comments No comments
{count} votes

Answer accepted by question author
  1. Shweta Mathur 30,431 Reputation points Microsoft Employee Moderator
    2022-07-08T08:40:41.553+00:00

    Hi @Risa Shereen ,

    Thanks for reaching out.

    I understand you need to understand which ids need to provide in the ids listed in the below request:

    POST /users/{id | userPrincipalName}/authentication/passwordMethods/{id}/resetPassword

    The first id is the user's id. You can alternatively use their userPrincipalName.

    The second id is the passwordMethod's id. You get it from the response you receive from running List passwordMethods
    https://graph.microsoft.com/beta/users/{userPrincipalName}/authentication/passwordMethods.

    218884-image.png

    and this PasswordId need to pass along with userId to reset the Password.

    Hope this will give clarity.

    Thanks,
    Shweta

    -----------------------------------------------

    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.