cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Manc_Gurl
Level: Powered On

Inheriting SharePoint Permissions HTTP

I'm successfully using Flow to break permission inheritance on documents within a library based on the status of a document.  This was working wonderfully when the status was set via the flow, the users now want to manually change the status.

 

"Status A" may mean that there are three permission groups that have different levels of access to a document, whereas "Status B "means that only two groups have different permission levels of access to the file and so on.  I am trying to keep my flow simple, so I'm wondering if there is a way to easily remove the unique permissions from the document so that I can recreate them based on the new status?  I've tried deleting the groups with http request, method Delete and getbyprincipalid but that only works if I know which groups currently have access to the document.  The flow fails if the group doesn't have any access. 

 

I'm thinking it would be easier to just re-inherit the permissions from the library and recreate them again but I can't find any information about inheriting permissions in a flow.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Manc_Gurl
Level: Powered On

Re: Inheriting SharePoint Permissions HTTP

I think I figured it out, resetroleinheritance() seems to work.  Not sure if this is the best way though.

View solution in original post

1 REPLY 1
Highlighted
Manc_Gurl
Level: Powered On

Re: Inheriting SharePoint Permissions HTTP

I think I figured it out, resetroleinheritance() seems to work.  Not sure if this is the best way though.

View solution in original post

Helpful resources

Announcements
firstImage

Incoming: New and improved badges!

Look out for new contribution recognition badges coming SOON!

firstImage

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Users online (4,487)