Forum Discussion
Moving file from onedrive to sharepoint and preserve the files permission settings
Hi john john ,
Move To will move the file and all of its version history; Copy To will only copy the most recent version. Unfortunately, neither action retains file permissions.
I believe that in order to retain file permissions, you will have to use a PowerShell script or a migration tool such as ShareGate. I've personally had a lot of success using ShareGate's migration tool.
Kimberly Roetman wrote:Hi john john ,
Move To will move the file and all of its version history; Copy To will only copy the most recent version. Unfortunately, neither action retains file permissions.
I believe that in order to retain file permissions, you will have to use a PowerShell script or a migration tool such as ShareGate. I've personally had a lot of success using ShareGate's migration tool.
Kimberly Roetmanmy main concern is with preserving the permissions rather than versions, i also use to have sharegate migration tool license and i were not happy with it, especially when doing large migration.
But now i do not have any migration tool license, so can you provide me with some power-shell scripts to do such as migration, from onedrvie to sharepoint online and mainly preserve the files/folders permissions?
- Kimberly RoetmanJul 10, 2019Iron Contributor
john john - I found this one via a Google search, but haven't personally used it. I still have a year or so left for my ShareGate license, so thankfully I haven't had to resort to PowerShell. (I'm not a PowerShell expert by any means)
https://sharepoint.stackexchange.com/questions/41884/copy-a-folder-from-one-library-to-another-and-maintain-permissions-on-the-folder
- john johnJul 10, 2019Iron Contributor
Kimberly Roetman wrote:john john - I found this one via a Google search, but haven't personally used it. I still have a year or so left for my ShareGate license, so thankfully I haven't had to resort to PowerShell. (I'm not a PowerShell expert by any means)
Kimberly Roetmanthanks for the reply. but the script inside the link you provided is using server-side powershell , while i need to move the files for SharePoint online..
- StephenRiceJul 15, 2019
Microsoft
Hi john john,
This is a request we are actually starting to hear more often and it's something the team is beginning to look at (though we don't have a timeframe to offer just yet). Can you help me understand what types of permissions you want to make sure get moved over? Thanks!
Stephen Rice
OneDrive Program Manager II