🎉 Our Microsoft 365 Reporting & Management Tool is now available in Azure Marketplace 🚀
This website uses cookies to improve your experience. We'll assume you're ok with this. Know more.
Microsoft Entra ID

How to Export Users with Manager Report in Microsoft 365

Have you reviewed whether every user in Microsoft 365 is assigned to the correct manager? Inaccurate or missing manager details can lead to overlooked tasks such as workflow approvals, and access reviews, which result in delays and compliance issues. To prevent these issues, it’s important to ensure accurate manager assignments across the organization. This guide outlines all the available methods to get list of users with manager report in Microsoft 365.

Get Users with Manager using Microsoft 365 Admin Center

Microsoft 365 Permission Required
User Admin Least Privilege
Global Admin Most Privilege
  • Log in to the Microsoft 365 admin center.
  • Navigate to Users»Active users and click on the required user from the list.
  • In the Account tab, go to the Manager section. If a manager has been assigned to the user, it will be displayed there.
Get Users with Manager using Microsoft 365 Admin Center

Find Users and their Assigned Manager using Windows PowerShell

Microsoft 365 Permission Required
Global Reader Least Privilege
Global Admin Most Privilege
  • Use the following cmdlet with the scope configured for user read access only.
  • Windows PowerShell Windows PowerShell
     Connect-MgGraph –Scopes "User.Read.All"
  • Run the following cmdlet to find all users who have a manager assigned in Microsoft 365.
  • Windows PowerShell Windows PowerShell
     Get-MgUser -All -ExpandProperty Manager | Where-Object { $_. Manager -ne $null -and $_.Manager.AdditionalProperties["displayName"] -ne $null } | Select-Object UserPrincipalName, DisplayName, @{Name="Manager"; Expression={$_.Manager.AdditionalProperties["displayName"]}}
Find Users and their Assigned Manager using Windows PowerShell

Export Azure AD Users with Managers Report to CSV using PowerShell Script

Microsoft 365 Permission Required
Global Reader Least Privilege
Global Admin Most Privilege
  • In large organizations, it becomes a tedious task to find managers for each user, especially when using the Microsoft 365 admin center.
  • While PowerShell cmdlets are helpful in retrieving basic user-manager relationships, they often require advanced scripting knowledge to extract additional details of the Microsoft 365 users and managers.
  • We have created a PowerShell script to simplify the process of retrieving user manager insights. It provides detailed information such as department, account type, license status, and more for both users and their assigned managers.
Export Azure AD Users with Managers Report to CSV using PowerShell Script
GetM365ManagerAndDirectReports.ps1

Ensure Accurate Manager Assignments in Microsoft 365 for Consistent Approvals

AdminDroid's Entra ID user reporting tool helps you identify users with managers, detect incorrect manager assignments, and analyze reporting gaps across departments. Use these insights to streamline manager approval workflows and maintain a well-structured Microsoft 365 environment.

Visualize Users with Manager in Microsoft Entra ID

Leverage Azure AD user dashboard to get a visual overview of total manager assignments, view the count of users without managers, and more all at a single glance.

Assign Managers to Microsoft 365 Users with No Manager

Identify users without assigned managers in Microsoft 365 and assign managers promptly to eliminate approval bottlenecks, close security gaps, and maintain accountability across your organization.

Monitor All M365 Managers to Ensure Proper Reporting Structures

Utilize AdminDroid’s Microsoft 365 managers' report to list every user assigned as a manager and ensure only intended users hold managerial roles.

Identify Direct Reports Under Each Manager in M365

Export Microsoft 365 user managers and direct reports to monitor reporting hierarchies across your organization, which ensures smooth workflows and effective communication.

Audit Recently Created Entra ID Users to Verify Manager Assignments

Monitor newly created users in Microsoft 365 to confirm that the manager property is set, maintain clear organizational structure, and support seamless integration into reporting lines from day one.

Provide Managers Access to User Activities of their Direct Reports

With AdminDroid's role-based delegated access, you can grant managers visibility into activities performed by their direct reports and keep them informed about their team's actions.

AdminDroid's Azure AD management tool offers an effective solution to monitor users with managers in Microsoft 365. With its comprehensive reports, you can ensure accurate reporting structures, simplify team management, and enhance organizational oversight.

Explore a full range of reporting options

Important Tips

Implement a manager approval step using Power Automate or Entra ID Lifecycle workflows in M365 to keep managers informed of newly assigned team members during onboarding.

Ensure the manager property of Microsoft 365 users is updated when they transfer departments to maintain an accurate organizational hierarchy.

Use the organization chart in Microsoft 365 to visualize the reporting structure and find Microsoft 365 managers and their direct reports with ease.

Common Errors and Resolution Steps

The following are the possible errors and troubleshooting hints while monitoring users with managers in Microsoft 365.

Error Resource 'manager' does not exist or one of its queried reference-property objects are not present.

This error typically occurs when attempting to view the user's manager, but the manager is not assigned or has been removed from the tenant.

Fix Assign a manager for the specified Microsoft 365 user.
#To assign a manager to a user, you'll need the User Principal Name (UPN) or Object ID of both the user and the manager.
$Manager = @{
"@odata.id"<quot;https://Graph.microsoft.com/v1.0/users/<Manager’s ObjectID Or UPN>" 
}
Set-MgUserManagerByRef -UserId <User ID or UPN> -BodyParameter $Manager
#Replace <Manager’s Object ID Or UPN> with the manager's User Principal Name (UPN) or User ID, and <User ID or UPN> with the user's UPN or User ID to complete the script before executing it.

Error Get-MgUser : Insufficient privileges to complete the operation. Status: 403 (Forbidden) ErrorCode: Authorization_RequestDenied.

This error occurs when the 'Connect-MgGraph' cmdlet is executed without specifying the required scopes.

Fix To resolve this error, define the necessary scopes when connecting to the Microsoft Graph module.
Connect-MgGraph -Scopes "User.Read.All"

Error ./ GetM365ManagerAndDirectReports.ps1 cannot be loaded because running scripts is disabled on this system.

This error occurs when you try to run the GetM365ManagerAndDirectReports.ps1 script in PowerShell, but the system's execution policy prevents running unsigned scripts.

Fix To resolve this error, set the execution policy as Unrestricted before running the script as shown below.
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
Frequently Asked Questions

Find All Users Assigned with a Manager to Stay Updated on Organizational Hierarchy

1. How to assign a manager for multiple users in Microsoft 365?

User onboarding in Microsoft 365 involves assigning the right manager for users to support performance tracking, accountability, and organizational oversight. Whether you're handling a single user or multiple users, it’s essential to add a manager to a user in Microsoft 365.

While it's a straightforward process to assign a manager in the Microsoft 365 admin center, it becomes tedious to update manager assignments for multiple users during departmental changes or role transitions. For a more efficient approach, you can use the PowerShell script below to bulk assign managers in Microsoft 365.

SetAzureADUserManager.ps1

Bulk update managers using a CSV file in Microsoft 365

  • Use '-ImportUsersFromCsvPath' parameter with the above script to assign a Microsoft 365 manager to the list of users available in a CSV file.
  • The CSV file should have the User Principal Name (UPN) of the users with the header 'username'.
bulk-update-manager-csv
.\SetAzureADUserManager.ps1 -ImportUsersFromCsvPath"C:\Windows\ImportUserFromCsvPath.csv" -ManagerId <ManagerObjectId>

With the above method, you can easily assign managers to multiple users in Microsoft Entra ID. Moreover, this script also covers various other use cases like assigning Microsoft 365 managers based on user properties, replacing existing manager with new manager, and more.

2. How to audit manager assignments and removals in Microsoft 365?

Managers play a crucial role in guiding their teams, approving requests, and keeping workflows on track. However, unauthorized or accidental changes to manager assignments can disrupt team structures and lead to inaccuracies in the organization’s chart. To maintain a clear reporting structure, it’s important to audit changes to users’ managers in Microsoft 365.

Audit User Manager Changes in Microsoft Entra ID

  • Log in to the Microsoft Entra admin center and navigate to Identity»Monitoring & health»Audit logs.
  • In the toolbar, select the required Date range and open the Activity dropdown.
  • Set user manager from the dropdown and click Apply to get all user manager changes in Microsoft 365.
entra-id-audit-manager-changes

While the Microsoft Entra admin center allows you to audit user manager changes, it provides only basic details, such as the event type, date, time, and status. It lacks crucial information like the affected user and their assigned or removed manager, which makes it difficult to gain full visibility into these changes.

Gain clear insights into user manager changes in Microsoft 365 with AdminDroid’s detailed reports.

  • The user manager changes displays all assignment and removal actions, with charts like “Performed by” showing how many changes each user or service account made.
  • The report also includes detailed information, such as the event time, modified user, performed by, result status, and more.
admindroid-user-manager-changes

3. How to get all users under a manager in Microsoft 365?

Microsoft 365 user management goes beyond provisioning accounts; it requires understanding the organizational structure of managers and their direct reports to maintain clarity and support targeted analysis.

For example, if you need to review license usage or activities of users reporting to a specific manager, you can identify and analyze their data. This approach supports performance tracking, helps in finding users, and enables effective productivity assessment.

Get a list of all Entra ID users under a manager using PowerShell

Connect to the Microsoft Graph PowerShell using the below cmdlet.

Connect-MgGraph –Scopes "User.Read.All"

Execute the following cmdlet to get all the the direct reports under a specific manager in Microsoft 365.

$ManagerName = "<ManagerName>"

Get-MgUser -All -ExpandProperty Manager | Where-Object { $_.Manager -ne $null -and $_.Manager.AdditionalProperties["displayName"] -eq $ManagerName } | Select-Object UserPrincipalName, DisplayName, @{Name="Manager"; Expression={$_.Manager.AdditionalProperties["displayName"]}} 

Note: Replace <ManagerName> with the actual username of the manager to view their direct reports in Microsoft 365.

direct-reports-of-a-manager-cmdlet-output

4. What happens when a Microsoft 365 direct report leaves the organization?

When a direct report leaves the organization, Microsoft 365 initiates automatic steps as part of the M365 user offboarding process. Below are the key events that occur without admin intervention.

Organization Chart Visibility: For up to 30 days (soft delete period), the user may still appear as a direct report in the manager’s organizational chart.

OneDrive Access Notification: If a manager is assigned to a user, they receive an automated email notification granting access to the team member’s OneDrive when the user leaves the organization. This access remains available until the OneDrive retention period ends, after which the content is deleted.

Manual actions to transfer departing user’s data in Microsoft 365

  • Export and Transfer Outlook Data: Export the former employee’s Outlook data including emails, calendars, contacts, and tasks to a PST file, and import it into the manager’s Outlook account.
  • Reassign Microsoft Teams Ownership: If the user was a group owner, assign the manager as 'owner' for the relevant teams through the Teams admin center.

By understanding what happens when a direct report leaves, you can take the right steps to preserve important data and maintain continuity. Proactive reassignment and data handling ensure a smooth offboarding experience.

5. How to create a dynamic group for a manager’s direct reports in Entra ID?

Microsoft Entra ID allows you to create dynamic groups using a dynamic membership rule that automatically includes all direct reports of a specified manager. This is especially useful for effective communication, as any email sent to the dynamic distribution list reaches all the direct reports of the manager.

  • Log in to the Microsoft Entra admin center and navigate to Identity»Groups »All groups.
  • Click New group and choose the Group type based on your requirement.
  • Set the Membership type as Dynamic User.
  • In the Dynamic user members section, select Add dynamic query to define the membership rule.
  • Under Configure Rules tab, click Edit in the Rule syntax box and enter the following syntax to include all users who report directly to the specified manager:
