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 / Office 365 connector u...
Power Apps
Answered

Office 365 connector user photo

(0) ShareShare
ReportReport
Posted on by 145

Hi everyone

 

I have a gallery with users and their picture that I get from the office 365 user connector.

 

The problem is I would like to use a image placeholder for user that don't have a picture. 

Anyone that knows how I could do this?

 

Kind regards

Ryan

Categories:
I have the same question (0)
  • Verified answer
    Alex_Security Profile Picture
    174 on at

    Hi Ryan,

     

    so the Office365 user connector has a solution for this, the below formula should work:

     

    If(Office365Users.UserPhotoMetadata(ThisItem.GlobalContact.Email).HasPhoto=false,SampleImage,Office365Users.UserPhoto(ThisItem.GlobalContact.Email))

     where sample image is your replacement. the .HasPhoto appendage is really useful for stuff like this!

     

    if this has solved your problem feel free to mark it as a solution 🙂 

  • RyanVH Profile Picture
    145 on at

    Worked like a charm. Thanks @Alex_Security 

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