# Link Database Login & Social Login with Different Emails

**URL:** <https://community.auth0.com/t/link-database-login-social-login-with-different-emails/104283>\
**Category:** Get Help\
**Tags:** identifier-first, login-experience\
**Created:** [April 7, 2023, 12:01am UTC](https://community.auth0.com/t/link-database-login-social-login-with-different-emails/104283 "2023-04-07T00:01:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Samaral](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@Samaral](https://community.auth0.com/u/Samaral)\
**Post date:** [April 7, 2023, 12:01am UTC](https://community.auth0.com/t/link-database-login-social-login-with-different-emails/104283/1 "2023-04-07T00:01:45Z")

</div>

I have a user link corner case question. What if a user logs in with an email, call it EMAIL1, and then wants to login next time using a social network but that email is EMAIL2. Can I somehow link these two accounts by either having the user with EMAIL1 reconnect to the social network while logged in as EMAIL1 or vice versa? Or should I assume all hope is lost and the user should select one of the two user profiles.

To shine more light on the problem, I would prefer users log in using LinkedIn but I don’t want to scare users away thinking I am accessing private information, which is why I want to include the Database option. But ultimately to get the most out of the product the user needs to connect their LinkedIn profile and I am worried they might have used an email that isn’t the same as the LinkedIn profile email.

Thanks

---

<div class="post-metadata">

**Author:** ![nathan.jenkins](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/nathan.jenkins/32/44577_2.png) [@nathan.jenkins](https://community.auth0.com/u/nathan.jenkins)\
**Post date:** [April 7, 2023, 8:32am UTC](https://community.auth0.com/t/link-database-login-social-login-with-different-emails/104283/2 "2023-04-07T08:32:17Z")

</div>

Hi @Samaral , welcome to the Auth0 Community!

You should be able to achieve this with [Account Linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking). There are a couple of scenarios for account linking - Suggest account linking (which would look at matching the two emails and link profiles that way) or [User-Initiated Account Linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking/user-initiated-account-linking-client-side-implementation), this would allow the user to make the decision to link another account such as from a profile page in your application.  
Since the emails are different, you would need to look at the User-Initiated Linking for this use case. Please review the information on the pages linked above, hope this helps, thanks!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 21, 2023, 8:32am UTC](https://community.auth0.com/t/link-database-login-social-login-with-different-emails/104283/3 "2023-04-21T08:32:50Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
