Announcements
Clear(colAllUsers); ForAll( Sequence(5), Collect( colAllUsers, Filter( Office365Users.SearchUserV2( { IsSearchTermRequired: false, top: 999, skip: (Value - 1) * 999 } ).value, Department = "Global Operations" && AccountEnabled && !("#EXT#" in UserPrincipalName) ) ) );
Hi, What you’re experiencing is not an issue with your filter logic — it’s a limitation of the Office365Users connector. Even though you are using. top: 999
Office365Users.SearchUser() and SearchUserV2() do not return all users in the tenant. These functions are internally paginated and typically only return the first batch of users (often sorted alphabetically by DisplayName).
Office365Users.SearchUser()
SearchUserV2()
That’s why your collection appears to stop around users whose names start with “I”. The user starting with “R” simply isn’t included in the first returned page from Azure AD. Why This Happens - The Office365Users connector has internal paging limits. Solutions
Create a Power Automate flow:
Use Azure AD – List users
Apply OData filter ( department eq 'Global Operations' and accountEnabled eq true )
Return the results to PowerApps.
This avoids pagination limits and is the most scalable solution.
If it still does not work Pelase Debug Confirmation
To confirm that pagination is the issue, try: If it returns a fixed number (often 100), that confirms backend paging.
CountRows( Office365Users.SearchUserV2({ isSearchTermRequired:false, top:999 }).value )
24/7 Power Platform Support - Click Here Best regards, Pankaj Jangid (OyePanky) Power Platform Developer YouTube: https://www.youtube.com/@oyepanky Website: https://www.dialforit.com
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.
Jump in, show your community spirit, and win prizes!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Valantis 424
WarrenBelz 355 Most Valuable Professional
11manish 290