question

AlastairPitts-5932 avatar image
0 Votes"
AlastairPitts-5932 asked ·

Migrate users between AAD directories/tenants?

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?

azure-active-directory
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered ·

@AlastairPitts-5932 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.


capture.jpg (25.1 KiB)
capture2.jpg (29.5 KiB)
·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

kashmiri-0479 avatar image
0 Votes"
kashmiri-0479 answered ·

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.

· 1 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

In that case tenant name would remain same.

0 Votes 0 ·