Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Separating 2 emails

(0) ShareShare
ReportReport
Posted on by 1,623

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)

  • Lefty Profile Picture
    1,623 on at
    Re: Separating 2 emails

    @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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1