Forum Discussion
Moving file from onedrive to sharepoint and preserve the files permission settings
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?
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
- john johnJul 15, 2019Iron Contributor
StephenRice wrote: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
StephenRice Thanks for your reply and concern. Here are samples of the permissions we like to preserve:-
1. some folders inside the OneDrive will have unique permission and only specific users are granted permission to read/contribute.
2. some files inside the OneDrive have been shared using links.
now the above 2 cases will not be preserved within the files/folders when we use the built-in Move-to and Copy-To options.
i hope this clarify my question.
Thanks