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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,663)