web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Office 365 user search...
Power Apps
Unanswered

Office 365 user search and filter out unlicensed users

(0) ShareShare
ReportReport
Posted on by 35

I have an employee directory search app that I have built and everything works great, except it is pulling in too many users. We have some unlicensed users that have been converted to shared mailboxes with their account enabled, so they still show up in the list because I am filtering by AcccountEnabled = true. Is there a creative way we could filter out unlicensed users?

It looks like the searchuser function only has a limited amount of output options from this site here.

 

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/connections/connection-office365-users#searchuser

 

Categories:
I have the same question (0)
  • Expiscornovus Profile Picture
    33,189 Most Valuable Professional on at

    Hi @PowerEmployee7,

     

    A workaround could be to use one of the other fields and set the value of that as unlicensed. You could for example set the department field to unlicensed.

     

    This way you can filter on that to exclude the accounts which have a department set as unlicensed. It is not a great solution, but it could work 

     

    unlicensed.png

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard