Last post May 21, 2018 08:27 AM by pathipati
May 17, 2018 07:58 AM|pathipati|LINK
I am using the Azure AD for Authentication with OAuth in C#. I have a requirement i need to change the Azure Password from my application. do we have any REST API to change the Azure Password?
May 17, 2018 08:12 AM|PatriceSc|LINK
Have you tried to look for that at
https://developer.microsoft.com/en-us/graph/docs/concepts/overview which is AFAIK the preferred Azure AD API?
May 17, 2018 12:26 PM|pathipati|LINK
I saw the you provided link, in that there is no API for Change Password
May 18, 2018 05:21 AM|Brando ZWZ|LINK
As far as I know, we could use azure AD graph API to change the user's passsword.
We could call the changePassword action on the signed-in user to enable them to change their password.
Note: This action can only be called on the signed-in user. In addition to addressing the operation by using the me alias as shown below, you can use /users/<objectId>/changePassword or /users/userPrincipalName/changePassword, but if you use these addressing
modes, the target user must be the signed-in user.
We could post below request:
More details, you could refer to below article:
May 18, 2018 10:49 AM|PatriceSc|LINK
In addition to changing the current password it seems it can be also done using
https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/passwordprofile (but then the user is forced to change the password on the next login).
If you need further help, knowing your scenario could help. This is to reset lost password ?
May 21, 2018 08:27 AM|pathipati|LINK
Hi Brando ZWZ,
Thanks for your response!.
I tried to pass the below request in Postman to change the Password. but i am getting the Authentication_ExpiredToken error even though passing with valid token.
This token i got from below Url
URL: POST https://graph.windows.net/me/changePassword?api-version=1.6
"value": "Your access token has expired. Please renew it before submitting the request."