Skip to main content
Community site session details

Community site session details

Session Id : nmOCTcRtGxxoASPju64pOt
Power Automate - Building Flows
Answered

Check If Current User in SharePoint Group

Like (0) ShareShare
ReportReport
Posted on 28 May 2023 17:49:44 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!

 

  • mason007 Profile Picture
    31 on 30 May 2023 at 23:51:45
    Re: Check If Current User in SharePoint Group

    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

     

  • mason007 Profile Picture
    31 on 30 May 2023 at 19:55:32
    Re: Check If Current User in SharePoint Group

    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 30 May 2023 at 16:15:14
    Re: Check If Current User in SharePoint Group

    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 28 May 2023 at 18:29:38
    Re: Check If Current User in SharePoint Group

    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 28 May 2023 at 18:15:06
    Re: Check If Current User in SharePoint Group

    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

  • Verified answer
    CFernandes Profile Picture
    8,295 Most Valuable Professional on 28 May 2023 at 18:04:04
    Re: Check If Current User in SharePoint Group

    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.

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

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!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete