web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Bring Managers profile...
Power Apps
Unanswered

Bring Managers profile image through

(0) ShareShare
ReportReport
Posted on by 179

I want to have a picture of the current logged in users manager on a screen but can't work out how to do it.

 

I can bring through the managers name etc but not their image

Office365Users.ManagerV2(User().Email)

 

Any help appreciated

Categories:
I have the same question (0)
  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @ChrisUndery, You will need to use the UserPhotoVe method, try this:

    If(
     IsBlank(Office365Users.UserPhotoV2(User().Email)),
     DefaultImage,
     Office365Users.UserPhotoV2(User().Email)
    )

     

    If my reply helped you, please give a 👍  , & if it solved your issue, please give a 👍 & Accept it as the Solution to help other community members find it more.

    I am primarily available on weekdays from 6-10 PM CT and 5-10 PM CT on weekends.

    Visit my Blog: www.powerplatformplace.com

    Visit my YouTube Channel: https://www.youtube.com/@powerplatformplace/videos

     

  • ChrisUndery Profile Picture
    179 on at

    Hi @AhmedSalih. Unfortunately that brings up an error with the If function. It says that DefaultImage is not recognised.

    Looking at the code, how will that bring through the managers image as there is no mention of the manager in the code 

  • AhmedSalih Profile Picture
    6,678 Moderator on at

    @ChrisUndery , ahh, sorry I thought you needed logged in user profile photo. 

    With({Manager: Office365Users.ManagerV2(User().Email},
    If(
     IsBlank(Office365Users.UserPhotoV2(Manager.Id),
     SampleImage,//If manager has no photo,show sampleImage (you can change this with any image)
     Office365Users.UserPhotoV2(Manager.Id)
    ))
  • ChrisUndery Profile Picture
    179 on at

    Hi @AhmedSalih, that come sup with a couple of errors

    ChrisUndery_0-1683025422701.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard