Adb2c password reset custom policy -Reset password using username

Prateek Rathore 21 Reputation points
2024-05-01T14:00:21.7966667+00:00

Hi, I am working on Adb2c custom policies and am stuck in the password reset policy where I need to reset the password using a username instead of the email address. The below screenshot is for User flows where it is provided that we can create a reset password policy where after email address verification is done we provide the username and after clicking on continue it redirects to the change password screen. Currently, I am not able to achieve this one in custom policy.
Looking for help regarding thisUser's image

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,814 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Babafemi Bulugbe 1,955 Reputation points MVP
    2024-05-06T09:40:57.1033333+00:00

    Hello Prateek Rathore,

    Thank you for posting your query in the Microsoft Q&A Community.

    I understand that you would like to set up a password reset custom policy using a username.

    Kindly use this sample link below to achieve this.

    https://github.com/azure-ad-b2c/samples/tree/master/policies/password-reset-with-Username-SMSVerify

    A prompt for user to input their Username only.

    However, you need to make some adjustments as the verification process here is via SMS and not email.

    Let me know if further assistance is needed,

    Babafemi