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 / Graph API max results ...
Power Automate
Unanswered

Graph API max results in Flow

(0) ShareShare
ReportReport
Posted on by 340

Hey guys,

 

I am trying to retrieve all users in an organization but when that tenant has over 1000 users the Graph API needs more info.

 

By default its returning 100 results in each GET action. There is the $top action that can be set to 999 which from what I've read will return the maximum number of results for each GET action.

 

This was my initial GET request: 

 

https://graph.microsoft.com/v1.0/users?$filter=assignedLicenses/$count%20ne%200&$count=true&$select=displayName,mail,userType

 

 

I then tried to add the $top but it never returns a valid run. Things like

 

Parsing OData Select and Expand failed: Term 'displayName,mail,userType$top=999' is not valid in a $select or $expand expression.

 

 

In addition I am specifying some headers:

da1ve_0-1671142832487.png

The returned value: 

"@odata.count": 1389

 

Is there a better way to get more results or do I need to loop with all the "@odata.nextLink" values?

 

Thanks,
David

Categories:
I have the same question (0)
  • Verified answer
    v-xiaochen-msft Profile Picture
    on at

    Hi @da1ve ,

     

    You missed the '&' before '$top'.

    Hope it helps.

     

    Best Regards,

    Wearsky

  • da1ve Profile Picture
    340 on at

    So simple 🙂

     

    Thank you

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