cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
BigTex
Level: Powered On

Displaying image using office365Users

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? 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Displaying image using office365Users

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

9 REPLIES 9
Super User
Super User

Re: Displaying image using office365Users

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
Community Support Team
Community Support Team

Re: Displaying image using office365Users

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,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
BigTex
Level: Powered On

Re: Displaying image using office365Users

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.

Super User
Super User

Re: Displaying image using office365Users

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
TopShelf-MSFT
Level 10

Re: Displaying image using office365Users

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

 

Thank you,

 

@TopShelf-MSFT 

BigTex
Level: Powered On

Re: Displaying image using office365Users

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. 

Super User
Super User

Re: Displaying image using office365Users

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.
BigTex
Level: Powered On

Re: Displaying image using office365Users

@RandyHayes 

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

Thank you for your help.

Super User
Super User

Re: Displaying image using office365Users

@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.

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up. Solved your problem? - Click on Accept as Solution. Others seeking the same answers will be happy you did.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,100)