web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Answered

Set unique permission for multiple folders

(0) ShareShare
ReportReport
Posted on by 74

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

I have the same question (0)
  • Zwart Profile Picture
    32 on at
    Re: Set unique permission for multiple folders

    Stefan, did you find a solution?

  • Verified answer
    cgru3eejc2 Profile Picture
    74 on at
    Re: Set unique permission for multiple folders

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

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 560 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 347 Moderator

#3
Expiscornovus Profile Picture

Expiscornovus 262 Most Valuable Professional

Last 30 days Overall leaderboard