Previously, I was able to reset a user's password by using the following steps:
- Get an access token with an administrator's credentials and setting the scope to Directory.AccessAsUser.All from https://login.microsoftonline.com/{{tenant_id}}/oauth2/v2.0/token
- Pass the new password in a passwordProfile object and hit the https://graph.microsoft.com/v1.0/users/{{oid}} using the access token retrieved from the first step.
But now, I cannot find Directory.AccessAsUser.All under Delegated API Permissions.
How can I change a user's password without it?