cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Advocate III
Advocate III

Office365 search licensed user

When I try to use Office365.SearchUser on Powerapps, it return all users, including shared mailbox, external user, system account and resigned users.

 

Office365Users.SearchUser({searchTerm:Trim(TextInputSearchFilter.Text), top: 15})

 

 Would I know is that any ways to search normal user that have at least 1 O365 license? Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Advocate III
Advocate III

Re: Office365 search licensed user

I found that I can use filter to remove Disabled Account and External Account, but for system account and shared mailbox. I might hardcode to the list to remove those account.

Filter(Office365Users.SearchUser({searchTerm:Trim(TextInputSearchFilter.Text), top: 15}),AccountEnabled=true,Not(IsMatch(MailNickname,"#EXT#",MatchOptions.Contains)))

View solution in original post

1 REPLY 1
Highlighted
Advocate III
Advocate III

Re: Office365 search licensed user

I found that I can use filter to remove Disabled Account and External Account, but for system account and shared mailbox. I might hardcode to the list to remove those account.

Filter(Office365Users.SearchUser({searchTerm:Trim(TextInputSearchFilter.Text), top: 15}),AccountEnabled=true,Not(IsMatch(MailNickname,"#EXT#",MatchOptions.Contains)))

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Find your favorite faces from the community presenting at the Power Platform Community Conference!

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 (4,978)