Forum Discussion

Eric Adler's avatar
Eric Adler
Steel Contributor
Jul 08, 2018
Solved

Setting up 300 folders with unique permissions - Best Approach?

What would be the best approach to setting up 300 folders with different names and each folder has unique permissions?

 

- 300 folders with unique names

- permissions inheritance needs to be broken.

- 2 of the 3 groups that came with the original permissions need to be removed

- two accounts need to be added with edit rights (accounts and folder name share a naming convention)

- two other groups need to be added with edit permissions 

  • PowerShell is going to be the best most reliable route.  I'm assuming you're creating the folders to secure information and then using Metadata in the views/search? 

5 Replies

  • PowerShell is going to be the best most reliable route.  I'm assuming you're creating the folders to secure information and then using Metadata in the views/search? 

    • Eric Adler's avatar
      Eric Adler
      Steel Contributor
      To secure...but really to make the UI easier for the end users. So they only see their folder. Not setting any metadata...would like to though. currently, the library is set up with a one metadata field. it is using a look column. is that accessible to configure in PowerShell?
  • An approach I have used is to configured permissions using SharePoint Designer Workflow. Using a metadata column to determine the set of groups assigned permission to the folders. This needs to be done with a SP2010 workflow (not SP2013) using an impersonation step and the 'replace item permission' or 'change item permission' workflow step.

     

    In another job I had a CSV file with the folder names and groups defined on each line. I used PowerShell to great the folders and then set the permission.

    • jcgonzalezmartin's avatar
      jcgonzalezmartin
      MVP
      PowerShell / .NET Programme approach is the best one you can follow here....take also a look at the possibilities PnP stuff can bring you to simplify all

Resources