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

Notifications

Announcements

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:
I have the same question (0)
  • 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
    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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard