cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Frequent Visitor

Office365Users.SearchUser filter results

Hello,

 

I've been tinkering with my own version of the "Org Browser" from scratch and its starting to look like something usable.

But how do I remove all the unwanted results from our Azure AD? I seem to be getting shared mailboxes, contacts and some admin users in my result. Is there a way to only show a specific set of company names or to display only the ones that have a company name set? 

 

 

I use a search field and populate a gallery with the "Office365Users.SearchUser" function.

 

 

Thanks in advance.

1 ACCEPTED SOLUTION

Accepted Solutions
Microsoft
Microsoft

That should be possible. For example, remove all the items with empth (blank) company names:

ComboBox1.Ittems=Filter(Office365Users.SearchUser({searchTerm:""}), IsBlank(CompanyName)=false)

 

Similarly you can match the company by a predefined or configured value (from a TextInput control for example)

View solution in original post

2 REPLIES 2
Microsoft
Microsoft

That should be possible. For example, remove all the items with empth (blank) company names:

ComboBox1.Ittems=Filter(Office365Users.SearchUser({searchTerm:""}), IsBlank(CompanyName)=false)

 

Similarly you can match the company by a predefined or configured value (from a TextInput control for example)

View solution in original post

That worked like a charm. I've been trying to wrap my head around the filter function for a while now Smiley Very Happy

Helpful resources

Announcements
News & Announcements

Community Blog

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

Power Apps Community Call

Power Apps Community Call- January

Check out the Power Apps Community Call for January 2021

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

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