Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

Query Active Directory

I loathe to hard code people's names into workflows, it just leads to heartache down the line.  How can I query active directory for the user account for a job title in Flow?  I'd really prefer to fire of an email from within a workflow to the Chief Executive Officer instead of coding Bill Lumbergh.

Flow Staff SameerCh
Flow Staff

Re: Query Active Directory

Not directly possible today.


But, if you are willing to go to the length of dabling around directly with APIs, you should be able to.  You need to call the following URL:$filter=jobTitle eq 'CEO'


You can write a custom API to do the job.  See here:


You may also be able to achieve this using the HTTP+Swagger action as well.  See here:


Of course, I havent tried either... just preaching here.  Let know if that works for you.  Would love to know what worked for you.

Helpful resources


Microsoft Business Applications Virtual Launch Event

Watch the event on demand for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.


Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 Release Wave 2 Plan

Power Platform 2019 Release Wave 2 Plan

Features releasing from October 2019 through March 2020.


Flow Community User Group Member Badge

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


Microsoft Learn

Learn how to build the business apps that you need.


Power Platform World Tour

Find out where you can attend!


Webinars & Video Gallery

Watch & learn from the Flow Community Video Gallery!

Users Online
Currently online: 249 members 5,624 guests
Recent signins:
Please welcome our newest community members: