Hi all,
I want to remove the access to SharePoint list entries for all users but not for sharepoint groups. Therefore, I built the following flow. HTTP GET Type does only work for user but not for groups and is therefore used as a condition. It seems as everyting works up until HTTP POST Delete Access. It starts with getting all items and looking at item after item.
In the Apply to each I wrote: body('HTTP_GET_Rights')?['d']['results']}
and in HTTP GET Rights I wrote: _api/web/lists/getByTitle('Government incentives SP list')/items(items('For_each')?['ID'])/roleassignments
and in the HTTP POST Delete Rights I wrote: _api/web/lists/getByTitle('Government incentives SP list')/items(items('For_each')?['ID']/roleassignments/removeroleassignment(principalid=items('Apply_to_each')['PrincipalId'])
I do not understand why this does not work as the HTTP request seems working. Everything until the HTTP POST Delete Rights node works just fine.
Thank you very much for your help and kind regards,
Marc