web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office365Users SearchU...
Power Apps
Unanswered

Office365Users SearchUser-function: How to skip users? (999 users limit)

(0) ShareShare
ReportReport
Posted on by

I want to load all Office365Users (more than 3000 Users) into a collection. The Problem is that the searchUser-function only returns the first 999 users. I had an idea to use the searchUser-function several times to load the first 999 users into the collection and then loading the next 999 users, skipping the first 999 users and so on. But I haven't figured out how to skip users? And if that isn't possible do you have an idea how to load all users into a collection?

Categories:
  • DJ_Jamba Profile Picture
    2,837 Moderator on at

    Hi @julia321 
    If you do this via the graph api using the Office365 groups connector, it gives you a skip token called @odata.NextLink.

    You can use a Do Until and get 999 users at a time until @odata.NextLink is empty.
    You can experiment first by:

    - Signing in to Graph Explorer

    - Executing the following endpoint/query

    https://graph.microsoft.com/v1.0/users?$top=999

    DJ_Jamba_0-1711150604215.png

    In the results you will see the skip endpoint and it will look something like this:

    DJ_Jamba_2-1711150871089.png

     

    If you copy that and paste it back into the query box and run it - you will get the next 999 users

    You can do all of this automatically in a flow

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard