I am updating an user's password via nodejs-graph-API application(with Application token) with below endpoint
PATCH /users/{userId}
{
passwordProfile: {
forceChangePasswordNextSignIn: true,
password: newPassword,
}
I provided all the application, delegated access
User.ReadWrite.All, User.ManageIdentities.All, Directory.ReadWrite.All
https://docs.microsoft.com/en-us/graph/api/user-update?view=graph-rest-1.0&tabs=http
I do have two tenants (one for dev and another one for prod) in dev tenant things working fine but it failing in prod tenant
Error:
Error: Could not update password. Error: Authorization_RequestDenied