Hi @SRI · Thank you for reaching out.
In the changePassword call, you need to update the call to either /beta/users/object_id_or_upn_of_user or /beta/me. Reason why you are getting error resource not found is, because you are passing /beta/object_id_of_the_user.
- Make sure the token that you are passing in the Authorization Header is acquired under user context and NOT under application context (using client credentials flow).
- The token that you are passing in the Authorization Header must be of the same user whose password you are trying to change. You cannot use User1's token to change password of User2.
- These calls can only be used for local accounts and NOT for social accounts in B2C tenant, as the passwords for social accounts are stored in their respective IDPs.
- Make sure you have provided consent for below delegated permissions:
-
Directory.AccessAsUser.All- Required for changePassword -
UserAuthenticationMethod.ReadWrite.All- Required for resetPassword
-
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

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