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 / Need help_how to get U...
Power Apps
Unanswered

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

(0) ShareShare
ReportReport
Posted on 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

 

 

Categories:
I have the same question (0)
  • iAm_ManCat Profile Picture
    18,228 Most Valuable Professional on at

    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 🙂

  • bbsin Profile Picture
    1,994 on at

    Thanks will check with IT. 

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard