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"
              }
            ]
          }
        ]
      }

 

View solution in original post

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,073)