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 / How to filter current ...
Power Automate
Unanswered

How to filter current user from the Azure AD group

(0) ShareShare
ReportReport
Posted on by 202

Hi Everyone,

I need to create a flow to send an approval request to everyone in the group except the current user.

The flow needs to be triggered from the canvas app. The current user should be filtered from the group and the rest of the members will receive the approval request.

How to achieve this flow?

 

Thanks in advance

Regards,

Mahmood

Categories:
I have the same question (0)
  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @mahmoodhsaud 

     

    You could use the list group members and append to a string variable whilst excluding the current user.  You could also use a string replace function to remove the current user.

     

    Screenshot_20210710-001946_Chrome.jpg

    There is also the below for AAD groups.

     

    1.png

  • mahmoodhsaud Profile Picture
    202 on at

    Hi @eric-cheng, Thanks for your inputs

    I wanted to get all the mail ID expect the current users. But if we are using variable is it possible to retrieve all users

  • Verified answer
    eric-cheng Profile Picture
    5,171 on at

    Hi @mahmoodhsaud ,

     

    The above example will return all members but you should be able to parse the returned JSON and exclude the current user.

     

    ericcheng_0-1626257948200.png

     

    The connector uses Graph API but there is no ability to filter.  If you want a more elegant solution, you can call the Graph API yourself which will allow more granular control.  You can read more here.

    ericcheng_1-1626258029864.png

    --------------------------------------------------------------------------
    If I have answered your question, please mark my post as a solution
    If you have found my response helpful, please give it a thumbs up

     

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 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard