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 / Office 365 Users Searc...
Power Apps
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!

Categories:
I have the same question (0)
  • DanielMeyhoefer Profile Picture
    10 on at

    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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard