Skip to main content
Community site session details

Community site session details

Session Id : wyKnpJrG6CnV0PrvucJ7ZJ
Power Automate - Building Flows
Unanswered

Azure AD - Get group members over 1000

Like (1) ShareShare
ReportReport
Posted on 26 Jul 2021 13:27:14 by 2

Hi,

 

I am building a flow where I am trying to retrieve the group members from Azure AD and create a Sharepoint list with all the new members by checking if the member exists in the list already or not. My flow works, however the issue is I can only maximum get 999 members (using the advanced options -> Top: 999). This group has well over 15000 members, and was wondering if there is any workaround to be able to look at all the members in the Azure AD group. Thanks!

  • fchopo Profile Picture
    7,972 Moderator on 26 Jul 2021 at 15:54:35
    Re: Azure AD - Get group members over 1000

    Hi @Vi1 

    Probably you need to use Graph API to query Azure AD: List members - Microsoft Graph v1.0 | Microsoft Docs

    If you still have problems with the threshold, you could split your query in some subqueries based on the displayname of the users:  A query like https://graph.microsoft.com/v1.0/groups/{id}/members?$count=true&$filter=startswith(displayName, 'a') for example.

    You could follow this article on how to use Graph API with Power Automate: Using Flow with Graph API - Lee Ford's Blog (lee-ford.co.uk) Although there's an inconvenience: HTTP connector is a premium one.

     

    Hope it helps!

    Ferran

  • Vi1 Profile Picture
    2 on 26 Jul 2021 at 15:39:51
    Re: Azure AD - Get group members over 1000

    @fchopo Yes, I have tried, but I get an error saying the maximum threshold is 5000.

  • fchopo Profile Picture
    7,972 Moderator on 26 Jul 2021 at 15:34:32
    Re: Azure AD - Get group members over 1000

    Hi @Vi1 

    Have you tried to enable pagination and set a threshold value to 15000, for example?

    flow-threshold.png

     

    An exact thread can be found here: Solved: Get more than 999 Azure AD group members - Power Platform Community (microsoft.com) 

    Hope it helps!

    Ferran

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!

Loading complete