Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Microsoft Dataverse
Unanswered

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

(1) ShareShare
ReportReport
Posted on by 2

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?

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Microsoft Dataverse

#1
mmbr1606 Profile Picture

mmbr1606 22 Super User 2025 Season 1

#2
stampcoin Profile Picture

stampcoin 17

#3
ankit_singhal Profile Picture

ankit_singhal 11 Super User 2025 Season 1

Overall leaderboard

Featured topics