how to map external identity user with b2c user who have same email id

Swarna K 1 Reputation point
2021-04-16T10:19:19.99+00:00
  1. I have a identity say for example customIdentity, i added this customIdentity to azure b2c identity providers.
  2. I created a user with mail id user1@test .com in both b2c and customIdentity.
  3. Now first i logged into my customidentity application say application1 with mail user1@test .com and from application1 on button click navigating to another application say application2 which has azure b2c(same b2c where i added my customidentity).
  4. since user1@test .com exists in both my customidentity and b2c it should allow me into the application2, but its taking me to b2c new user creation page and after entering details its creating a new user with same mail id. how to map users with same mail id in customidentity and b2c ?? so that when i am navigating by logging into application1 (with customidentity) to application2(with b2c) it should allow me.
Microsoft Security Microsoft Entra Microsoft Entra External ID
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,866 Reputation points Moderator
    2021-04-19T09:07:15.59+00:00

    Hi @Swarna K · Thank you for reaching out.

    In Azure AD B2C, same email address can be used multiple times if you are using different identity providers. E.g., if you signup with user@Stuff .com using Google IDP and then signup for a local B2C account with same email i.e., user@Stuff .com, there will be 2 accounts created, which will use same email address.

    To avoid this situation, you can use the Custom Policy sample for Account Linkage. This will append same account with Local and Federated identity.

    -----------------------------------------------------------------------------------------------------------

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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.