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 / Office365Users Connect...
Power Apps
Answered

Office365Users Connector Error Message Issue

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

mwintersparker_0-1625084378186.png

For my "Name" DataCard, I have the default set as Office365Users.UserProfileV2(TextInput1).displayName. I want the "Name" DataCard to pull the email from TextInput1 and get the User's name. However, the issue is that until the user inputs their email into TextInput1, they get the following error message: 

"Office365Users.UserProfileV2 failed: { "error": { "code": "ResourceNotFound", "message": "User not found", "innerError": { "date": "2021-06-30T20:21:28", "request-id": "5e3959da-b06e-47d7-b2b5-2b2f3ccab89a", "client-request-id": "5e3959da-b06e-47d7-b2b5-2b2f3ccab89a" } } }"

 

This makes sense, as it is calling the display name of an invalid field. How can I get around this?

 

Categories:
I have the same question (0)
  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Get the current user using Office365Users.MyProfile().UserPrincipalName.

    StalinPonnusamy_1-1625086318688.png

     

    Office365Users.UserProfileV2 expects valid id like userprinciplename or email

     

    StalinPonnusamy_0-1625086294727.png

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I should've explained this in the post, but this app will be running on a communal computer where people just fill out the form as they walk by. So the MyProfile() function won't work because the MyProfile() will just use the 1 office admin account the computer is running on.

  • Verified answer
    Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Update - I solved it. I used If("@gmail.com" in TextInput1, Office365Users.UserProfileV2(TextInput1).displayName, "").

    This solved it because it checks if the user has inputted their email yet and if so, it pulls their info. otherwise, it stays blank.

  • StalinPonnusamy Profile Picture
    Super User 2024 Season 1 on at

    Good to hear. Are we checking only at Gmail or any valid email?

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard