Forum Discussion
Ramson1809
Jun 29, 2020Copper Contributor
Bulk assign SharePoint Folder Permissions
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 manage...
Carlos_Marins
Jun 29, 2020Iron Contributor
Hi Ramson1809,
Maybe you could use the https://github.com/pnp/PnP-PowerShell library to automatically set these permissions for you. Take a look at the https://docs.microsoft.com/en-us/powershell/module/sharepoint-pnp/set-pnpfolderpermission?view=sharepoint-ps 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.
Ramson1809
Jun 29, 2020Copper Contributor
Thanks for your prompt response Carlos - very helpful. I will take a look at the links you have provided 🙂