# Migrating user identities from one domain to another

**URL:** <https://community.auth0.com/t/migrating-user-identities-from-one-domain-to-another/24064>\
**Category:** Get Help\
**Tags:** token, migrate-users\
**Created:** [April 16, 2019, 7:45pm UTC](https://community.auth0.com/t/migrating-user-identities-from-one-domain-to-another/24064 "2019-04-16T19:45:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AuthR](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/authr/32/10413_2.png) [@AuthR](https://community.auth0.com/u/AuthR)\
**Post date:** [April 16, 2019, 7:45pm UTC](https://community.auth0.com/t/migrating-user-identities-from-one-domain-to-another/24064/1 "2019-04-16T19:45:25Z")

</div>

Hi, I’m considering using Auth0 to manage identities of all users on my website (let us call it [x.com](http://x.com)).

Later, if I wish to migrate my users to a new website (say [y.com](http://y.com)), I’d like the process to be relatively straightforward with the user identity tied to a new [user@y.com](mailto:user@y.com) email-id instead of the previous user@x id — without the user needing to create a new username/password etc. for the newly created domain (that has no prior users).

Can you please point me to documentation explaining how user identity migration (from one domain to another) can be implemented or outline high-level steps necessary to accomplish this.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 18, 2019, 7:31pm UTC](https://community.auth0.com/t/migrating-user-identities-from-one-domain-to-another/24064/3 "2019-04-18T19:31:55Z")

</div>

Hi @AuthR, Welcome to the community!

Take a look at this feature:

> **[User Account Linking](https://auth0.com/docs/manage-users/user-accounts/user-account-linking)**
>
> Understand how user accounts can be linked in Auth0 from various identity providers.

Does this solve your problem?

---

<div class="post-metadata">

**Author:** ![AuthR](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/authr/32/10413_2.png) [@AuthR](https://community.auth0.com/u/AuthR)\
**Post date:** [April 18, 2019, 8:09pm UTC](https://community.auth0.com/t/migrating-user-identities-from-one-domain-to-another/24064/4 "2019-04-18T20:09:23Z")

</div>

Thanks @dan.woda , the linked page doesn’t address my scenario. It discusses linking two separate user accounts.  
So it assumes that the user would need to create a new account with the [y.com](http://y.com) domain and then link the new account to the [x.com](http://x.com) account

I’m curious to know if an [x.com](http://x.com) account can be seamlessly ported to [y.com](http://y.com).  
IOW is it is possible to automatically create a new user account for the new domain ([y.com](http://y.com)) with users using the same user-id and same password they had with the [x.com](http://x.com) domain. (Note that the new domain will not have any prior users, so user-ids can be ported over without being duplicated).

The manual option would be for each user to individually/manually create a new account for the new domain, but I’m curious to know if Auth0 makes it possible to automatically create new accounts.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [April 19, 2019, 10:04pm UTC](https://community.auth0.com/t/migrating-user-identities-from-one-domain-to-another/24064/5 "2019-04-19T22:04:43Z")

</div>

I think I need more clarification regarding the domains and email part of the use case. Do all of your users share the same email domain? And do you want to overwrite that domain to a new one when they sign on through the second application? Although I haven’t tried it yet, I am fairly certain this could be accomplished using [Rules](https://auth0.com/docs/rules). I would be happy to test it out if this is the desired goal.

It sounds like you want to provide a [single sign on](https://auth0.com/docs/sso/current) experience, which is easily accomplished by registering each application and toggling their database connections on and off in the dashboard. If this is not the desired outcome please let me know.

This covers migration from an external database to Auth0, which may end up being helpful:

> **[Import and Export Users](https://auth0.com/docs/manage-users/user-migration)**
>
> Overview of importing users from external applications into Auth0.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [September 2, 2019, 12:21pm UTC](https://community.auth0.com/t/migrating-user-identities-from-one-domain-to-another/24064/6 "2019-09-02T12:21:28Z")

</div>


