Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Query
Unanswered

Office 365 Users Search Users V2 very large Dataset (more than 1'000'000 entries) (retrieve and filter)

(0) ShareShare
ReportReport
Posted on by 10

Dear Power Apps Community,

 

[Power Automate / Flow]

I've got a big issue. I would like to get all the users from a department, aswell as all the users from the departments below the root department.

Since "Search Users V2" cannot search for department, I need all the users and the filter the results.

The issue is just that my company is very large (~1000k users) and I get from "Search Users V2" (pagination activated, 100k per page), 100899 users back. Now, what irritates me, is the very weird number... not 100k as I would have expected, but slightly more. Any ideas, what might be the issue here?

 

Also, "Search Users V2" does not allow querying, so I have to somehow process the huge response. "Apply each" does ofc not work, due to the 10k limit. I read on this forum that a filter array might be the solution but that does not even accept the dataset as input (I guess too large) Error message

The execution of template action 'Filter_array' failed: The evaluation of 'query' action 'where' expression '@contains(item()?['Department'], 'CR/')' failed: 'The template language function 'contains' expects its first argument 'collection' to be a dictionary (object), an array or a string. The provided value is of type 'Null'.'.

The input is the very large JSON-object/"value" of "Search Users V2".

DanielMeyhoefer_0-1667230840137.png

 

I am at my wit's end... Thank you in advance already for your efforts and support!

  • DanielMeyhoefer Profile Picture
    10 on at
    Re: Office 365 Users Search Users V2 very large Dataset (more than 1'000'000 entries) (retrieve and filter)

    P.S.

    It seems like I accidentally posted this question in the wrong topic, I think it should be better in "Building Power Apps"... Sorry 😞

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 the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Leaderboard > Power Apps - Power Query

#1
mmbr1606 Profile Picture

mmbr1606 9 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 7

#3
SD-13050734-0 Profile Picture

SD-13050734-0 6

Overall leaderboard

Featured topics