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 Platform Community / Forums / Power Automate / Check If Current User ...
Power Automate
Unanswered

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!

 

Categories:
I have the same question (0)
  • Verified answer
    CFernandes Profile Picture
    8,402 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

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