Forum Discussion
How to Get User Profile Picture
Yes that works but only for the current logged in user. But what about other users?
For example using the sample Employee Directory app I would like to extend it to show a person's picture when you pull them up in the app.
Ryan Stone wrote:
Yes that works but only for the current logged in user. But what about other users?
+1.
I'm having the exact some problem with no luck. PowerApp templates like Shoutouts seem to make use of some kind of functionality like this, but I can't tell how to replicate it in really simple terms...
- HENRIK AATOS VIENOVIRTAJul 13, 2018Copper Contributor
Have you tried with
Office365Users.UserPhoto(UserID)
Where userid just need to put the user principal name or email for the person whose picture you want to see.
And if you want to see your own it would be like: Office365Users.UserPhoto(Office365Users.MyProfile().Id)
For this to work you would need to connect O365Users data source first.
Hope it helps somehow.