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 - Will collections work

(0) ShareShare
ReportReport
Posted on by 195

Hi,

 

I am populating a dropdown in Powerapps with JobTitle Assistant Director. I have around 2300 users. I am able to successfully retrieve some users whose JobTitle is Assistant Director from the top:999 by using the below query.

 

Filter(Office365Users.SearchUser({searchTerm:"", top:999}), JobTitle = "Assistant Director").DisplayName

 

I updated the delegetable settings to 2000, still it queries only 999. Once i update the top to 2000 or 1000, it throws 404 error

 

Any workaround would be helpful

Categories:
  • yashag2255 Profile Picture
    24,769 Super User 2024 Season 1 on at

    Hey @Kumar9024021 

     

    Can you try to update the query to:

    Filter(Office365Users.SearchUser(), JobTitle = "Assistant Director").DisplayName

    This will look in all the records while Top:999 was restricting the first 999 records from the Office365 connection. You can remove searchTerm if that is not required.

     

    Hope this Helps!

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

  • Kumar9024021 Profile Picture
    195 on at

    Hi @yashag2255 ,

     

    Yes. I already tried the below query. I am empty results always.

    Hence , I updated the query to include top:999, it is atleast querying the 999 records and returning results.

     

    Hence planned to move to collection, assuming delegation is an issue here. Also updated the delegation settings count to 2000 but its still the case.

  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Kumar9024021 ,

    The reason why you met this problem is that 999 is  Office365Users.SearchUser  function's limit, not delegation problem.

    Changing delegateable limit is useless.

    The 999 is the maximum value of user records retrieved from Office365Users.SearchUser() function at once. The user @JonFrost has faced same issue with you, please check the response from Microsoft Employee @

     

     

     

     

  • Kumar9024021 Profile Picture
    195 on at

    The 1st link i get access denied

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 350 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 318

#3
Mohsin Ali Profile Picture

Mohsin Ali 220

Last 30 days Overall leaderboard