Forum Discussion
File share to OneDrive for Business File Migration?
- Feb 06, 2017
Just include the following before/after migrating:
Set-SPOUser -Site $onedrive -IsSiteCollectionAdmin $true -LoginName migration_admin@yourtenant.com # ...migration... Set-SPOUser -Site $onedrive -IsSiteCollectionAdmin $false -LoginName migration_admin@yourtenant.com
where $onedrive contains the URL of the user's Onedrive actually being migrated, like:
"https://yourtenant-my.sharepoint.com/personal/username_yourdomain_com/"
This grants site collection admin rights to the given users Onedrive for the technical user whose credentials are used for the migration, then remove it once you are done.
Just include the following before/after migrating:
Set-SPOUser -Site $onedrive -IsSiteCollectionAdmin $true -LoginName migration_admin@yourtenant.com # ...migration... Set-SPOUser -Site $onedrive -IsSiteCollectionAdmin $false -LoginName migration_admin@yourtenant.com
where $onedrive contains the URL of the user's Onedrive actually being migrated, like:
"https://yourtenant-my.sharepoint.com/personal/username_yourdomain_com/"
This grants site collection admin rights to the given users Onedrive for the technical user whose credentials are used for the migration, then remove it once you are done.
- Rob-CTLFeb 07, 2017Iron Contributor
Zoltan Bagyon Genius! thanks for that.