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?
Solved! Go to Solution.
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.
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.
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:
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,
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.
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.
Thanks for posting in the community @BigTex - can you review the above reply and update the thread if it was helpful?
Thank you,
@Anonymous
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.
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.
I am not the Admin so I just see my account. Is there another way of doing this?
Thank you for your help.
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.
User | Count |
---|---|
251 | |
125 | |
107 | |
50 | |
49 |