In today’s post we will see how we can break inheritance in a SharePoint library using Power Automate.
First, we need to go to the Power Automate page and select Create.
Then we select Instant Cloud Flow.
We give a name to our new automate flow and select Manually trigger a flow.
We add a new action of type HTTP Request to SharePoint and fill in the following:
- Site Address: Select your SharePoint site
- Method: POST
- Uri:
_api/lists/getbytitle('Documents')/breakroleinheritance(copyRoleAssignments=true, clearSubscopes=true) - Headers:
- accept: application/json;odata=verbose
- Content-Type: application/json;odata=verbose
- Body: Leave this empty

We save our automate.
And we run a manual test.
We select Continue to allow the necessary permissions.
And in the next step, we select Run Flow to execute it successfully.
We are then informed that it ran successfully.
Indeed, there are no errors during the execution of the automate.
And if we go to the library and select Permissions from the library settings, we will see that inheritance has been broken.