Direct Reports for "<Manager’sObjectID>"

Replace <Manager’sObjectID> with the actual Object ID of the manager, which can be found on the manager's profile in the Microsoft Entra admin center.

By implementing this dynamic group, any changes in the manager's direct reports are automatically reflected in the group's membership, which streamlines administrative tasks and ensures up-to-date group members.

Kickstart Your Journey With
AdminDroid

Your Microsoft 365 Companion with Enormous Reporting Capabilities

Download Now
User Help Manuals Compliance Docs
x
Delivering Reports on Time
Want a desired Microsoft 365 reports every Monday morning? Ensure automated report distribution and timely delivery with AdminDroid's Scheduling to your email anytime you need.
Delivering Reports on Time
Schedule tailored reports to execute automatically at the time you set and deliver straight to the emails you choose. In addition, you can customize report columns and add inteligent filtering to the activities just from the previous day to suit your Microsoft 365 report requirements.
Set It, Schedule It, See Results- Your Reports, Your Way, On Your Time!
Time Saving
Automation
Customization
Intelligent Filtering
Give Just the Right Access to the Right People
Grant fine-tuned access to any Microsoft 365 user with AdminDroid’s Granular Delegation and meet your organization’s security and compliance requirements.
Give Just the Right Access to the Right People
Create custom roles loaded with just the right permissions and give access to admins or normal users within AdminDroid. The result? A streamlined Microsoft 365 management experience that aligns your organization's security protocols and saves your invaluable time and effort.
Align, Define, Simplify: AdminDroid's Granular Delegation
Smart Organizational Control
Effortless M365 Management
Simplified Access
Advanced Alerts at a Glance
Receive quick notifications for malicious Microsoft 365 activities. Engage with the AdminDroid’s real-time alert policies crafted to streamline your security investigations.
Advanced Alerts at a Glance
Stay informed of critical activities like suspicious emails and high-risk logins, bulk file sharing, etc. Through creating and validating ideal alert policies, AdminDroid provides a comprehensive approach to real-time monitoring and management of potential threats within your organization.
AdminDroid Keeps You Always Vigilant, Never Vulnerable!
Proactive Protection
Real-time Monitoring
Security Intelligence
Threat Detection
Merge the Required Data to One Place
Combine multiple required columns into one comprehensive report and prioritize the information that matters most to you with AdminDroid’s Advanced Column Customization.
Merge the Required Data to One Place
This column merging capability offers a flexible way to add different columns from various reports and collate all the essential data in one place. Want to revisit the customized report? Save it as a 'View’, and your unique report is ready whenever you need it.
Merge with Ease and Save as Views!
Custom Reporting
Unique View
Desired Columns
Easy Data Interpretation
Insightful Charts and Exclusive Dashboards
Get a quick and easy overview of your tenant's activity, identify potential problems, and take action to protect your data with AdminDroid’s Charts and Dashboards.
Insightful Charts and Exclusive Dashboards
With AdminDroid charts and dashboards, visualize your Microsoft 365 tenant in ways you've never thought possible. It's not just about viewing; it's about understanding, controlling, and transforming your Microsoft 365 environment.
Explore Your Microsoft 365 Tenant in a Whole New Way!
Executive overviews
Interactive insights
Decision-making
Data Visualization
Efficient Report Exporting for Microsoft 365
Downloading your reports in the right file format shouldn’t be a hassle with AdminDroid’s Report Export. Experience seamless report exporting in various formats that cater to your needs.
Efficient Report Exporting for Microsoft 365
Navigate through diverse options and export Microsoft 365 reports flawlessly in your desired file format. Tailor your reports precisely as you need them and save them directly to your computer.
Take Control, Customize and Deliver- Your Office 365 Data, Exported in Your Way!
Easy Export
Seamless Downloading
Data Control
Manage Microsoft 365

Get AdminDroid Office 365 Reporter Now!