Skip to main content
Community site session details

Community site session details

Session Id : SSnie+mRP2ldqBRAtkyB0K
Power Automate - Building Flows
Answered

Can you add other filters to 'Get Group Members' for AzureAD?

Like (0) ShareShare
ReportReport
Posted on 15 Jul 2022 17:29:24 by 30

Hi,

 

I'm trying to create a flow where one of the first steps is to get a list of users from an Azure AD group. I'm using 'Get Group Members' but the only input I can give it is the group id. The problem is I want to filter out groups from this list, I only want a list of AD users. 

 

Basically I have 2 AD groups that need to be synced, ie when someone gets added to AD Group 1 it will auto-add it to AD Group 2. I mean the flow works in that it will add the rights users to AD group 2 it's just the the flow reports that it "failed" b/c there are 2 entities in AD Group 1 that are groups and it is causing the subsequent "Check Group Membership (V2)" to "fail". 

 

Thanks

  • VictorIvanidze Profile Picture
    12,554 on 21 Jul 2022 at 07:28:11
    Re: Can you add other filters to 'Get Group Members' for AzureAD?

    Hi @id013, "Office 365 Groups" connector has the action that allows you to execute the GRAPH request. Non-premium. 

  • id013 Profile Picture
    30 on 20 Jul 2022 at 20:53:51
    Re: Can you add other filters to 'Get Group Members' for AzureAD?

    Sorry I should've mentioned that I can't use any premium requests.

  • id013 Profile Picture
    30 on 20 Jul 2022 at 20:53:17
    Re: Can you add other filters to 'Get Group Members' for AzureAD?

    This worked perfectly. Thanks so much.

  • Verified answer
    v-bofeng-msft Profile Picture
    on 20 Jul 2022 at 04:17:25
    Re: Can you add other filters to 'Get Group Members' for AzureAD?

    Hi @id013 ,

     

    Please try:

    vbofengmsft_0-1658290617896.png

     

    Best Regards,

    Bof

     

  • VictorIvanidze Profile Picture
    12,554 on 17 Jul 2022 at 14:09:38
    Re: Can you add other filters to 'Get Group Members' for AzureAD?

    Use a GRAPH request instead of "Get Group Members" action..

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
Tomac Profile Picture

Tomac 986 Moderator

#2
stampcoin Profile Picture

stampcoin 699 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 577 Super User 2025 Season 2

Loading complete