web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Getting user name and ...
Power Apps
Unanswered

Getting user name and picture

(0) ShareShare
ReportReport
Posted on by 3,271

Hi there, just a quick question?

 

is there any way to get the user name, just the name and the picture form the office 365?

 

user().Fullname is what I am using and user.image. but I am getting name and last name and pictre and empty box, because I am guessing is getting from the PA account not he office 365

 

please advise. 

 

regards

 

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    on at

    Hi @sajarac,

     

    If user() fucntion can't meet your requirements, then you may take a look at the Office 365 Users Connection:

    Office 365 Users Connection in PowerApps

    To get your user photo, please take a try with the method below:

    Office365Users.UserPhoto(Office365Users.MyProfile().Id)

    36.PNG

     

    Regards,

    Michael

  • Community Power Platform Member Profile Picture
    on at

    Hi ,

     

    Is there a way to bring in other O365 users' photos?

     

    I am using the OrgBrowser template app and would like to add the user images. However at this stage it appears as if only the picture of 'oneself' (the accessing user) can be displayed, is this correct?

  • patrickabel Profile Picture
    53 on at

    @Anonymous yes there is! Try the following:

    Office365Users.UserPhoto(ThisItem.UserPrincipalName)

    In the above example, I've got a Gallery where the items are bound to a Office365Users data-source and am then using the UserPrincipalName off of the current item to lookup the user's profile photo. Works like a charm!

     

  • Community Power Platform Member Profile Picture
    on at

    Nice, thanks for the suggestion! 🙂

    I will try it out.

  • Community Power Platform Member Profile Picture
    on at

    Hi patrickabel 

     

    I have now tried this, however could not connect the gallery to the O365Users as a datasource. Can you please tell me what you entered as being the gallery's items ?

  • RPNZ Profile Picture
    55 on at

    I'm using the Org Browser app which does a search and returns a variable called First(Employee)

     

    I can add the employees image buy inserting an image into a card and using data string:

     

    Office365Users.UserPhoto(First(Employee).UserPrincipalName)

     

    Hope this helps.

  • Community Power Platform Member Profile Picture
    on at

    Hello,

     

    In my case worked this:

     

    UsuariosdeOffice365.UserPhotoV2(User().Email)

     

    Regards.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard