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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Check If Current User ...
Power Automate
Answered

Check If Current User in SharePoint Group

(0) ShareShare
ReportReport
Posted on by 31

I'm trying to check if a current user on our SharePoint Intranet is included in a group. I have a condition if yes or no. I've got to the point where I can capture output list of user emails in the group. I'm not sure how to check if current user email is in the output list.

 

Let me know if you need more specifics, thanks!

 

userExists.jpg
Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,504 Most Valuable Professional on at

    Hey @mason007 

     

    Can you review the solution at - https://powerusers.microsoft.com/t5/General-Power-Automate/Check-if-User-is-already-in-a-SP-Group-using-HTTP-Request/m-p/1522474 

     

    In the above the author of the solution check empty() expression to check if the user exisit...

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

    P.S. take a look at my blog here and like & subscribe to my YouTube Channel thanks.

  • mason007 Profile Picture
    31 on at

    Yes, I saw that but didn't know if I need to have the strAssociated or strRequested that's in his http request Uri? I'm only asking for user group:

     

    _api/web/sitegroups(group number)/users

  • mason007 Profile Picture
    31 on at

    I think it's working now. In my case it was - empty(outputs('Compose')['d']['results']) equal to false. Thanks!

  • mason007 Profile Picture
    31 on at

    Sorry, but the no condition isn't triggered when someone outside the group submits an approval.

     

    mason007_0-1685463207704.png

     

  • mason007 Profile Picture
    31 on at

    I think I know the issue, the condition will always be false. So users in sharepoint group A should not have to ask for approval (Yes condition), and that is working. But anyone not in that group should go through the approval process. Can anyone assist with this?

  • mason007 Profile Picture
    31 on at

    I was using this approach initially which worked when testing but don't want to hard code each user in the group.

     

    mason007_0-1685490677355.png

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 468

#2
Haque Profile Picture

Haque 370

#3
Valantis Profile Picture

Valantis 354

Last 30 days Overall leaderboard