How to remove specific user from item level permission through Rest API using power automate
-
20-02-2021 - |
Domanda
I have a list with each list item has unique permission. Now I need to remove specific user from the item level permission using Power Automate.
I know there is REST endpoint for removing group but not user:
_api/web/lists/getByTitle('[LIST_TITLE]')/items([ItemID])/roleAssignments/groups/removebyid([Group_PRINCIPLE_ID])]
kindly help me on this.
Nessuna soluzione corretta
Altri suggerimenti
There is a REST endpoint to remove user permissions from list item.
Use this endpoint:
<siteUrl>/_api/web/lists/getbytitle('<listName>')/items(<ID>)/roleassignments/removeroleassignment(principalid=<userID>,roleDefId=1073741827)
Replace <userID>
with the actual user ID.
Microsoft documentation: Users, groups, and roles REST API reference
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a sharepoint.stackexchange