#PowerPlatformTip 160: 'Set SharePoint Item Permissions with Power Automate'
TL;DR: Call
breakroleinheritanceon the item, thenaddroleassignment(principalid, roledefid)via Send an HTTP request to SharePoint. WithcopyRoleAssignments=false, the connection account retains Manage permissions while you add the intended users or groups.
SharePoint items inherit their permissions from the list by default. When a process needs to lock an item down to just the requester and an approver, you can do the whole thing in Power Automate: stop the inheritance, then bind the right people to the right permission level. No manual sharing, no premium connector.
💡 Challenge
A request item should only be visible to the submitter and the approver, not the whole team. Doing this by hand doesn’t scale, and the standard SharePoint actions only cover simple sharing (for example Grant access to an item or a folder); breaking inheritance and binding people to a permission level of your choice needs the REST calls below. You need item-level (fine-grained) permissions applied automatically as part of the flow.
✅ Solution
SharePoint sites, lists and items are SecurableObjects. To give an item unique permissions you first break role inheritance, then add role assignments that bind a principal (user or group) to a role definition (permission level like Read, Contribute, Edit). Both operations are available through Send an HTTP request to SharePoint, which handles auth for you.
🔧 How It’s Done
1. Get the principal ID (the site user or group ID) for the person you want to grant access to.
🔸 Send an HTTP request to SharePoint → Method POST, Uri:
1
_api/web/ensureuser
Header Accept: application/json;odata=nometadata, Body:
1
{ "logonName": "i:0#.f|membership|jane.doe@contoso.com" }
🔸 Read the returned Id (e.g. body('Ensure_User')?['Id']).
2. Get the role definition ID for the permission level you want (Read, Contribute, Edit, Full Control).
🔸 Method GET, Uri:
1
_api/web/roledefinitions/getbyname('Read')?$select=Id
🔸 Keep the returned Id.
3. Break role inheritance on the item so it stops inheriting from the list.
🔸 Method POST, Uri:
1
_api/web/lists/getbytitle('Requests')/items(ID)/breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true)
🔸 copyRoleAssignments=false does not copy existing assignments; the only role assignment left is one for the account making the call (Microsoft’s REST example describes it as the Manage permission level; read the item’s roleassignments to see exactly what you got). Add the required users or groups after the call. Use true if you want to retain the current assignments and add to them.
🔸 clearSubscopes=true also resets the unique permissions of child securable objects. A plain list item has none, but if the target is a folder, the items inside lose their own unique permissions and inherit from it again; use false there. If the item already has unique permissions, breakroleinheritance does not alter its role assignments (MS-CSOMSPT).
Step 3 as a Send an HTTP request to SharePoint action: Method POST, the Uri calling breakroleinheritance(copyRoleAssignments=false,clearSubscopes=true) on the item and the Accept header. The next action in the flow is the addroleassignment call from step 4.
4. Grant the permission by adding a role assignment.
🔸 Method POST, Uri:
1
_api/web/lists/getbytitle('Requests')/items(ID)/roleassignments/addroleassignment(principalid=<PrincipalId>,roledefid=<RoleDefId>)
🔸 Repeat step 4 for each user or group you want to add (e.g. the approver).
🔸 Check the status code of every call, and keep in mind two gaps. First, the item exists with the list’s permissions until step 3 has succeeded: if the whole team can read the list, they can see the new item until then, and they keep that access if the flow fails before step 3. For confidential requests, create the item in a restricted location from the start, or restrict the item right away and alert someone on failure. Second, steps 3 and 4 are separate calls: if a grant fails, the item may be left with only the connection account’s access. Resolve the principal and role IDs before breaking inheritance, and end the flow with a failure alert and a check of the final assignments.
5. (Optional) Remove access the same way. This call names only the principal, not a role, so it removes that principal’s role assignment on the item as a whole (every permission level bound in it); to take away just one level, re-add the other one afterwards. Test it on a sample item:
1
_api/web/lists/getbytitle('Requests')/items(ID)/roleassignments/removeroleassignment(principalid=<PrincipalId>)
🎉 Result
The item now has unique permissions applied by the flow. With copyRoleAssignments=false, the account used by the SharePoint connection retains Manage permissions; the additional role assignments grant the intended users or groups their access.
Each item with unique permissions adds a unique security scope. A list or library supports up to 50,000 unique scopes, with fewer than 5,000 recommended for performance. Each scope supports up to 5,000 role assignments.
🌟 Key Advantages
🔸 Standard action only: Send an HTTP request to SharePoint, no premium connector.
🔸 Precise & automated: you choose the permission level per user/group and the flow applies it on every run. On an item that already has unique permissions, breakroleinheritance does not change the existing assignments, so for repeated runs compare the item’s current role assignments with the wanted ones and correct differences.
🔸 Flexible: grant with addroleassignment, revoke with removeroleassignment, or re-inherit with resetroleinheritance.
🛠️ FAQ
1. Why do I have to break inheritance first?
SharePoint has no partial inheritance - permissions are either inherited or unique. breakroleinheritance switches the item to unique so your role assignments actually stick.
2. Which role definition IDs are common?
Rather than hardcoding IDs (they can vary), query roledefinitions/getbyname('Read'|'Contribute'|'Edit'|'Full Control'). If you do hardcode: Read 1073741826, Contribute 1073741827, Edit 1073741830, Full Control 1073741829.
3. I get a 403 / “Insufficient privileges” on breakroleinheritance.
The account behind the SharePoint connection needs the right to manage permissions on the target. GET calls can succeed while permission changes fail. First check which identity runs the call, which object you change and what rights that identity really has there; then grant only what that scope needs (for example Manage permissions / Full Control on the list or item). Making the connection account a site owner is the broad fallback. If the flow runs as an app (app-only), that is a separate case: Microsoft’s REST example for custom permissions requires Full Control at web scope.
4. How do I undo unique permissions later?
Call _api/web/lists/getbytitle('Requests')/items(ID)/resetroleinheritance to make the item inherit from the list again.
🔗 Related Tips
- #PowerPlatformTip 137: SharePoint Lists Folder Permissions, the no-flow alternative using folder-level permissions.
- #PowerPlatformTip 74: Elevated Permissions, run the flow under a service account so it has rights to change permissions.
- #PowerPlatformTip 110: Protect SharePoint Data, a custom permission level that steers users into Power Apps (a usability measure, not a security boundary: other clients using the SharePoint API can still reach the data).
🎥 Video Tutorial
This tip is by Marcel Lehmann, Microsoft MVP (Business Applications) and founder of the Power Platform Academy, which runs free live workshops (in German). See the next free workshop dates (in German). For companies that want this implemented for them, see KMUpower: Power Platform consulting & automation for SMEs (DACH).