Share via

Unable to changePassword using Microsoft Graph API

Mallesh Jambagi 21 Reputation points
2021-08-17T07:05:22.617+00:00

Hi..
I am unable to changePassword while using Microsoft Graph API .The URL for my request is POST https://graph.microsoft.com/v1.0/users/<user Principle name>/changePassword.The response message i am getting is "code": "Authorization_RequestDenied",
"message": "Access to change password operation is denied.",
123806-screenshot-2021-08-17-at-123127-pm.png

Microsoft Security | Microsoft Graph

Answer accepted by question author

Faith Moraa Ombongi 81 Reputation points Microsoft Employee
2021-09-07T18:53:31.507+00:00

Hi @Mallesh Jambagi —the changePassword action is used by a user to reset their own password. It works only on /me. Please see more in the user: changePassword article.

To reset another user's password (which seems like what you're trying to do), update the passwordProfile property of the User object. Please see more in Example 3.

Was this answer helpful?

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.