cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cgru3eejc2
Advocate IV
Advocate IV

Set unique permission for multiple folders

Hi,

 

I have a challenge to implement somehow.

 

Request is to create a specific folder structure and then break the permission and set on each folder unique folder permissions.

Some additional SharePoint permission groups are created as well (not point of this question right now).

 

Folders:

00 Definition

01 ProjMgtm

02 Products

03 Delivery

04 Support

05 Externals

 

 

I have the following permission group structure:

  • "siteName" Manager (the default one)
  • "siteName" Members (the default one)
  • "siteName" Visitors (the default one)
  •  
  • "siteName" Department1 Members
  • "siteName" Department2 Members
  • "siteName" External Members

 

Permission which should be set:

FolderManagerMemberDep1Dep2ExternalVisitor
00 DefinitionFullControlContribute   read only
01 ProjMgtmFullControlContribute   read only
02 ProductsFullControlContribute ContributeContribute read only
03 DeliveryFullControlContribute Contribute read only
05 ExternalsFullControlContribute  Contributeread only

 

I thought about defining a JSON structure to define on which folder which permission group should be set.

How would you structure the JSON or how would you implement that with Flow? It should (needs) to be Flow or LogicApps.

so my idea would be to loop over the JSON structure, break permission and set the defined groups.

 

This is not a one time action, the structure will be created on multiple sites (even with site provisioning).

 

Not sure how I should start, at the moment...

Appreciate inputs.

 

Thanks,

Stefan

1 ACCEPTED SOLUTION

Accepted Solutions

Well, yes and no.

I invented something on my own and created a JSON structure and then process it to break the permission and re-set it according to the JSON values. It's really flexible and permission on a folder can be defined in the JSON structure.

      {
        "Folders": [
          {
            "FolderName": "01 FolderName",
            "FolderPermission": [
              {
                "GroupName": "[SITENAME] Owners",
                "AssignPermissionRole": "Full Control"
              },
              {
                "GroupName": "[SITENAME] Members",
                "AssignPermissionRole": "Contribute"
              },
              {
                "GroupName": "[SITENAME] Visitors",
                "AssignPermissionRole": "Read"
              }
            ]
          }
        ]
      }

 

View solution in original post

2 REPLIES 2
Zwart
Frequent Visitor

Stefan, did you find a solution?

Well, yes and no.

I invented something on my own and created a JSON structure and then process it to break the permission and re-set it according to the JSON values. It's really flexible and permission on a folder can be defined in the JSON structure.

      {
        "Folders": [
          {
            "FolderName": "01 FolderName",
            "FolderPermission": [
              {
                "GroupName": "[SITENAME] Owners",
                "AssignPermissionRole": "Full Control"
              },
              {
                "GroupName": "[SITENAME] Members",
                "AssignPermissionRole": "Contribute"
              },
              {
                "GroupName": "[SITENAME] Visitors",
                "AssignPermissionRole": "Read"
              }
            ]
          }
        ]
      }

 

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (1,835)