Hi all
i have 2 or more users users I need to grant permissions to, e.g. one is contribute and the other is read permissions. granting contribute works fine if i only use 1 user.
In the Send HTTP request to SharePoint, in the Uri I have this:
_api/web/SiteUsers/getByEmail('{variables('varEmail1')}','{variables('varEmail2')}')
But it fails at this stage, possibly got the syntax wrong, or the fact I cannot pass in more than 1 email address here, but it correctly populates both the emails in the below error message:
"message": "The expression \"web/SiteUsers/getByEmail('varEmail1', 'varEmail2')\" is not valid.\
I guess to follow on from that, can I also pass in the same info in the final HTTP request and combine both in the 1 action like so: _api/web/lists/getByTitle('List Name')/items(@{variables('itemID')})/roleassignments/addroleassignment(principalid=@{variables('varRequesterID')},roledefid=1073741827, principalid=@{variables('varEmail2')}, roledefid=1073741826)