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
Answered

Office365Users.SearchUser() returns blank but the person does exist in the organization

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a text box named "name4" that stores the name of a person in my organization, and in another Gallery Item, I put the Items property as, Office365Users.SearchUser({searchTerm:name4.Text}) in order to lookup at person. The Items function did not find any data regarding the input name, but that person does exist in my organization. That formula works for everyone else except one person, and I am wondering what has caused that problem.

 

Thank you!

Categories:
  • Verified answer
    eka24 Profile Picture
    20,925 on at

    Are you saying the Office365Users.SearchUser({searchTerm:name4.Text})  works for some but not others?. How many users do you have

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I figured out that my text box has an extra space at the end of their names, therefore the system didn't recognize the User at all. I removed it, and it works, thank you!!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard