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 / 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,074

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 606

Last 30 days Overall leaderboard