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.Userpro...
Power Apps
Unanswered

Office365Users.Userprofile failed

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a manager, manager's manager and manger's manager manager fields in my form. It used to work with no issue for long time. Now it started showing a pop up error " Office365Users.UserProfile failed: The method 'UserProfile' has an invalid value for parameter 'userId' ". It shows all the values with no issue but when I submitted the form, the attachment is not going aling with the rest of form values.

Categories:
I have the same question (0)
  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 

    UserProfile has been deprecated.  Try using Office365Users.UserProfileV2(“youremail@yourcompany.com”) instead.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    These are the type of functions that is throwing the error:

    Claims: "i:0#.f|membership|" & Office365Users.ManagerV2(DataCardValue23.Selected.Email).mail

  • mdevaney Profile Picture
    29,991 Moderator on at

    @Anonymous 
    More info needed.  This is a different function than your original question.

     

    Please share a screenshot showing the full code and the error message showing on the screen.  Copy all the code within the property that is throwing the error.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    I have an app that auto-populates the manager, manager's manager...based on a people picker field in the form. When I put a name in the people picker, this message pops up.

    Steve_B_0-1593207651988.png

     

     

    The functions I use looks like these:

     

    DisplayName: Office365Users.ManagerV2('Manager (Level 1 Approver)'.Email).displayName,
    Claims: "i:0#.f|membership|" & Office365Users.ManagerV2('Manager (Level 1 Approver)'.Email).mail

    If you see the error message it refers Offie365Users.UserProfile failed.

     

    Hope this explains better.

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

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard