Moving file from onedrive to sharepoint and preserve the files permission settings

%3CLINGO-SUB%20id%3D%22lingo-sub-747249%22%20slang%3D%22en-US%22%3EMoving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747249%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20want%20to%20move%20the%20files%2Ffolders%20from%20a%20user's%20OneDrive%20to%20a%20sharepoint%20document%20library.%20now%20i%20followed%20the%20step%20mentioned%20in%20this%20link%20%40%20%3CA%20href%3D%22https%3A%2F%2Fsupport.office.com%2Fen-us%2Farticle%2Fmove-files-and-folders-between-onedrive-and-sharepoint-5916f90d-f58a-4bf9-b135-10853f516d0b%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EMove%20files%20and%20folders%20between%20OneDrive%20and%20SharePoint%3C%2FA%3Emainly%20by%20selecting%20the%20folders%20from%20the%20user's%20onedrive%20and%20%22Copy%20To%22%20the%20sharepoint%20library%20%26gt%3B%26gt%3B%20where%20the%20folders%20and%20files%20got%20moved%2C%20but%20the%20files%20and%20folders%20permissions%20did%20not%20get%20preserved.%20for%20example%20i%20have%20a%20folder%20which%20has%20been%20shared%20with%202%20users%20inside%20the%20onedrive%2C%20but%20when%20i%20%22Copy%20To%22%2C%20the%20folder%20will%20inherit%20the%20permission%20from%20the%20destination%20sharepoint%20library.%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-747249%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EOneDrive%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPermissions%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747297%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747297%22%20slang%3D%22en-US%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMove%20To%20will%20move%20the%20file%20and%20all%20of%20its%20version%20history%3B%20Copy%20To%20will%20only%20copy%20the%20most%20recent%20version.%20Unfortunately%2C%20neither%20action%20retains%20file%20permissions.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20that%20in%20order%20to%20retain%20file%20permissions%2C%20you%20will%20have%20to%20use%20a%20PowerShell%20script%20or%20a%20migration%20tool%20such%20as%20ShareGate.%20I've%20personally%20had%20a%20lot%20of%20success%20using%20ShareGate's%20migration%20tool.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747304%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747304%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3201%22%20target%3D%22_blank%22%3E%40Kimberly%20Roetman%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3B%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMove%20To%20will%20move%20the%20file%20and%20all%20of%20its%20version%20history%3B%20Copy%20To%20will%20only%20copy%20the%20most%20recent%20version.%20Unfortunately%2C%20neither%20action%20retains%20file%20permissions.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20believe%20that%20in%20order%20to%20retain%20file%20permissions%2C%20you%20will%20have%20to%20use%20a%20PowerShell%20script%20or%20a%20migration%20tool%20such%20as%20ShareGate.%20I've%20personally%20had%20a%20lot%20of%20success%20using%20ShareGate's%20migration%20tool.%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3201%22%20target%3D%22_blank%22%3E%40Kimberly%20Roetman%3C%2FA%3Emy%20main%20concern%20is%20with%20preserving%20the%20permissions%20rather%20than%20versions%2C%20i%20also%20use%20to%20have%20sharegate%20migration%20tool%20license%20and%20i%20were%20not%20happy%20with%20it%2C%20especially%20when%20doing%20large%20migration.%3C%2FP%3E%3CP%3EBut%20now%20i%20do%20not%20have%20any%20migration%20tool%20license%2C%20so%20can%20you%20provide%20me%20with%20some%20power-shell%20scripts%20to%20do%20such%20as%20migration%2C%20from%20onedrvie%20to%20sharepoint%20online%20and%20mainly%20preserve%20the%20files%2Ffolders%20permissions%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747387%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747387%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3B-%20I%20found%20this%20one%20via%20a%20Google%20search%2C%20but%20haven't%20personally%20used%20it.%20I%20still%20have%20a%20year%20or%20so%20left%20for%20my%20ShareGate%20license%2C%20so%20thankfully%20I%20haven't%20had%20to%20resort%20to%20PowerShell.%20(I'm%20not%20a%20PowerShell%20expert%20by%20any%20means)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F41884%2Fcopy-a-folder-from-one-library-to-another-and-maintain-permissions-on-the-folder%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F41884%2Fcopy-a-folder-from-one-library-to-another-and-maintain-permissions-on-the-folder%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-747651%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-747651%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3201%22%20target%3D%22_blank%22%3E%40Kimberly%20Roetman%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3B-%20I%20found%20this%20one%20via%20a%20Google%20search%2C%20but%20haven't%20personally%20used%20it.%20I%20still%20have%20a%20year%20or%20so%20left%20for%20my%20ShareGate%20license%2C%20so%20thankfully%20I%20haven't%20had%20to%20resort%20to%20PowerShell.%20(I'm%20not%20a%20PowerShell%20expert%20by%20any%20means)%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F41884%2Fcopy-a-folder-from-one-library-to-another-and-maintain-permissions-on-the-folder%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsharepoint.stackexchange.com%2Fquestions%2F41884%2Fcopy-a-folder-from-one-library-to-another-and-maintain-permissions-on-the-folder%3C%2FA%3E%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F3201%22%20target%3D%22_blank%22%3E%40Kimberly%20Roetman%3C%2FA%3Ethanks%20for%20the%20reply.%20but%20the%20script%20inside%20the%20link%20you%20provided%20is%20using%20server-side%20powershell%20%2C%20while%20i%20need%20to%20move%20the%20files%20for%20SharePoint%20online..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-755278%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755278%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20is%20a%20request%20we%20are%20actually%20starting%20to%20hear%20more%20often%20and%20it's%20something%20the%20team%20is%20beginning%20to%20look%20at%20(though%20we%20don't%20have%20a%20timeframe%20to%20offer%20just%20yet).%20Can%20you%20help%20me%20understand%20what%20types%20of%20permissions%20you%20want%20to%20make%20sure%20get%20moved%20over%3F%20Thanks!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3EOneDrive%20Program%20Manager%20II%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-755561%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755561%22%20slang%3D%22en-US%22%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3B!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EDo%20you%20primarily%20find%20yourself%20moving%20files%20from%20OneDrive%20to%20SharePoint%20or%20OneDrive%20to%20OneDrive%3F%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EAnd%20this%20does%20help%20clarify%20the%20need%20here.%20As%20I%20said%20above%2C%20nothing%20specific%20I%20can%20talk%20about%20now%20but%20this%20is%20something%20we%20are%20looking%20at%20improving%20%3A)%3C%2Fimg%3E%20Thanks%2C%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3EOneDrive%20Program%20Manager%20II%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-755511%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755511%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EHi%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThis%20is%20a%20request%20we%20are%20actually%20starting%20to%20hear%20more%20often%20and%20it's%20something%20the%20team%20is%20beginning%20to%20look%20at%20(though%20we%20don't%20have%20a%20timeframe%20to%20offer%20just%20yet).%20Can%20you%20help%20me%20understand%20what%20types%20of%20permissions%20you%20want%20to%20make%20sure%20get%20moved%20over%3F%20Thanks!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStephen%20Rice%3C%2FP%3E%3CP%3EOneDrive%20Program%20Manager%20II%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3B%20Thanks%20for%20your%20reply%20and%20concern.%20Here%20are%20samples%20of%20the%20permissions%20we%20like%20to%20preserve%3A-%3C%2FP%3E%3CP%3E1.%20some%20folders%20inside%20the%20OneDrive%20will%20have%20unique%20permission%20and%20only%20specific%20users%20are%20granted%20permission%20to%20read%2Fcontribute.%3C%2FP%3E%3CP%3E2.%20some%20files%20inside%20the%20OneDrive%20have%20been%20shared%20using%20links.%3C%2FP%3E%3CP%3Enow%20the%20above%202%20cases%20will%20not%20be%20preserved%20within%20the%20files%2Ffolders%20when%20we%20use%20the%20built-in%20Move-to%20and%20Copy-To%20options.%3C%2FP%3E%3CP%3Ei%20hope%20this%20clarify%20my%20question.%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-755978%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-755978%22%20slang%3D%22en-US%22%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CBLOCKQUOTE%3E%3CHR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3E%26nbsp%3Bwrote%3A%3CBR%20%2F%3E%3CP%3EThanks%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%26nbsp%3B!%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EDo%20you%20primarily%20find%20yourself%20moving%20files%20from%20OneDrive%20to%20SharePoint%20or%20OneDrive%20to%20OneDrive%3F%26nbsp%3B%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EAnd%20this%20does%20help%20clarify%20the%20need%20here.%20As%20I%20said%20above%2C%20nothing%20specific%20I%20can%20talk%20about%20now%20but%20this%20is%20something%20we%20are%20looking%20at%20improving%20%3A)%3C%2Fimg%3E%20Thanks%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EStephen%20Rice%3C%2FP%3E%3CP%3EOneDrive%20Program%20Manager%20II%3C%2FP%3E%3CHR%20%2F%3E%3C%2FBLOCKQUOTE%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F181%22%20target%3D%22_blank%22%3E%40Stephen%20Rice%3C%2FA%3Eok%20i%20got%20your%20point%2C%20it%20is%20good%20to%20know%20that%20those%20are%20in%20your%20plan.%20now%20in%20my%20case%20we%20usually%20receive%20requests%20to%20move%20files%20for%20the%20users'%20OneDrives%20to%20sharepoint%2Cand%20i%20have%20never%20receive%20any%20request%20to%20move%20files%20from%20OneDrive%20to%20OneDrive%20OR%20from%20sharepoint%20to%20OneDrive.%20mainly%20when%20a%20user%20leave%20the%20company%20%2C%20and%20we%20do%20not%20want%20to%20loose%20the%20user's%20files%2C%20we%20are%20asked%20to%20move%20the%20user's%20files%20from%20OneDrive%20to%20a%20sharepoint%20document%20library.%20and%20in%20all%20the%20cases%20which%20i%20worked%20on%2C%20the%20users%20had%20define%20unique%20permissions%20for%20the%20folders%20and%20sometimes%20on%20the%20files%20levels..%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-757524%22%20slang%3D%22en-US%22%3ERe%3A%20Moving%20file%20from%20onedrive%20to%20sharepoint%20and%20preserve%20the%20files%20permission%20settings%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-757524%22%20slang%3D%22en-US%22%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F233354%22%20target%3D%22_blank%22%3E%40john%20john%3C%2FA%3E%2C%26nbsp%3Bthanks%20for%20confirming!%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3EThat%20is%20the%20primary%20scenario%20we%20are%20looking%20at%20tackling%20so%20it's%20always%20good%20to%20hear%20that%20matches%20real%20world%20needs%20%3A)%3C%2Fimg%3E%20Thanks%20for%20all%20of%20your%20feedback%2C%20I%20really%20appreciate%20it!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EStephen%20Rice%3C%2FP%3E%0A%3CP%3EOneDrive%20Program%20Manager%20II%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Super Contributor

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. 

