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 / Show the supervisor fo...
Power Apps
Answered

Show the supervisor for the respective user - Office365-Users-Connector

(0) ShareShare
ReportReport
Posted on by 775

Hello all,


I want to display in my app, the supervisor of the user who is logged in.

To display "himself", User().DisplayName is enough.

 

But now I want to display the corresponding supervisor. How can I do that? With the "ManagerV2()" option? If so how?

 

Or maybe something like this: 'Office365-Users'.MyProfile().ManagerName

 

But this does not work. Is there any other method?

 

Thank you in advance!

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

    Hello,

     

    You can leverage

    Office365Users.Manager(Office365Users.MyProfile().Id).DisplayName

    to get the manager display name of the currrent user.

     

    Best regards,

    Alaa

  • PowerSäm Profile Picture
    775 on at

    Thanks for your quick reply @alaabitar . It works great. You are a genius!

     

    One last question, do you know if this can be also the default of a ComboBox?

    That means, its possible to pick the manager in a user list, but I want the manager to be already in the combo box as default when the form is shown, is that possible?

    Your formula simply write under "Default" in the ComboBox does not work. Do you know if there is another method? (See image below)

     

    Default Option:

    PowerSm_0-1651229366158.png

     

     

    Thank you in advance!

  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Hey,

     

    You are welcome 🙂

    Yes sure let's say your dropdown is called ComboBox1 you should put the items property to

    Office365Users.SearchUser({searchTerm:ComboBox1.SearchText}) and the default property to Office365Users.Manager(Office365Users.MyProfile().Id) and the SelectMultiple to false.

     

    Best regards,

    Alaa

  • PowerSäm Profile Picture
    775 on at

    Thanks for your reply, @alaabitar.

     

    It doesn't show an error message, but the combo box stays empty. (See pic1 below).

     

    PowerSm_1-1651234670269.png

     

    I have to specify somehow what to display, and when I specify .DisplayName it doesn't accept it. Is says: Record value expected. Why? (See Pic2 below)

     

    PowerSm_2-1651234871992.png

     

    Is it maybe because it is not a dropdown but a combo box?

    I am getting desperate... maybe you know why or another way.

     

    Thanks so much in advance!

  • alaabitar Profile Picture
    1,503 Super User 2024 Season 1 on at

    Have you set the items property to Office365Users.SearchUser({searchTerm:ComboBox1.SearchText}) ?

    Also you can specify witch property to display in the right pane

    alaabitar_0-1651237774228.png

     

    Best regards,

    Alaa

  • Verified answer
    PowerSäm Profile Picture
    775 on at

    I thank you so much for your reply, @alaabitar . It almost fit. The problem was that the default property should be specified as a table with "[ ]". In the end it looked like this:

    ['Office365-Benutzer'.ManagerV2('Office365-Benutzer'.MyProfileV2().id).displayName]

     

    Also, for ComboBoxes I should not use the normal "Default" property, but the "DefaultSelectedItems" property.

    PowerSm_0-1652085839355.png

     

    This finally solved the problem. Thank you again!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard