question

AbhayChandramouli-2076 avatar image
0 Votes"
AbhayChandramouli-2076 asked CarlZhao-MSFT edited

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

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-ad-b2cmicrosoft-graph-usersazure-rbac
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

CarlZhao-MSFT avatar image
1 Vote"
CarlZhao-MSFT answered CarlZhao-MSFT edited

Hi @AbhayChandramouli-2076

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.



image.png (38.7 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi @AbhayChandramouli-2076 Would you please provide us with an update on the status of your issue?

0 Votes 0 ·

Hi @AbhayChandramouli-2076 Has your problem been resolved? If my answer helps you, you can accept it as an answer, thanks.

0 Votes 0 ·