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 / Employee Directory - O...
Power Apps
Unanswered

Employee Directory - Office365Users Connection

(0) ShareShare
ReportReport
Posted on by 49

We have an Employee Directory using Office 365 Users connection and looking for way to filter out users in the directory by some attribute. Currently using JobTitle and Department but can no longer use these attributes. Cannot find another method other than picking from other attributes that I can get the values for like below:

City
CompanyName
Country
Department
DisplayName
GivenName
Id
JobTitle
Mail
MailNickname-Could this be a field we could use?
Mobilephone
OfficeLocation
PostalCode
Surname
TelephoneNumber
UserPrincipalName
Account Enabled
BusinessPhones

 

 

We were thinking of using 'Country' and filling Country = "ABC" and filtering on that but there must be another way!

 

Categories:
I have the same question (0)
  • CU05111601-0 Profile Picture
    1,091 Super User 2024 Season 2 on at

    @serviceflow2  I am just wondering, why can't you use JobTitle and Department anymore to filter?

  • serviceflow2 Profile Picture
    49 on at

    @Tjan We have this tied to a third party app and has to be filled for every user so can no longer use this.

    We simply need either a custom attribute that ties to AD and Azure AD that we can filter on. Issue has been there are limited attributes available to filter on for Office365Users.SearchUser. Need another method to filter on we can control from AD and Azure AD.

  • Akshansh-Sharma Profile Picture
    285 Moderator on at

    Hi @serviceflow2 ,

     

    Can you please explain a little bit more what's the purpose of filtering the office directory?

     

    I am asking this because your search user will show you options which are matching your search criteria anyway using this code 

    Office365users.searchuser({searchtext: self.searchtext})

     

    If you put this on the items property of your combombox it will give you results based on what 

     

    ---------------------------------------------------------------------------------------------------------------------------

     

    Please click Accept as solution if my post helped you solve your issue. If the content was useful in other ways, please consider giving it Thumbs Up 😉

     

    LinkedIn- https://www.linkedin.com/in/akshansharma/

  • serviceflow2 Profile Picture
    49 on at

    @Akshansh-Sharma

    Sure thing, we have a gallery of users pulling in from Office365 Users where department is filled in AD. We want to filter out some users from the gallery. We have dropdown1 to filter by department and textinput1 to search for users by DisplayName as well. Need method to filter users out of the directory based on some attribute that we can get from Office365Users. Ie. Some OOTB property. Unless you know of a different way...We want to touch the user account limited times and have limited maintenance on this as you could imagine so using Office365Usrers as data source. We have put in place using the Country/Region property in AD.

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