Read time: 9 minutes
A OneDrive cross tenant migration involves migrating the files, links, and folder structure of all the users from tenant A to tenant B. It’s not a simple copy-paste job. The data is migrated in a way that minimizes the downtime, avoids breaking data access, and does not result in data loss. This complex migration mostly happens due to reasons like company mergers or data centralization.
To simplify the cross tenant OneDrive migration, in this blog, we will break the migration process in easy to do steps. In addition to the manual method, we will also discuss how we can do the migration with a professional OneDrive migration tool. But before starting the OneDrive tenant to tenant migration, let’s look at the prerequisites for it.
What to do Before Starting OneDrive Cross Tenant Migration?
The migration involves multiple steps. To make sure every step is completed successfully, follow this OneDrive migration checklist:
- Verify that the source and destination OneDrive accounts are accessible and you are not having any problem connecting to OneDrive.
- Make sure you have an active and valid cross tenant user data migration license.
- Download and install the latest SharePoint Online Management Shell. If already installed, ignore this.
- Confirm that the source or destination OneDrive account has no encryption service enabled. If enabled, the migration will fail.
- Make sure the source OneDrive account is set to Read/Write mode.
- You must have the SharePoint Administrator or Global Admin access level on both the source and destination tenant to perform the migration.
- Finally, take OneDrive backup.
Things to Know About the Cross Tenant OneDrive Migration
Before you proceed with configuring your tenants for data transfer, read the following points to better understand what you can or can’t do.
- You can only schedule up to 4000 OneDrive accounts for migration at a time.
- After OneDrive cross tenant migration, all data will be moved (not copied) to destination server. The source account will only have a redirect link.
- OneDrive files, with more than 400 characters in the path, will fail the migration due to path size limits.
- You can only migrate a OneDrive account that has a maximum of 5 TB of content or 1 million items. Any account greater than 5 TB in size will fail to migrate.
- Organizations with Government Cloud, including GCC, Consumer, GCC High, or DoD cannot do the migration.
- Any OneDrive account with a legal hold policy will not be migrated.
- Any user accessing a shared link will be redirected to the OneDrive account in the new tenant.
Steps for Manual OneDrive Cross Tenant Migration
Migrating OneDrive files to another OneDrive account on a different tenant is a multi-step process that uses SharePoint Management Shell. You may be wondering why use SharePoint in OneDrive migration. It is because currently Microsoft relies on the SharePoint Online PowerShell cmdlets to run the cross tenant migration. Let’s see each step in detail:
Step 1: Connect the source and destination tenant
In the source and destination tenant, open SharePoint Management Shell and connect to SharePoint Online using the admin credentials with admin level scope.
- Connect the source tenant by running this command:
- The SharePoint Management Shell will ask you to enter username and password. Enter the credentials and click OK.

