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

Abhay Chandramouli 716 Reputation points

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 ?

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.
452 questions
Azure Active Directory External Identities
Microsoft Graph Users API
Microsoft Graph Users API
A Microsoft API that allows you to build compelling app experiences based on users, their relationships with other users and groups, and the resources they access for example their mails, calendars, files, administrative roles, group memberships.
726 questions
0 comments No comments
{count} votes

Accepted answer
  1. CarlZhao-MSFT 23,361 Reputation points

    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.


    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