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 / List of users who are ...
Power Apps
Answered

List of users who are manager

(0) ShareShare
ReportReport
Posted on by 1,032

Hello everybody,

I am developing a canvas application and I need to retrieve the list of users who are managers from Azure Ad.

How can I do this? 
THANKS

Categories:
  • Verified answer
    CU-18081211-6 Profile Picture
    9,272 Moderator on at

    @gikido ,

    Office365Users connector is more appropriate for you in achieving your goal. Use this:

    Filter(
     AddColumns(
     Filter(
     Office365Users.SearchUser(
     {
     searchTerm: "",
     top: 999
     }
     ),
     AccountEnabled
     ),
     "IsManager",
     !IsEmpty(Office365Users.DirectReportsV2(ThisRecord.UserPrincipalName).value)
     ),
     IsManager
    )

    The formula has a small inconvenient, it might take some time on large organizations (with a many Entra AD users) because for each Enable account user a new call is made to check for DirectReports. 

     

    Hope it helps ! 

     

  • gikido Profile Picture
    1,032 on at

    @gabibalabanThank you for your reply , it works !

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard