Showing results for 
Search instead for 
Did you mean: 
Post Prodigy
Post Prodigy

Office365Users.Manager failed: The method "manager" has an invalid value for parameter "userid"



I'm playing with the "Leave Request" demo, provided by PowerApps.

The OnVisible property of the LoginScreen is showing the error:



Office365Users.Manager failed: The method "manager" has an invalid value for parameter "userid"



For the expression:



Set(_selectedApprover; Office365Users.Manager(_myProfile.Id));;



The variable _myProfile is defined OnStart of the app:


Super User
Super User


First, Office365Users.Manager is deprecated.  Use Office365Users.ManagerV2 instead.


Second, you must pass an email as a parameter to Office365Users.ManagerV2.  Try this code:


Set(_selectedApprover; Office365Users.ManagerV2(_myProfile.mail));;


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."

Helper I
Helper I

Hello. I have same problem. Did you solve this problem?

Hello, I also have this problem. Is there any solution? Thanks

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (2,783)