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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Is there a way to omit...
Power Apps
Answered

Is there a way to omit meeting rooms and service accounts from Office365Users.SearchUser()?

(0) ShareShare
ReportReport
Posted on by 359

Hello. I am using Office365Users.SearchUser() and wondering if there's any way to omit the meeting rooms and service accounts? Is this possible?

Thank you.

Categories:
  • Verified answer
    Ashwin7104 Profile Picture
    671 on at

    @Mgodby - Please use the below code to exclude meeting rooms

    Filter(Office365Users.SearchUser({searchTerm:TextInput2.Text}), AccountEnabled = true)

     

    To exclude service accounts, I would suggest to use 'Not' statement and find some naming differences between user and service accounts. For example, if all service accounts are prefixed with 'SA', then you can say 

    Not("#SA#" in DisplayName)

    Below link can help you.

     

    https://powerusers.microsoft.com/t5/Building-Power-Apps/Exclude-Guest-users-from-list-of-Office-365-Users/td-p/512454 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 396 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 323

#3
WarrenBelz Profile Picture

WarrenBelz 193 Most Valuable Professional

Last 30 days Overall leaderboard