9 Replies
Highlighted

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. 

 

 

Highlighted

 


@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?

Highlighted

@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-m...

Highlighted

 


@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)

 

https://sharepoint.stackexchange.com/questions/41884/copy-a-folder-from-one-library-to-another-and-m...


@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..

Highlighted

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

Highlighted

 


@Stephen Rice 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


@Stephen Rice  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

 

Highlighted

Thanks @john john !

 

Do you primarily find yourself moving files from OneDrive to SharePoint or OneDrive to OneDrive? 

 

And this does help clarify the need here. As I said above, nothing specific I can talk about now but this is something we are looking at improving :) Thanks,

 

Stephen Rice

OneDrive Program Manager II

Highlighted

 


@Stephen Rice wrote:

Thanks @john john !

 

Do you primarily find yourself moving files from OneDrive to SharePoint or OneDrive to OneDrive? 

 

And this does help clarify the need here. As I said above, nothing specific I can talk about now but this is something we are looking at improving :) Thanks,

 

Stephen Rice

OneDrive Program Manager II


@Stephen Riceok i got your point, it is good to know that those are in your plan. now in my case we usually receive requests to move files for the users' OneDrives to sharepoint,and i have never receive any request to move files from OneDrive to OneDrive OR from sharepoint to OneDrive. mainly when a user leave the company , and we do not want to loose the user's files, we are asked to move the user's files from OneDrive to a sharepoint document library. and in all the cases which i worked on, the users had define unique permissions for the folders and sometimes on the files levels..

Highlighted

@john john, thanks for confirming!


That is the primary scenario we are looking at tackling so it's always good to hear that matches real world needs :) Thanks for all of your feedback, I really appreciate it!

 

Stephen Rice

OneDrive Program Manager II