Re: Get permissions for a specific list item
Hi @paulinuk,
Below is an example.
1. The Select uses the value of the RoleAssignments GET request I shared earlier in this thread.
2. In the mapping of the Select action I retrieve the principalid via this expression
item()['Member']['Id']
and the (first) roledefid via this expression
item()['RoleDefinitionBindings'][0]['Id']
3. In an apply to each loop I am looping through the principals from the Select Output. For each item the AddRoleAssignments is used to set permission for the target item. In that uri I refer to the
item()['principalid'] & item()['roledefid'] from the Select Output with expressions.
This step assumes that you already have broken inheritance in a previous action (action number 2 in my screenshot).
