cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Microsoft
Microsoft

Re: Office365Users.SearchUser filter results

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
Highlighted
Microsoft
Microsoft

Re: Office365Users.SearchUser filter results

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

Highlighted
Frequent Visitor

Re: Office365Users.SearchUser filter results

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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Watch Now

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

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