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 / Problem with SearchUse...
Power Apps
Unanswered

Problem with SearchUser() function

(0) ShareShare
ReportReport
Posted on by 12

I'm having trouble with SearchUser() and SearchUserV2() functions.
If I use Office365Users.SearchUserV2().value, this returns an empty table.

Otherwise, if I use Office365Users.SearchUser(), this returns a table with no more than 100 rows.

The problem here is that I have a lot more than 100 users, but I can't find a way to get the info of the users that don't appear in the resulting table. I tried with SearchUserV2() but it doesn't work either.

How can I resolve this?

Thank you!

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    Hello Julieta

     

    What exactly do you want to search? Are u searching for user details like Phone Number, Location. Jobtitle and so on? Or dou you want to search for a specific user in a people picker field?

  • julieta_perroni Profile Picture
    12 on at

    Hello,

    I'm actually designing an organization chart, so I want to access to the name, email and job title of each user.

  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    So are u putting each name one by one into your app. Or are you having a gallery that you can filter per department you are having? Normally when you have a people picker field you also have all the information of that user.

    If you want to store it in a gallery for example, you just have to make the email and the job title visible.

     

    for example you click on the subtitle and there you change the code to the value u need so for example Job title or Email and so on

    mmbr1606_0-1701184298544.png

     

  • Verified answer
    Geeks_D Profile Picture
    1,169 on at

    The API can only return first 900 items 
    Use this in your gallery to get that 

    Office365Users.SearchUser({top:900})

  • julieta_perroni Profile Picture
    12 on at

    Thank you! That worked

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