question

MunazzaOsama-2843 avatar image
0 Votes"
MunazzaOsama-2843 asked saldana-msft edited

Azure ADB2C user (Created through MS Graph API) should Reset passward on his first login

my scenario is that i have created AD B2C user (Local and social Account) using graph API setting an initial "password" and it is login successfully using that password, what i want now is that at his first login he should be asked to reset his password.

what should i do to make it functional(i don't need to reset user password from azure portal)
user himself should reset it on his first longin.

any help will be appreciated.


azure-ad-b2cmicrosoft-graph-users
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

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered amanpreetsingh-msft commented

Hi @MunazzaOsama-2843 · Thank you for reaching out.

Here is a sample: https://github.com/azure-ad-b2c/samples/tree/master/policies/force-password-reset-first-logon that you can refer to.

This sample demonstrates how to force user to reset password on the first logon. It is based on an extension attribute. When you create a B2C account via Graph API, you set this property to true. On run time, when user sign-in, Azure AD B2C checks the value of this extension attribute. If set to true, B2C asks the user to reset the password and removes this attributes from the user account.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 1
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 @MunazzaOsama-2843 · Just checking if the above response helped or if you have any further question.

0 Votes 0 ·