question

AlastairPitts-5932 avatar image
0 Votes"
AlastairPitts-5932 asked Ricky-0314 commented

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
5 |1600 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)
5 |1600 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 Ricky-0314 commented

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.

· 4
5 |1600 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 ·

@kashmiri-0479
is it possible to migrate/reassign the AD users from the source AD under CPS Plan and new one is under Azure Plan?

0 Votes 0 ·

are you sure? I'm logged into Azure as GA and I don't see any options to migrate AAD to a new tenant.

0 Votes 0 ·

Have raised a case with MS and "Azure does not provide direct migration feature between 2 tenants", so your suggestion is not valid.

0 Votes 0 ·
Madscientist-0949 avatar image
0 Votes"
Madscientist-0949 answered

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.

5 |1600 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.