With the latest PowerApps update we can do more customization to achieve more use-cases. Especially with the new "Rule" feature in PowerApps(which keeps remembers me of InfoPath form 😏)



But, Then I was looking for People picker control in this latest PowerApps update. cant find any straight forward control thought. But now saw a connector called "Office365Users" then I started exploring it.

How to create People picker control in PowerApps

Update 1. Add "Office365Users" data source to the app.

2. Insert a "Combobox" from the ribbon.

3. Select "Combobox" and select 'Items' in the formula bar then enter below formula

Office365Users . SearchUser ({searchTerm : ComboBox1. Text }) 4. Then, select "Fields" from the property pane and choose "Primary text" a.k.a "Display Names" and "Search Fields".

5. Play the app and test it.



The below steps applies mostly in the early stages/release of PowerApps now that its matured enough, so follow the updated steps instead.

There are a couple of controls and ways to create People Picker control

Using Input box & ListBox On-demand/Autocomplete users (With rules)

Prepopulated users (Without rules) Using ComboBox control on-demand/Autocomplete users

Prepopulated users App Setup First, Add "Office365Users" data source to the app Second, design the app with Input box, ListBox, ComboBox controls





Using Input box & ListBox control

Prepopulated [without rule]:

This is NOT RECOMMENDED as this will prepopulate users, when user base is huge it will certainly degrade the app performance.





Select list box -> formula bar







Office365Users . SearchUser ({searchTerm : txtSearchUser. Text }). UserPrincipalName









On demand [With rules]:

This will query user as we type in textbox, follow the below step and add this formula







If ( Rule3 , Office365Users . SearchUser ({searchTerm : txtSearchUser. Text }). UserPrincipalName









Using ComboBox control

Prepopulated [without rule]: This is NOT RECOMMENDED as this will prepopulate users, when user base is huge it will certainly degrade the app performance.







Office365Users . SearchUser ({searchTerm : ddlDetailedPeoplePicker. SearchText })













On demand [With rules]:

This will query user as we type in combobox, follow the below step and add this formula







If ( Rule2 , Office365Users . SearchUser ({searchTerm : ddlPeoplePicker. SearchText }))













Now, Select "Display fields":





Then finally select "Search Fields":





Run the app







