Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 8OnnhM9Rd18+8U9v37/z+y
Power Apps - Building Power Apps
Unanswered

Need help_how to get User direct Manager or reporting manager and reporting manager manager?

Like (0) ShareShare
ReportReport
Posted on 24 Mar 2023 05:58:00 by 1,994

hi

 

i am trying to create a form , can I know how to auto populate the user's direct manger and it's manager direct officer?

 

I trying using 

Office365Users.ManagerV2(User().Email).mail - it not working

 

Needs the User

RO (reporting officer)

first name, last name, email, department and title all the field are single line in SP list.

 

then RO direct manager call it AO

first name, last name, email, department and title all the field are single line in SP list.

 

kindly help to advise on this thank you

 

 

error show

error manager.PNG

 

i try this error too  - DataCardValue5 is the User name who log to the screen.
If(
ApplicantForm.Mode = FormMode.New,
{
FirstName(RO): IfError(Office365Users.DirectReportsV2(DataCardValue5.Selected.Email), blank(), Office365Users.DirectReportsV2(DataCardValue5.Selected.Email).displayName
Claims: "i:0#.f|membership|"& Lower(varRO.email)
},
Parent.Default
)

 

Manager RO same field for RO Manager (AO)

bbsin_0-1679637422166.png

 

 

  • bbsin Profile Picture
    1,994 on 26 Mar 2023 at 05:06:40
    Re: Need help_how to get User direct Manager or reporting manager and reporting manager manager?

    Thanks will check with IT. 

  • iAm_ManCat Profile Picture
    18,206 Most Valuable Professional on 24 Mar 2023 at 08:49:31
    Re: Need help_how to get User direct Manager or reporting manager and reporting manager manager?

    Does the account you are building this app with have a manager? This error indicates that it does not - anyone who uses the app and does not have a manager set on Azure Active Directory will get an error like that as it cannot look it up if it doesn't exist 🙂

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Building Power Apps

#1
MS.Ragavendar Profile Picture

MS.Ragavendar 27

#2
mmbr1606 Profile Picture

mmbr1606 14 Super User 2025 Season 1

#3
EE-04041031-0 Profile Picture

EE-04041031-0 11

Overall leaderboard