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

Office365Users ResourceNotFound and User not found

(0) ShareShare
ReportReport
Posted on by 185

Hi

 

I am experiencing an issue about the office365users

 

I created a form with a field, that's allowed to select an O365 user

When I am going to assign an O365 user with following code,

Approved_x0020_By:Office365Users.UserProfileV2("Sam Choi")

PowerApps said this is a runtime error, Code: ResourceNotFound, message: User not found

attached the screenshot

 

Anybody knows what the problem?

 

Thanks in advance

Sam

Categories:
I have the same question (0)
  • Verified answer
    Jeff_Thorpe Profile Picture
    6,085 Super User 2024 Season 1 on at

    The  UserProfileV2() is expecting the user's principal name or email id not there name. 

     

    Example: Office365Users.UserProfileV2("SamChoi@abc.com")

  • samsam Profile Picture
    185 on at

    Thank you @Jeff_Thorpe  It works perfectly Smiley Very Happy

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 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard