Migrate users between AAD directories/tenants?

Alastair Pitts 21 Reputation points
2020-03-20T02:50:32.817+00:00

We are looking to migrate existing users from an Azure AD tenant to a new Azure AD tenant. As well as this, we've created a new Azure subscription with the intention of associating the new subscription with the new directory.

The reason is that the original tenant was created using a personal Microsoft account and has a lot of baggage associated with it.

For example:

Our original tenant domain is [nameoutlook].onmicrosoft.com (although we have a custom domain set up).

We have created a new tenant/directory [company].onmicrosoft.com and would like to migrate all our users to this new directory.

Is this possible? Is there any powershell cmdlets that could do this? Or do we have to re-create all users in the new tenant?

Microsoft Entra
0 comments No comments
{count} votes

Accepted answer
  1. AmanpreetSingh-MSFT 56,301 Reputation points
    2020-03-20T06:36:37.25+00:00

    @Alastair Pitts Migration between tenants is not possible. However, you can use below PowerShell script to create users in bulk:

    • Create a csv file as shown below. You may consider exporting the data from your original tenant.

    5081-capture.jpg

    • Use below PS script to create bulk user in your new tenant by reading the information from the csv file:

    5091-capture2.jpg

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

    Please "Accept as answer" wherever the information provided helps you to help others in the community.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. kashmiri 1 Reputation point
    2020-06-05T22:53:59.83+00:00

    Why don't you just migrate your old AzureAD to your new corporate tenant? It takes just a few clicks and is MUCH easier than recreating all users. Search for change AzureAD ownership and then enter the existing global admin in your corporate tenant as new owner. As soon as the global admin accepts transfer, she will only need to reassign subscription.


  2. Madscientist 1 Reputation point
    2021-09-03T17:53:32.25+00:00

    Hello, what happens when you have a large number of users to synchronize to the new tenant? Can a new AD Connect machine be used with some kind of attribute filtering to do this in the same forest? I have 6,321 users to synchronize after a company split. There must be some other automated approach to this other than using a script to create the users. Thank you.