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
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

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Users online (36,928)