Forum Discussion
Rob-CTL
Feb 06, 2017Iron Contributor
File share to OneDrive for Business File Migration?
Hi Interesting one, I'm looking to migrate file share data (home drives) to OneDrive for Business using PowerShell. I've hit a bit of an issue with permissions on "my sites". For information I'...
- 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.
Zoltan Bagyon
Feb 06, 2017Steel Contributor
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.