web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Search user by Departm...
Power Apps
Unanswered

Search user by Department field

(0) ShareShare
ReportReport
Posted on by 158

Type Department in Text input.
Gallery show the user which belong this Department.

 

--------------------Items in Gallery--------------------

Sort(
Filter(
Office365User.SearchUserV2(
{
searchTerm: SearchBox.Text.
top:20
}
).value,
!IsBlank(CompanyName)
),
MailNickname,
Ascending
)

--------------------Try another formula SearchUserV2 but no results--------------------

Filter(

   Office365Users.SearchUser(

      {searchTerm:SearchBox.Text}

   ),SearchBox.Text in Department

)

------------------------------------------------------------

 

 

As I known, Office365User is unavailable to search Department field.

So I'm wondering Is there any way to use standard connector and delegable function to build feature above?

 

Any help will be appreciated! Thank you!

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at
  • LinTse Profile Picture
    158 on at

    Hi, @SudeepGhatakNZ ,

    Thank you for your quick replied!

    I try the solution which you shared.

    And try the all formula but can't work with Department field.

    Even the simplest one:

    Filter(Office365Users.SearchUser({searchTerm:SearchBox.Text}),SearchBox.Text in Department)

     

    Is there have another connector to search Department and list Users?

    Thank you so much!

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    That could be because Office365Users.SearchUser({searchTerm:SearchBox.Text}) is only returning the first 1000 records and the department you are filtering on might not include all employees.

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 549 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 225 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 224

Last 30 days Overall leaderboard