Reputation: 131
Previously, I was able to reset a user's password by using the following steps:
But now, I cannot find Directory.AccessAsUser.All under Delegated API Permissions.
How can I change a user's password without it?
Upvotes: 4
Views: 2755
Reputation: 41
If your application or script needs to update users' passwords, you need to assign the User administrator
role to your application. The User administrator
role has a fixed set of permissions you grant to your application.
To add the User administrator
role, follow these steps:
Sign in to the Azure portal and use the Directory + Subscription filter to switch to your Azure AD B2C tenant.
Search for and select Azure AD B2C.
Under Manage, select Roles and administrators.
Select the User administrator
role.
Select Add assignments.
In the Select text box, enter the name or the ID of the application you registered earlier, for example, managementapp1. When it appears in the search results, select your application.
Select Add. It might take a few minutes to for the permissions to fully propagate.
Upvotes: 4
Reputation: 11335
When you create the application registration, choose the first option - accounts in this organisational directory. You won’t use this app for B2C user flows, only for your admin AAD account, hence you choose the first option.
Upvotes: 1