Azure AD B2C | Can we update user passwords via any api for users stored in AZ AD B2C ?

Abhay Chandramouli 971 Reputation points
2022-04-22T08:15:17.067+00:00

I have two different systems having user details stored and I want to implement login. So users currently will be changing passwords in another system and I need to update the password in Azure AD B2C as well. Is there an API I can use ? such as MS Graph or something else ?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,313 questions
Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
715 questions
Microsoft Entra External ID
Microsoft Entra External ID
A modern identity solution for securing access to customer, citizen and partner-facing apps and services. It is the converged platform of Azure AD External Identities B2B and B2C. Replaces Azure Active Directory External Identities.
2,751 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 39,741 Reputation points
    2022-04-22T09:01:50.637+00:00

    Hi anonymous user

    You can of course use the Graph api to modify the password of a B2C user. First you need to grant Directory.AccessAsUser.All delegate permission for your application and grant admin consent. then use Azure AD based authentication flow (eg: ROPC flow or auth code flow) to get the token.

    Finally, you only need to modify the password in the passwordProfile field.

    195485-image.png


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful