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 / Office365User Photo Fa...
Power Apps
Unanswered

Office365User Photo Fails on Mobile but not in a Desktop

(0) ShareShare
ReportReport
Posted on by 3,295

Hi there,

I am declaring the following variable OnStart =  Set(CurrentUser, User().Email); Set(CurrentUserName, User());

 

And I have an user picture with this formula:

Image = If( !IsBlank(CurrentUser),
If(Office365Users.UserPhotoMetadata(CurrentUser).HasPhoto = true,
Office365Users.UserPhotoV2(CurrentUser),
UserIcon
)

 

And also a lebel for the user name:

Text = Office365Users.UserProfileV2(CurrentUser).displayName

 

Running the app in my browser I have no problems.

 

But in in mobile device "IOS" I get this error:

 

Office365Users.UserProfileV2 failed: the method 'UserProfileV2' has an invalid value for parameter 'id'

 

Could somebody please provide help ?

 

Thanks in advance

Categories:
I have the same question (0)
  • srose Profile Picture
    94 on at

    You may have already resolved this, but just in case -- I found this here: https://thepoweraddict.com/office365users-connector-get-rid-of-this-warning/ .  My situation is that I have old users that no longer exist in AD, but I don't want to lose those records. So I use a boolean to determine if they exist first. AcctEnabled is a boolean:  IsEmpty(Office365Users.SearchUserV2({searchTerm:emailtext.Text}).value.Id). Then for the image:  If(Not(AcctEnabled),If(!IsBlank(Office365Users.UserPhotoV2(Label1.Text)),Office365Users.UserPhotoV2(Label1.Text)),'person icon')

     

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard