web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Separating 2 emails

(0) ShareShare
ReportReport
Posted on by 1,625

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)

Categories:
I have the same question (0)
  • Lefty Profile Picture
    1,625 on at

    @ChinoDoesStuff 

    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  

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard