Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

PowerApps office 365 search is not working for departments and job title


We have created a PowerApps for our staff directory, added office 365 data connection on it.

When we searching user by name, it is showing correct result.

But when we tried to search by User department or job title ex: Accounting/HR. It is showing no results.

We are using below mentioned formula in our gallery.

Filter(Office365Users.SearchUser({searchTerm:TextInputEmp.Text}),!(IsBlank(Department)) && "companyname" in Lower(Mail))

I am not sure, why search is not working for department and job title. Please let me know if I need to make changes in my formula?

Any help is much appreciated.





Thank you so much. It worked perfectly!

I really appreciate all your help.



@RandyHayes ,


I tried a slightly mofified version of this with just the department and JobTitle hard coded in lables for the purpose of my test, and I am getting no return even though I know that a sinlge entry exists. in the AAD. Can you help me understand where I went wrong here? 


Filter(Office365Users.SearchUser(),DeptNumber.Text in Department||MngrTitle.Text in JobTitle) 

Helpful resources

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.


Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (7,145)