cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Zwart
Frequent Visitor

Folder Permissions

I feel like I've read 100's of posts and videos and haven't found success. I have a flow that successfully builds a subsite and a set of folders in a Library, creates a security group, sets view permission to the Site/Library for that group, but I am stuck trying to then elevate that group's permission to "Contribute" for one folder. In my flow below, the first HTTP request works to "Set Read access for ReviewGroup to Bid Subsite. Then any number of scenarios I've tried have failed to break the permissions on the 03 - Review folder and then set the new permission or find the folder Id.

Thank you for any help.

permissions.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User
Dual Super User

Folder permissions operate the same way permissions do for a file.  First Break Inheritance and then assign individual permissions.  This code works for me.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
Pstork1
Dual Super User
Dual Super User

Folder permissions operate the same way permissions do for a file.  First Break Inheritance and then assign individual permissions.  This code works for me.

image.png



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
Zwart
Frequent Visitor

Thanks! This put the bits and pieces into one string and saves a number of manual steps. Added a Get Folder Metadata above to pull in the proper integer-based FolderId.

Pstork1
Dual Super User
Dual Super User

I had a couple extra steps to get the FolderID and the permission level.  But those were the basic steps required to do the job.  The rest was just populating variables to make it more reusable.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

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.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

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
Top Kudoed Authors
Users online (3,638)