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 / Filter a list of AAD U...
Power Apps
Unanswered

Filter a list of AAD Users by User's Department using AAD Users Virtual Table

(1) ShareShare
ReportReport
Posted on by

Hey there,

I am trying to create a filterable phone book for our company using Power Apps. For this, I am using the AAD Users Virtual Table that is provided as connector in Power Apps. I created a table showing the name, email, location and phone of all AAD users. Also, one column is showing the department a user is working at.

 

Since the AAD Users Virtual Table is not giving me the department value, I tried to get the Department Value of a user via the "Office 365 Users"-connector which is available in power apps. This is working so far.
Unfortunately, I am not able to filter this column by a search string input - I already tried the following formula to achieve this:

 

Filter('AAD Users'; AbteilungInput.Text in 'Office365Users'.UserProfileV2(Mail).department)

 

where AbteilungInput is the input text field where users can provide the name of the department they want to filter for.

Unfortunately, this is loading veeery slow since this solution first retrieves all users (we currently have >1000 users in our AD) and then looks up the department for each user using the Office365 Users connector. The problem is that even the Azure AD connector does not seem to provide the department of a user.

 

Is there any way to list all users and their departments and filter for the user department efficiently?

I have the same question (0)

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