# Automatic migrations between Auth0

**URL:** <https://community.auth0.com/t/automatic-migrations-between-auth0/59828>\
**Category:** Get Help\
**Tags:** migration, internal, auth0\
**Created:** [March 22, 2021, 4:25am UTC](https://community.auth0.com/t/automatic-migrations-between-auth0/59828 "2021-03-22T04:25:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![rajput.mamta925](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rajput.mamta925/32/28314_2.png) [@rajput.mamta925](https://community.auth0.com/u/rajput.mamta925)\
**Post date:** [March 22, 2021, 4:25am UTC](https://community.auth0.com/t/automatic-migrations-between-auth0/59828/1 "2021-03-22T04:25:25Z")

</div>

Hi, there is a provision in AuthO to migrate a user from legacy DB to authO, but I have a requirement to migrate user(global) into two different tenants, Is there any automatic migration possible for this also?  
please refer [Import and Export Users](https://auth0.com/docs/users/import-and-export-users#automatic-migrations)  
Thanks !!

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 22, 2021, 6:41pm UTC](https://community.auth0.com/t/automatic-migrations-between-auth0/59828/2 "2021-03-22T18:41:21Z")

</div>

Hi @rajput.mamta925

I am not clear on what you are asking.  
Do you mean you have a legacy DB, and you want to duplicate that into 2 Auth0 DBs in two different tenants?

You can bulk or lazy migrate the legacy DB into each tenant separately.

John

---

<div class="post-metadata">

**Author:** ![rajput.mamta925](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rajput.mamta925/32/28314_2.png) [@rajput.mamta925](https://community.auth0.com/u/rajput.mamta925)\
**Post date:** [March 23, 2021, 5:04am UTC](https://community.auth0.com/t/automatic-migrations-between-auth0/59828/4 "2021-03-23T05:04:58Z")

</div>

Hi @john.gateley  
Not really, I have users in Auth0 in one tenant, we have users of diff-diif countries in one tenant, now I want to move users in diff-diff tenants according to country. So it is authO internal migration only.

Thanks,  
Mamta

---

<div class="post-metadata">

**Author:** ![john.gateley](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/john.gateley/32/10879_2.png) [@john.gateley](https://community.auth0.com/u/john.gateley)\
**Post date:** [March 23, 2021, 12:53pm UTC](https://community.auth0.com/t/automatic-migrations-between-auth0/59828/5 "2021-03-23T12:53:11Z")

</div>

Hi @rajput.mamta925

You can export the users from the Auth0 tenant, write a script that splits them up by country, then import them into new tenants.

John

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [December 26, 2022, 11:14pm UTC](https://community.auth0.com/t/automatic-migrations-between-auth0/59828/6 "2022-12-26T23:14:24Z")

</div>

[This](https://community.auth0.com/t/migrating-database-users-from-one-tenant-to-another-tenant/96373) FAQ outlines the details of user migration between tenants.

---

<div class="post-metadata">

**Author:** ![lihua.zhang](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lihua.zhang/32/39683_2.png) [@lihua.zhang](https://community.auth0.com/u/lihua.zhang)\
**Post date:** [December 26, 2022, 11:14pm UTC](https://community.auth0.com/t/automatic-migrations-between-auth0/59828/7 "2022-12-26T23:14:33Z")

</div>


