Share via

Error while password reset in Azure Directory.

Risa Shereen 71 Reputation points
2022-07-08T10:36:34.24+00:00

Hi Team,

I was doing password reset in AD referring the doc-(https://learn.microsoft.com/en-us/graph/api/passwordauthenticationmethod-resetpassword?view=graph-rest-beta&tabs=http) but when we use the post request for the password reset(POST /users/{id | userPrincipalName}/authentication/passwordMethods/{id}/resetPassword) ,we are getting accessDenied error. (Attaching the screenshot of the error )
We have given the api permissions as User.Read , UserAuthenticationMethod.Read.All, UserAuthenticationMethod.ReadWrite.All. Can you please look into the issue.

Microsoft Security | Microsoft Entra | Microsoft Entra ID

1 answer

Sort by: Most helpful
  1. JimmySalian-2011 45,371 Reputation points Volunteer Moderator
    2022-08-09T12:52:57.607+00:00

    Hi,

    You have not clarified if the user you are trying to reset is your own account or other account? Please check the pre-requisites for resetting the password and you should have one of these permissions.

    Permission type Permissions (from least to most privileged)
    Delegated (work or school account) UserAuthenticationMethod.ReadWrite.All
    Delegated (personal Microsoft account) Not supported.
    Application Not supported.

    To eliminate your account permisson issue please assign following roles to your account.
    Global administrator
    Privileged authentication administrator
    Authentication administrator

    If this answer helped you please mark it as "Verified" so other users can reference it.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    Was this answer helpful?

    0 comments No comments

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.