cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
ghord
Level: Power Up

Search for Users by Department

I simply want to search for users that belong to a specific department.  I feel like I'm missing something simple.  Is this possible?

 

Thanks!

1 REPLY 1
Dual Super User
Dual Super User

Re: Search for Users by Department

There is no easy way to retrieve users based on the department listed in their profile.  Two possible workarounds

  1. If you don't have a large number of total users you can just search for users with a blank search query and then filter the results on the client using a Filter Array based on the department value returned.
  2. If the department has a specific manager you could use the Get direct reports for that manager and get all the users in the department.


-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (3,918)