Skip to content

Latest commit

 

History

History

change-sign-in-name

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Azure AD B2C: Change local account sign-in name (email address)

When sign-in with local account, a user may want to change the sign-in name (email address). This sample policy demonstrates how to allow user to provide and validate new email address, and store the new email address to Azure Active Directory user account. After user change the email address, on the next login, user needs to provide the new email address as sign-in name.

Change local account sign-in name video.

Live demo

To checkout the user experience of this policy, follow these steps:

  1. If you don't have an account, create a local account with your email address.

  2. Run the B2C_1A_Demo_ChangeSignInName policy to change the email address.

  3. Provide and verify your new email address and select continue.

  4. Sign in with your new email adress

How it works

The solution is base on new B2C_1A_ChangeSignInName relying party policy. The policy invokes ChangeSignInName user journey which:

  1. Asks the user to sign-in with a local account
  2. Reads the user data from the Azure Active Directory
  3. Collects and validate the new email address
  4. Persists the new sign-in name to the directory

An image of the Email verification screen.

To change user's email address, call the B2C_1A_ChangeSignInName relying party policy.