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 / Filter People Picker b...
Power Apps
Unanswered

Filter People Picker by Department

(0) ShareShare
ReportReport
Posted on by

I have a screen that has a people picker field. I would like the user to start typing the name of a user and then user the Office365Users data to search for the entered text, but filter the results for folks in a specific department. For example, Julie may be a user in the company, but I would like the list to filter all the Julie's in a specific department. 

I am currently using this logic on the people picker's Items property. Although it searches and shows the correct available matches, if I am changing a record, it will not assign the new value or if I am entering a new record, it will not write the selected value to the SharePoint list people column.

Filter(Office365Users.SearchUser({searchTerm:violation_IssuedBy.SearchText,top:3}),Department="department name here")

Categories:
I have the same question (0)
  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @AnnetteM ,

    Do you want to update the SharePoint person column with data from Office365Users.SearchUser?
    Their data structures are different, so you should override the update property.
    vdezhilimsft_0-1668674202715.png
    vdezhilimsft_1-1668674202716.png

    Best Regards,

    Dezhi

  • AnnetteM Profile Picture
    on at

    Thanks for the update. Your solution works! I do have a follow-up question, however. I show a save button on the form that is visible if the forms.unsaved value is true. The minute I made the items property of the choice field a filter of the Office365 users to list only folks in a department, the form.unsaved property changed to true -- making it appear like all of the records shown in the form are unsaved. Is there a way to get around this?

  • v-dezhili-msft Profile Picture
    Microsoft Employee on at

    Hi @AnnetteM ,

    We really understand that you have more than one issue need to be solved today and we are surely happy to help you with those, but to better focus on the new problem and ensure the service quality, we would advise you to create another ticket on the issue. It can also help us to get the case better recorded and let Microsoft know what you have been through clearly. Thank you so much for your understanding. 

    Best Regards,

    Dezhi

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 310 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 228

Last 30 days Overall leaderboard