# Merge Account Created by SSO Login with Existing Account

**URL:** <https://community.auth0.com/t/merge-account-created-by-sso-login-with-existing-account/157831>\
**Category:** Get Help\
**Tags:** connections, saml-enterprise-connection\
**Created:** [December 6, 2024, 4:05am UTC](https://community.auth0.com/t/merge-account-created-by-sso-login-with-existing-account/157831 "2024-12-06T04:05:28Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![barry](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/barry/32/62701_2.png) [@barry](https://community.auth0.com/u/barry)\
**Post date:** [December 6, 2024, 4:05am UTC](https://community.auth0.com/t/merge-account-created-by-sso-login-with-existing-account/157831/1 "2024-12-06T04:05:28Z")

</div>

I created an SSO Authentication Connection that uses Okta as the Identity provider and Auth0 as the Service provider. I did some more or less by following the guide here:

[https://community.auth0.com/t/saml-setup-for-okta-as-idp-and-auth0-as-sp/91164](https://community.auth0.com/t/saml-setup-for-okta-as-idp-and-auth0-as-sp/91164)

However, I now see that when a user with a pre-existing account with the same email address logs in from Okta, Auth0 creates a new user account for that user. I don’t want this. I want Auth0 to use the existing account. To achieve this, I assume that the accounts will have to be merged in some manner.

Is there a predefined action to achieve this? If so, in what Trigger should the action be placed? Pre-User Registration seems like the right place, but I’m not sure.

I’d appreciate some guidance on this if someone has solved the same issue.

---

<div class="post-metadata">

**Author:** ![marybeth.hunter](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/marybeth.hunter/32/61955_2.png) [@marybeth.hunter](https://community.auth0.com/u/marybeth.hunter)\
**Post date:** [December 6, 2024, 5:51pm UTC](https://community.auth0.com/t/merge-account-created-by-sso-login-with-existing-account/157831/3 "2024-12-06T17:51:07Z")

</div>

Hi @barry,

Welcome to the Auth0 Community!

You can leverage Account Linking! Here are some helpful links:

- [User Account Linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking)
- [Emails from Auth0 Applications Marked as Spam](https://community.auth0.com/t/emails-from-auth0-applications-marked-as-spam/89789)

Best,

Mary Beth

---

<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:** [December 20, 2024, 5:52pm UTC](https://community.auth0.com/t/merge-account-created-by-sso-login-with-existing-account/157831/4 "2024-12-20T17:52:04Z")

</div>

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