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 / How to get UserPrincip...
Power Apps
Unanswered

How to get UserPrincipalName from DisplayName

(0) ShareShare
ReportReport
Posted on by 26

Hi, All ,

Now I have a search box , the search box can search the user email,

but i would like to use search by Display Name 

 

 combo box:Filter(Office365Users.SearchUser({searchTerm:cmbUser.SearchText}),AccountEnabled = true)

button:Test1.Run(cmbUser.Selected.UserPrincipalName)

 

And i have try 

Filter(Office365Users.SearchUser({searchTerm:cmbUser.SearchText}),AccountEnabled = true).DisplayName

 

Although the username can be displayed but cannot pass to Teams Approve  and Cannot display all staff

 

PowerApps.png

Categories:
I have the same question (0)
  • zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    a10.png

  • petercheunghRD Profile Picture
    26 on at

    Thank you , but now the user list not all staff , and how to hide the meeting room 

  • Verified answer
    turnerj3 Profile Picture
    2,039 on at

    You could add some more logical tests after AccountEnabled = true, JobTitle = "Supervisor", OfficeLocation <> "Meeting room"

  • petercheunghRD Profile Picture
    26 on at

    Thank you  ,but the user name only list to A-J , how can display All?

  • turnerj3 Profile Picture
    2,039 on at

    There is a 999 user limit for the SearchUser

  • petercheunghRD Profile Picture
    26 on at

    Thank you both,  i enable Allow Searching ,  can type the name to search

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 793 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 333 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard