Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Suggested answer

people picker Office365Users

(1) ShareShare
ReportReport
Posted on by 36
Hello,
 
Can anyone tell me how to retrieve the user-info of any user (not the current user),  from Office365Users,  based on typed text or TextInput or Combobox or Dropdown? 
 
Basically I would need a people picker from Office365Users.


I tried: 
Office365Users.SearchUser({searchTerm: ComboBox.SelectedItems})
 
it gives error:
"This rule creates a circular reference between properties, which is not allowed..."


 
Thanks in advance!
  • Suggested answer
    HarminderSethi Profile Picture
    6 on at
    people picker Office365Users
    If you want to create Combobox as people picker then instead of using ComboBox.SelectedItems you should use ComboBox.SearchText because data type of 'ComboBox.SelectedItems' is Table whereas  searchTerm takes 'Text' data type so use ComboBox.SearchText
     
    Office365Users.SearchUser({searchTerm: ComboBox.SearchText})

    And if you already have Combobox as people picker working (and only one selection is allowed) and you want to get specific property of selected user in the ComboBox then you can use something like

    First(ComboBox.SelectedItems).Mail
     
    but if you still have requirement to search the user again then you can do like below
     
    Office365Users.SearchUser({searchTerm:First(ComboBox.SelectedItems).Mail})
     
    which will take first item from the selected items from Combobox and use Mail property of item to search the user.
  • enriqueglopez Profile Picture
    484 Super User 2025 Season 1 on at
    people picker Office365Users
    CU19090705-0 That columns works exactly as you want, it's basically a People Picker that is already developed.
     
    The People column reads from Azure AD, as Office365Users do.

    By the way, if you need to specifically use that connector, follow this tutorial:
     

    Also, you could try this in your formula:

    Office365Users.SearchUser({searchTerm: Self.SelectedItems})
     
    My recommendation is to use the SharePoint column, you will need less time to make it work.
  • CU19090705-0 Profile Picture
    36 on at
    people picker Office365Users
     Hi enriqueglopez, I need to pickup users from Office365Users, not from SharePoint.  

    The company's Office365Users, has hundreds of users, and it maintained, and is the one that makes sense to use.

    so I just need the right syntax to retrieve the user's info from 
    Office365Users via App.
  • Suggested answer
    enriqueglopez Profile Picture
    484 Super User 2025 Season 1 on at
    people picker Office365Users
    Here is a trick that I usually do in my apps.
     
    First, create a 'Person' type column in your data origin (for example, SharePoint). If you are not using a list in your app, you can create a list/column just for this behaviour.
     
    Then, use this in the Items property of your Combobox. 
     
    Choices([@YOUR_LIST].PersonColumn)
     
    You take advantage of the Combobox's own search functionality. I also edit the Fields property and the SearchFields to ["DisplayName"]. You must allow searching.
     
     
    If my reply helped, please mark it as solution
     
     
    Have a nice day
     
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,660 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard