Bulk assign SharePoint Folder Permissions

%3CLINGO-SUB%20id%3D%22lingo-sub-1495775%22%20slang%3D%22en-US%22%3EBulk%20assign%20SharePoint%20Folder%20Permissions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1495775%22%20slang%3D%22en-US%22%3E%3CP%3EHi%20Experts%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20faced%20with%20a%20challenge%20where%20I%20need%20too%20assign%20different%20permissions%20to%20each%20of%20the%20500%2B%20sub-folders%20in%20a%20SharePoint%20folder.%20This%20folder%20contains%20sub%20folders%20for%20each%20line%20manager%20(folder%20name%20is%20manager%20name)%20in%20my%20organisation%20and%20I%20only%20want%20the%20named%20manager%20to%20have%20access%20to%20their%20specific%20folder%20and%20nothing%20else.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20have%20seen%20how%20these%20can%20be%20achieved%20manually%20but%20wondered%20if%20there%20is%20another%20way%20of%20doing%20this%20in%20bulk%20as%20it%20is%20time%20consuming%20doing%20it%20individually%20for%20500%2B%20files%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EHas%20anyone%20faced%20this%20problem%20before%2C%20how%20did%20you%20get%20round%20to%20it%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThanks%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1495889%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20assign%20SharePoint%20Folder%20Permissions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1495889%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%2F709873%22%20target%3D%22_blank%22%3E%40Ramson1809%3C%2FA%3E%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMaybe%20you%20could%20use%20the%20%3CA%20href%3D%22https%3A%2F%2Fgithub.com%2Fpnp%2FPnP-PowerShell%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3EPnP%20PowerShell%3C%2FA%3E%20library%20to%20automatically%20set%20these%20permissions%20for%20you.%20Take%20a%20look%20at%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fpowershell%2Fmodule%2Fsharepoint-pnp%2Fset-pnpfolderpermission%3Fview%3Dsharepoint-ps%22%20target%3D%22_self%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3ESet-PnPFolderPermission%3C%2FA%3E%20command.%20You%20could%20use%20the%20-ClearExisting%20parameter%20to%20remove%20all%20existing%20permissions%20and%20then%20the%20-AddRole%20parameter%20to%20grant%20permission%20to%20the%20specified%20manager.%20Let%20me%20know%20if%20you%20need%20any%20help%20with%20that.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1496280%22%20slang%3D%22en-US%22%3ERe%3A%20Bulk%20assign%20SharePoint%20Folder%20Permissions%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1496280%22%20slang%3D%22en-US%22%3EThanks%20for%20your%20prompt%20response%20Carlos%20-%20very%20helpful.%20I%20will%20take%20a%20look%20at%20the%20links%20you%20have%20provided%20%3A)%3C%2Fimg%3E%3C%2FLINGO-BODY%3E
Highlighted
Occasional Contributor

Hi Experts,

 

I am faced with a challenge where I need too assign different permissions to each of the 500+ sub-folders in a SharePoint folder. This folder contains sub folders for each line manager (folder name is manager name) in my organisation and I only want the named manager to have access to their specific folder and nothing else.

 

I have seen how these can be achieved manually but wondered if there is another way of doing this in bulk as it is time consuming doing it individually for 500+ files?

 

Has anyone faced this problem before, how did you get round to it?

 

Thanks

2 Replies
Highlighted

Hi @Ramson1809,

 

Maybe you could use the PnP PowerShell library to automatically set these permissions for you. Take a look at the Set-PnPFolderPermission command. You could use the -ClearExisting parameter to remove all existing permissions and then the -AddRole parameter to grant permission to the specified manager. Let me know if you need any help with that.

Highlighted
Thanks for your prompt response Carlos - very helpful. I will take a look at the links you have provided :)