question

BulentUnal-3033 avatar image
0 Votes"
BulentUnal-3033 asked ·

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

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

azure-active-directory
· 1
10 |1000 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, we are investigating your issue and will update you shortly.

Best,
James

0 Votes 0 ·

1 Answer

JamesHamil-MSFT avatar image
0 Votes"
JamesHamil-MSFT answered ·

Hi @BulentUnal-3033 , 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


· 1 ·
10 |1000 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.

Thanks @JamesTran-MSFT - I understand, I will be able to clone a user to a new user and just update the email address in the new user and the password would be retained by the original and the new cloned. This can be done by GraphUI.

Is my understanding correct?

0 Votes 0 ·