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 / All users with chosen ...
Power Apps
Answered

All users with chosen manager

(1) ShareShare
ReportReport
Posted on by 19

Hello all,

Hope you can help me whith this.

 

I'm building an application where I need to choose a manager to see all user accounts having that manager.

From searching I found the linked subject. However that depends on the logged in user. I need it to depend on the manager.

 

Solved: Get all users with same manager info - Power Platform Community (microsoft.com)

 

I want to be able to choose a manager in a dropdown (already setup and working) and have all her/his employees popup in a gallery.

 

Categories:
I have the same question (0)
  • Rusk Profile Picture
    1,369 Super User 2024 Season 1 on at

    How does this look in your data source?  Do you have a column for "Manager" and then another column for "Employee"?

     

    If that's the case, your Items property in the Gallery would look something like this:

    Filter(MyData, Manager = Dropdown1.Selected.Value)

     

    But I can't provide a better example without know more about how your data is structured

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Hey @PeterMattsson 

     

    You can use the Office365Users connector to get the direct reports for a specific user (direct reports being anyone who has that person listed as their manager in Azure Active Directory)

     

    Cheers,

    Sancho

  • PeterMattsson Profile Picture
    19 on at

    Thanks Rusk,

     

    I get the managers from a Microsoft 365 group as shown below.


    Sort(Office365Groups.ListGroupMembers("<ObjectID>").value,displayName)

     

    My data sources are:

    • Office 365 Groups Connector
    • Office 365 Users Connector

    Also I already got the managers.

     

    By selecting a manager in my drop down I'd like to populate the gallery with his or her employees.

  • PeterMattsson Profile Picture
    19 on at

    Thank you Sancho,

    I'm all new to direct reports. Do you have any suggestions on how to do this?

  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Sure, happy to suggest how I'd do it:

     

    Make the Items property of your gallery something like this (adjust for your dropdown name):

     

    If(
     Len(ManagerDropdownName.Selected.mail)>0,
     Office365User.GetDirectReports(ManagerDropdownName.Selected.mail)
    )

     

     

  • PeterMattsson Profile Picture
    19 on at

    Thank you so much!

    Your suggested solution works perfectly.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard