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

Office365Users.Manager failed: The method 'Manager' has an invalid value for parameter 'userId'

(0) ShareShare
ReportReport
Posted on by 172

I get this error in a field where I am trying to populate the current user manager's details. 

 

If(
!IsBlank(Office365Users.MyProfile().Id),
(Office365Users.Manager(Office365Users.MyProfile().Id).GivenName & " " & Office365Users.Manager(Office365Users.MyProfile().Id).Surname)
)

 

 

Categories:
  • v-bofeng-msft Profile Picture
    Microsoft Employee on at

    Hi @KDAI ,

     

    Please try:

    With(
     {
     MyManager:IfError(Office365Users.Manager(User().Email),{GivenName:"You don't have any manager",Surname:""})
     }, 
     MyManager.GivenName & " " & MyManager.Surname
    )

     

    Best Regards,

    Bof

  • KDAI Profile Picture
    172 on at

    did not work it gives me error saying expected 1 

    KDAI_0-1687810301124.png

     

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