
Announcements
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)
I've been following your video (https://youtu.be/T6cC65YwjSI), Thanks it works well.
But i'm struggling with when I have multiple approvers which are set on the Power Apps forms (so they are always different depending who User1 selects), who need either contribute or read access, do I need to set these all in different steps or can I set them all in 1 step by separating the variables (emails) somehow?
Help will be highly appreciated please