Is there a way to change the default username in Azure AD B2C while using custom policies?

Deep_Azure9 41 Reputation points


We have implemented Azure AD B2C Custom Policies with Mobile Number ( as Username) and Password for user authentication. Now there is a need to change Mobile Number of the user. Is there a way to change the username of user ?

Please help us as soon as possible.

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
13,517 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. JimmySalian-2011 29,726 Reputation points


    Thank you for asking this question on the Microsoft Q&A Platform.

    It depends upon the type of the user account is created, so work account, Guest account or Consumer account? There are couple of ways for the account can be updated, please check this article and follow the relevant steps for the specific type of user.


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

  2. Alfredo Revilla (MSFT) 16,686 Reputation points Microsoft Employee

    Hello @Deep_Azure9 and thanks for reaching out. The username is stored in one of the user identities. You can update it using MS Graph with a query similar to this one:

           "identities": [  
                   "signInType": "phoneNumber",  
                   "issuer": "string",  
                   "issuerAssignedId": "string"  
                   "signInType": "userPrincipalName",  
                   "issuer": "string",  
                   "issuerAssignedId": "string"  

    For more information take a look to Update user.
    Also, to the Microsoft Graph SDK with is available for 7 programming languages.

    Let us know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.