- Go to the target tenant and open the SharePoint Management Shell and connect to SharePoint Online by running the following command:
a. -> Connect-SPOService -url https://<Source-Tenant-Name>-admin.sharepoint.com
b. Note: Replace “Source-Tenant-Name” with your actual source SharePoint site name.
a. -> Connect-SPOService -url https://<Destination-Tenant-Name>-admin.sharepoint.com
b. Note: Replace the “Destination-Tenant-Name” with the real destination SharePoint site name.
Step 2: Establish trust between the source and destination tenants
Establishing trust between the tenants allows you to migrate data from source tenant to the destination tenant or vice versa. To establish the trust, we will execute a couple of commands on both the tenants.
Before running the cmdlets to grant trust, you need to find cross-tenant host URLs. To get the URLs, run this command on the source and destination tenant:
-> Get-SPOCrossTenantHostURL
When you run above command on the source and destination tenants, you will get a URL, one for source and one for destination. These host URLs will be used in the following steps:
- To send a trust signal from source tenant to destination tenant, run the following command on the source tenant SharePoint Management Shell:
- To send a trust signal from destination tenant to source tenant, run the following command on the destination tenant SharePoint Management Shell:
a. -> Set-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Target -PartnerCrossTenantHostUrl <TARGET-Cross-Tenant-Host-Url>
b. Note: Replace the “TARGET-Cross-Tenant-Host-Url” with the host URL value returned by the destination tenant when you ran the Get-SPOCrossTenantHostURL command on destination.
a. -> Set-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Source -PartnerCrossTenantHostUrl <SOURCE-Cross-Tenant-Host-Url>
b. Note: Replace the “SOURCE-Cross-Tenant-Host-Url” with the host URL value returned by the source tenant when you ran the Get-SPOCrossTenantHostURL command on source.
Step 3: Check if trust is established between source and destination tenant
Once the above commands are executed successfully, the admin of the destination tenant will receive an email regarding the request. To verify if trust is established, follow these steps:
- To verify if trust is established from source to destination, run this command in source tenant with the “TARGET-Cross-Tenant-Host-Url” value of the destination:
- To verify if trust is established from destination to source, run this command in destination tenant with the “SOURCE-Cross-Tenant-Host-Url” value of the source:
a. -> Verify-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Target -PartnerCrossTenantHostUrl <TARGET-Cross-Tenant-Host-Url>
b. If you get the “GoodToProceed” output after executing the above command. It means trust is established.
a. -> Verify-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Source -PartnerCrossTenantHostUrl <SOURCE-Cross-Tenant-Host-Url>
Step 4: Create users and groups in destination
Identify all the users and groups that will be a part of the OneDrive cross tenant migration. Then, create them on the destination tenant and assign them appropriate licenses. Moreover, add all the created users to a security group.
Step 5: Create a CSV file for user mapping
To map the OneDrive users in the source tenant to the users in the destination tenant, create a CSV file with 6 columns. For reference, see the image below:![]()
Similarly, create a CSV file for groups with 6 columns, like this:![]()
To obtain the values for source tenant company ID, do this:
- Sign in as Admin to your Azure portal and go to Microsoft Entra ID.
- Scroll down on the left-hand panel and select Properties.
- Find the Tenant ID field. The value in this field is your source tenant ID.
To get the group object ID of source and tenant, do this:
- In the tenant (source or target), sign in to Azure Groups with admin credentials.
- Search and open the group whose ID you want.
- You will find the source group object ID in the Object ID field.
- For multiple Groups, repeat the above steps for each group.
After getting all the values, insert them into the CSV file and save the file to your system. Remember, the CSV file must be created on the target tenant.
When the CSV mapping file is ready, upload it to the target tenant with this command:
-> Add-SPOTenantIdentityMap -IdentityMapPath <identity-map-file-name.csv>
Step 6: Run the cross tenant OneDrive migration
Before starting the migration, verify the compatibility between source and destination tenant with this command:
-> Get-SPOCrossTenantCompatibilityStatus -PartnerCrossTenantHostURL [Target-tenant-hostname]
Replace the “Target-tenant-hostname” with the target tenant host URL you obtained in Step 2. If the status is shown as Compatible or Warning, you can start the OneDrive tenant to tenant migration.
To start the migration, run this command:
-> Start-SPOCrossTenantUserContentMove -SourceUserPrincipalName <Source-Prn-Name> -TargetUserPrincipalName <Target-Prn-Name> -TargetCrossTenantHostUrl <Target-Host-Url>
In the above command:
- Replace “Source-Prn-Name” with the user principal name of the user who owns the OneDrive on the Source tenant.
- Replace “Target-Prn_Name” with the user principal name of the user who owns the OneDrive on the Target tenant.
- Replace “Target-Host-Url” with the Cross-tenant Host URL of the target tenant. It is the value you received when you ran the Get-SPOCrossTenantHostUrl command on the destination tenant.
If you are planning bulk migration, I recommend you schedule the Microsoft cross tenant migration for later. To do it, add one of the following parameters at the end of the migration command:
- PreferredMoveBeginDate: For this parameter specifies a time at which you want the migration to begin. The time must be in Coordinated Universal Time (UTC).
- PreferredMoveEndDate: For this parameter, provide a time when you want the migration to complete. The time must be in Coordinated Universal Time (UTC).
These two parameters don’t guarantee that the migration will start or end at your specified time. The server will try to match the time, but the actual timing will depend on the migration queue.
A Smarter Way for Cross Tenant OneDrive Migration
If configuring the OneDrive tenant to tenant migration manually feels challenging, simplify it with a dedicated OneDrive migration tool. With the Kernel OneDrive Migration tool, you do not have to run multiple PowerShell commands while keeping track of which command runs where.
The tool handles all complicated processes internally. You only connect to the source and destination OneDrive tenant, choose which users to migrate, map accounts, and run the migration or schedule it for later. The best part is that every operation is performed on a simple and easy-to-use GUI. No complicated commands or juggling between the tenants.
Moreover, the tool offers more control over migration. You get multiple filters to control what gets migrated, and you can pause or play the migration as per your requirement.
What to do After a OneDrive Cross Tenant Migration?
Once the migration is successfully completed, there are a bunch of important tasks that you must complete. Those are:
- Log in to the target OneDrive tenant and check the status of the user’s data. Verify if all the files and folders are migrated and whether they are accessible or not.
- Verify if the guest sharing or shared file links are still working as you expect them to be.
- If you used the manual method, remove the trust relationship that you previously established.
- Run this command on source tenant: Remove-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Target -PartnerCrossTenantHostUrl <TARGET-Cross-Tenant-Host-Url>
- Run this command on target tenant: Remove-SPOCrossTenantRelationship -Scenario MnA -PartnerRole Source -PartnerCrossTenantHostUrl <SOURCE-Cross-Tenant-Host-Url>
- If you are having trouble accessing the source OneDrive account, remove the redirect link from the source tenant using the Remove-SPOSite PowerShell command.
- If users are synching data between devices, ask them to log in again in their OneDrive Sync Client using the new credentials of the target OneDrive tenant.
Author’s Verdict
Setting up a OneDrive cross tenant migration requires time, understanding of complex PowerShell commands, and technical knowledge to connect and manage two tenants simultaneously without making an error. If you can manage all these, use the SharePoint commands to migrate your data for free.
If you want to save time and prefer a simple migration where you can configure the whole cross tenant OneDrive migration with just a few clicks, use the Kernel OneDrive Migration tool.
Frequently Asked Questions
A. Yes. Cross tenant OneDrive migration is possible, and it involves migrating all the OneDrive user account and groups, including all files and folders.
A. Yes. Microsoft allows migrating single or multiple OneDrive user accounts from one tenant to another. You can perform the migration using the SharePoint migration PowerShell cmdlets.
A. Yes. This is called merging OneDrive accounts. However, Microsoft’s native methods do not support it. To merge multiple OneDrive accounts from source into a single account in the target tenant, you must use a professional OneDrive migration tool.