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 / Displaying User Photo ...
Power Apps
Unanswered

Displaying User Photo in Org Browser

(0) ShareShare
ReportReport
Posted on by 7

Trying to display the users profile photo that is searched for in Org Browser. Displays everything fine, manager, job title, email address, but will not display their photo.

 

Looked at the O365 Users connector site, along with Get user_photo_(V2). Tried several functions but nothing seems to work.

 

What should the function should look like to display the searched for employee’s profile photo? 

 

Thanks

Categories:
I have the same question (0)
  • jeffw Profile Picture
    7 on at

    More Information: Using Office365Users.UserPhoto(ThisItem.Id) as syntax. Getting error on "ThisItem.Id", says "invalid name". It doesn't recognize ThisItem.Id. I am new to PowerApps, does this have to be declared somewhere to work? Am I missing a PowerApp update?

     

    Office365 connection works fine, can see information about employee that is searched for in Org Browser app. Only problem is when I add an image with the above syntax to see their profile photo (which does exist). 

     

    Thank you

  • Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    Are you doing this on the GallerySearchUser and did you add an image control to the card? I just tried your code and it worked. I also tried Office365Users.UserPhoto(ThisItem.Mail) and that worked. At least they both worked as long as the user had a picture to display otherwise I got the error "Office365Users.UserPhoto failed: The server returned an HTTP error With code 404.".

  • jeffw Profile Picture
    7 on at

    Thanks for the reply but that didn't work, not sure why. What did work was Office365Users.UserPhoto(First(EmployeeProfile).Mail)

  • OrangeJuiceCup Profile Picture
    24 on at

    Please define "EmployeeProfile" in your formula. Was it equal to Office365Users.SomeFunction()?

  • GoldFishing Profile Picture
    2 on at

    Hit the same problem and was searching the old threads. I managed to solve it using the following code:

     

    If(Office365Users.UserPhotoMetadata("username@org.com").HasPhoto, Office365Users.UserPhoto("username@org.com"), SampleImage)

     

    Paste the above code into the Image property of an Image Control. Obviously change the email addresses to something valid in your organisation.

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 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard