Hello all,
I have a flow to remove permissions on a list on a SPO page.
This also works without any problems.
After the rights are removed, the user who is in the list under "UnitHead" gets permissions set again.
This also works.
Now, in addition to the UnitHead, another entry in the list should also get permissions again.
Only, how do I do that?
If I simply write everything twice in a row, I get an error when saving.
Can for example 2 users be entered in the entries, where now only one, the UnitHead, is in it?
Send an HTTP request to SharePoint - Get User List - UnitHead
Method: get
Uri: _api/web/lists/getByTitle('Holiday_Test')/items(@{triggerOutputs()?['body/ID']})?$select=UnitHead/Id&$expand=UnitHead
Send an HTTP request to SharePoint 2 - POST - UnitHead
Method: post
Uri: _api/lists/getByTitle('holiday_test')/items(@{triggerOutputs()? ['body/ID']})/roleassignments/addroleassignment(principalid=@{outputs('Send_an_HTTP_request_to_SharePoint_-_Get_User_List_-_UnitHead')?['body']['d']['UnitHead']['Id']},roledefid=1073741827)
Thanks for your help in advance!

Report
All responses (
Answers (