Break List Item Permission Inheritance using Power Automate

Ahamed Fazil Buhari
 
Senior Developer
November 3, 2022
 
Rate this article
 
Views
2608

In this article we will see, how to easily break SharePoint list item permission with couple of Power Automate actions. Without further intro, as a first step we need to get SharePoint user Id for the user who we would like to give access,

 

And to handle the response data, we can parse the JSON (schema can be generated from sample response)

 

Now we can break the permission by providing list name, item ID in breakroleinheritance api call

Once the break role inheritance is done, then we can provide permission to specific user (user that we resolved in step 1) with any role you would like. In the below example I give full control and the roledefid for full control is 1073741829.

Below you can find different role ids and its definition.

Role identifier valueRole definition
1073741924View Only
1073741825Limited Access
1073741826Reader
1073741827Contributor
1073741830Edit
1073741828Designer
1073741829Full Control

 

With this simple for actions, we can easily break list permission and give unique access.

 

Happy Coding

Fazil

 

Author Info

Ahamed Fazil Buhari
 
Senior Developer
 
Rate this article
 
Ahamed is a Senior Developer and he has very good experience in the field of Microsoft Technologies, especially SharePoint, Azure, M365, SPFx, .NET and client side scripting - JavaScript, TypeScript, ...read more
 

Leave a comment