question

MalleshJambagi-0725 avatar image
0 Votes"
MalleshJambagi-0725 asked saldana-msft edited

Unable to changePassword using Microsoft Graph API

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-graph-usersmicrosoft-graph-identity
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi Community.Please reply to my question.It is urgent.

0 Votes 0 ·

1 Answer

FaithOmbongi avatar image
0 Votes"
FaithOmbongi answered

Hi @MalleshJambagi-0725 —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.




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.