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 image using...
Power Apps
Answered

Displaying image using office365Users

(0) ShareShare
ReportReport
Posted on by 50

Hello,

I am making a user personalized app that picks up data from a couple of sharepoint lists based on who is logged in. On the first page, I am trying to display their picture and name and then all the entries they made in a gallery below it.

The picture I am getting from User().Image is highly pixelated which led me to use Office365Users.UserPhotoV2(User().Email). I have tried all other combinations suggested in the community but nothing gets displayed as an image when using office365Users. I don't get any errors. I wanted to see if I get anything back from Office365, so, I used thesame value for a label and got this: appres://blobmanager/e5e3b786a77647de8567590c69f22d87/2.

Any suggestions on how to get an image? 

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

    @BigTex 

    The User().Image will display whatever image is associated with the profile running powerapps.  If you look at the top right of your designer screen you should see your user image there...that is the one that comes with User().Image.

     

    However, the syntax for your Office365Users.UserPhotoV2(User().Email) is correct...you should get an image if you put that formula in the Image property of an Image control.  If you do not, then I would look at your profile in Office 365.  That is where it comes from.

     

    I hope this is helpful for you.

  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @BigTex ,

    Could you please share a bit more about your issue?

    How do you display the profile image within your app? Using Image control?

     

    I have made a test on my side, and don't have the issue that you mentioned. The screenshot as below:5.JPG

    Set the Image property of the Image control to following:

    Office365Users.UserPhotoV2(User().Email)

    Note: The result the Office365Users.UserPhotoV2(User().Email) formula returned is a blob data. The result the User().Image formula returned is a base64 encoded image content. Both formulas work well within my app.

     

    Please make sure the specific user has configured his profile image within your AAD (Azure Active Directory) properly. If the specific user has not configued his profile image within your AAD, the Office365Users.UserPhotoV2(User().Email) formula would return a blank value.

     

    If the issue still exists, and the specific user has configured his profile image within your AAD properly, please consider re-create a new app, then re-create a new connection to Office 365 Users connector from your app, try above formula again, check if the issue is solved.

     

    Best regards,

  • BigTex Profile Picture
    50 on at

    Hello @v-xida-msft ,

    Yes, I am trying to display it using image control. 

    How do I make sure that user has configured image in AAD correctly? 

    My formula returns blob data if I try to insert Office365Users.UserPhotoV2(User().Email) in a label. So, it means that the user has indeed correctly configured the image in AAD. Just whenever I put Office365Users.UserPhotoV2(User().Email) in image control, it does not show anything.

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @BigTex 

    Have you gone into the portal for Office 365 and looked at the users list?  That is one place where you can see what photos are associated with the user.  I'd take a look through there and take note of anyone that you see with a photo.  Then, you can test by using that same formula, but instead of putting in User().Email, put in the email address of the person you know has a photo - Office365User.UserPhotoV2("user@domain.com")

    That will let you know if there is an issue getting the photo.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks for posting in the community @BigTex - can you review the above reply and update the thread if it was helpful? 

     

    Thank you,

     

    @Anonymous 

  • BigTex Profile Picture
    50 on at

    This might sound very trivial but can you please tell me how to go into Office365 portal. I see my clear image when I open any office product. Also, found out that we use on premise outlook instead of outlook365. Can that be the cause of this issue. Thank you for all the help. 

  • RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @BigTex 

    You can get to your portal through portal.office365.com

    As long as you are the admin, you will then be able to go into the Admin control to see users.

  • BigTex Profile Picture
    50 on at

    @RandyHayes 

    I am not the Admin so I just see my account. Is there another way of doing this?

    Thank you for your help.

  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @BigTex 

    Well, if you're jsut verifying photos...

    You can go into your Outlook in the browser, then click on the People/Contacts icon at the bottom. Then click on the Directory on the left of the People. Then click on "All Users"

    You should see everyone in your directory with their picture...if they have one.

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

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard