Azure AD B2C | Update Email Address | Clone existing user details along with password

Bulent Unal 1 Reputation point
2021-02-27T09:01:21.74+00:00

Team,

We are using Azure AD B2C email address for our login. There is a provision which we should make in the UI to update the email address.

When the user updates the email address during the session. Since, through user's email address we have logged in, we are looking for a way to update the email address from the UI.

One of the option considered :

1) Clone the user details to another user with the updated email address retaining the existing password? Is it feasible?

Is it possible to update the user email address within the current session? We are ok to force the user to logout after the email address is updated and then can re-login. Is it feasible?

Thanks,
Prasenna

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

1 answer

Sort by: Most helpful
  1. James Hamil 21,466 Reputation points Microsoft Employee
    2021-03-02T00:39:23.243+00:00

    Hi @Bulent Unal , this unfortunately cannot be done with the UI, but it can be done with the graph API. In order to do this with the graph API, you can do something like this:

    PATCH: https://graph.microsoft.com/v1.0/users/{UUID}  
    {  
        "identities": [  
            {  
                "signInType": "emailAddress",  
                "issuer": "xxxx.onmicrosoft.com",  
                "issuerAssignedId": "{new email address}"  
            }  
        ]  
    }  
    

    I hope this helps. Please let me know if you have any questions.

    If this answer helped you, please mark it as "verified" so other users may reference it.

    Thank you,
    James