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 / people picker Office36...
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!
Categories:
I have the same question (0)
  • Suggested answer
    enriqueglopez Profile Picture
    503 Moderator on at
    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
     
     
  • CU19090705-0 Profile Picture
    36 on at
     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.
  • enriqueglopez Profile Picture
    503 Moderator on at
    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.
  • Suggested answer
    HarminderSethi Profile Picture
    6 on at
    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.

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard