Forum Discussion
john john
Jul 10, 2019Steel Contributor
Moving file from onedrive to sharepoint and preserve the files permission settings
We want to move the files/folders from a user's OneDrive to a sharepoint document library. now i followed the step mentioned in this link @ Move files and folders between OneDrive and SharePoint mainly by selecting the folders from the user's onedrive and "Copy To" the sharepoint library >> where the folders and files got moved, but the files and folders permissions did not get preserved. for example i have a folder which has been shared with 2 users inside the onedrive, but when i "Copy To", the folder will inherit the permission from the destination sharepoint library.
10 Replies
Sort By
- Kimberly RoetmanIron Contributor
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.
- john johnSteel Contributor
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 RoetmanIron 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)