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 / Microsoft365Users.User...
Power Apps
Answered

Microsoft365Users.UserPhotoV2 not showing up

(0) ShareShare
ReportReport
Posted on by 134

Hi PowerApps community,

 

I want to display the user profile image by using Microsoft365User.UserPhotoV2(ThisItem.userEmail). However, nothing is displayed and there is an error message. "Microsoft365Users.UserPhotoV2 failed. The method UserPhotoV2 has an invalid value for parameter 'id. Does anyone know how to resolve this?

 

Categories:
  • Florian_Kleinz Profile Picture
    227 on at

    Hello,

     

    What is the DataSource of your Gallery?

    Is UserMail a text column or a LookUp column?

     

    Best regards

     

  • bluehoodie Profile Picture
    134 on at

    Hi @Florian_Kleinz ,

     

    The data is stored in a sharepoint list as a text column.

     

     

  • ganeshsanap Profile Picture
    1,555 on at

    @bluehoodie, Microsoft365Users.UserPhotoV2() expects a User principal name or email id as a parameter. This parameter is required and its data type should be string. Please check below official documentation and change your formula accordingly:

    Get user photo (V2) 


    Please click Accept as solution if my post helped you solve your issue. This will help others find the correct solution easily. It also closes the item. If the content was useful in other ways, please consider giving it 👍

      

  • bluehoodie Profile Picture
    134 on at

    Hi @ganeshsanap ,

     

    The email address is stored as a string in sp list. If an email id = email address, it is reading the email address as a parameter but the profile picture is still not showing. 

  • Verified answer
    v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @bluehoodie ,

    I've made a similar test and not met the same problem like your description.

    Text column in sharepoint could be used as email id in this paramater.

    I think the key point is the connector's name.

    This connect has been renamed to Office365Users instead of Microsoft365Users.

    So please set the image's Image to:

    Office365Users.UserPhotoV2(ThisItem.userEmail)

    8112.PNG

     

    What's more, please check whether you store the right email id in your sharepoint list, which exists in your talent.

    You could use a label inside the gallery to check whether this email id is in your talent.

    set the label's Text:

    Office365Users.UserProfile(ThisItem.userEmail).Id

    If it has data, then this email id is in your talent.

    If it display as blank, then this email id is not in your talent.

     

     

    Best regards,

  • bluehoodie Profile Picture
    134 on at

    Hi @v-yutliu-msft ,

     

    I have changed it to Office365Users but I still face the same error message. I have also added the label text and the text is appearing but the profile pic is not appearing. You mentioned that if there is data, then the email id is in my talent. Can i check what does "talent" here refer to?

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 354 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 330

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard