cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
jkmc
Level: Powered On

Filter Office 365 users by CompanyName and OfficeLocation

Hi,

 

how can I filter office 365 users by OfficeLocation?, just show this value.

 

 

 show only users with values of "OfficeLocation" and add filters by name and Company Name

This is for all users: 

SortByColumns(UsuariosdeOffice365.SearchUser({searchTerm:TextSearch.Text});"DisplayName"; Ascending)  

 

Try with

SortByColumns(UsuariosdeOffice365.SearchUser({searchTerm:TextSearch.Text});"DisplayName"; Ascending)  && Filter(UsuariosdeOffice365.UserProfile().OfficeLocation; True)  &&  Filter(UsuariosdeOffice365.SearchUser({searchTerm: Dropdown.Selected});"CompanyName")


with errors.

 

Thanks.

 

COMPANY2.png

 

 

 

 

 

 

1 REPLY 1
v-zhta-msft
Level 8

Re: Filter Office 365 users by CompanyName and OfficeLocation

Hi @jkmc,

 

Would you please share me the formula in the drop down controller?

 

Because I can’t find the “companyName” field in my AAD and the value of the “companyName” in PowerApps is blank.

 

The “companyName” is a read-only property within user’s profile, please check the following article for more details:

 

https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/resources/user

 

Regards,

Zheng

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (6,164)