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

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

PA Survey Carousel Image.png

We want to hear from you!

If you are a small business ISV/Reseller, share your thoughts with our research team.

Users online (3,133)