How can we help you today?

How to List Direct Reports of a Specific User in SharePoint

Want to list all the direct reports of a specific employee in your organization? It's a breeze with the ShortPoint Microsoft Graph API, which connects seamlessly with Microsoft Entra ID and Azure AD!


Finished personnel cards grid displaying employee contact details to list direct reports of a user


Let's break down exactly what use case is used to make this connection, how it works, and cover some frequently asked questions.


TABLE OF CONTENTS


Prerequisites

  • You must have ShortPoint SPFx version 8.6.0.0 and up installed.
  • You also need to be a ShortPoint Designer with either a Pro or Enterprise license. For more details, check out Licensing Options.
  • You must have the Microsoft Graph API connection enabled. Go to How to Enable Microsoft Graph Integration for MS Graph API Connections to learn how.
  • You must authorize the necessary permissions (User.Read.All and Directory.Read.All) in the API access page. To check, go to your SharePoint Admin Center > Advanced > API access.
  • You must have the Design Element you want to use to connect on your SharePoint page. We recommend using Design Elements that allow listing of multiple items (Person Cards, Image List, Tiles, etc).

What is the "User's Direct Reports" Use Case?


The User's Direct Reports use case allows you to fetch the directreports property of a specific user in your organization using their email address.  This operation relies on the Microsoft Graph API to retrieve accurate manager and direct report relationships from Entra ID manager data, ensuring you get up-to-date additional information about each object in your organization tab.


Selecting the user's direct reports use case within the Microsoft Graph API configuration panel


With it, you can see the basic details of the direct reports, including their job title, email address, phone number, and so much more.


Finished personnel cards grid displaying employee contact details to list direct reports of a user


The typical structure of this use case is:

https://graph.microsoft.com/v1.0/users/#emailAddress/directReports

You must enable the following permissions in the SharePoint Admin Center to use it:

  • User.Read.All - gives permission to read data about every single user account within an organization's Microsoft Entra ID (formerly Azure AD) tenant.

  • Directory.Read.All - gives permission to access the entire directory structure including user profiles, groups, and organizational contacts.

NOTEIf you haven’t given access to the permissions above, go to your SharePoint Admin Center > Advanced > API access.

Step-by-step Tutorial


Follow the steps below to learn how to use the User’s Direct Reports use case to list direct reports effectively. By following these instructions, you'll be able to create a dynamic view of a specific manager's team, enabling better control and insights into your organization's reporting structure.


Step 1: Edit the ShortPoint Web Part


Go to the SharePoint page you want to use and click Edit:


Clicking the edit button on a SharePoint page


Close the Toolbox:


Closing the default SharePoint web parts toolbox panel before editing the page


Select the ShortPoint web part and click the Edit Properties icon:


Accessing the web part properties menu to list direct reports on the portal


Step 2: Edit the Design Element


NOTEBefore proceeding, you must have the Design Element you want to use for the connection. We recommend using Design Elements that allow listing of multiple items (Person Cards, Image List, Tiles, etc). For this guide, we'll use Person Cards.



Click the EasyPass tag of the Design Element you’ll use:


Selecting the green person cards EasyPass tag within the page builder layout


Select the cogwheel icon:


Clicking the cogwheel settings icon for person cards to list direct reports of a manager


Step 3: Open the Connect Window


Go to the Connect tab:


Opening the connect tab within the design element configuration window


Click Configure to open the connect window:


Clicking the blue configure button to link real-time directory data using ShortPoint Connect


Step 4: Connect to Microsoft Graph API


Select Microsoft Graph API:


NOTEYou need to enable the Microsoft Graph API connection before using it. Learn more about it in How to Enable Microsoft Graph Integration for MS Graph API Connections.


Choosing the Microsoft Graph API tile from the available connection data sources list


Step 5: Use the User’s Direct Reports Use Case


Search for User’s Direct Reports and select it:


Locating the specific user's direct reports option inside the active Microsoft Graph connection screen


Step 6: Add Email Address


Add the email address you want to use:


Inputting an employee's organizational email address into the query parameters field


Step 7: Connect


Click Run Query:


Submitting the live data request by clicking the blue run query action button


Select Connect:


Connecting the Microsoft Graph API query to the Design Element


Step 8: Map Items


Go to the Items tab:


Switching to the items tab to prepare user profile fields for layout display


Delete default content and use the link icon to map the properties you want to be displayed:


Deleting default content and using the link icons to map properties


You can map any property you want. In our case, we used the following properties:

  1. #profileImage - shows the image of the direct report.
  2. #displayName - shows the name of the direct report.
  3. #jobTitle - shows the work title of the direct report.
  4. #mail - shows the email address of the direct report.
  5. #businessPhones_0 - shows the phone number of the direct report.


Final dynamic field parameters mapped to specific profile attributes to list direct reports cleanly


NOTECheck out ShortPoint Connect: How Items Mapping Works to learn more about mapping properties.


Step 9: Save


Click Update to apply your changes:


Applying active configurations by selecting the blue update button in ShortPoint


Click the green checkmark:


Confirming changes by clicking the green checkmark inside the connected element window


Once satisfied, click Save:


Committing layout updates by clicking the save action button


And Publish your page:


Clicking the republish button on the SharePoint page to make team structural changes live


Amazing! You can now list direct reports of specific users in your SharePoint site, helping you analyze your organization's business structure effectively.


Frequently Asked Questions


How can I list direct reports of a specific user in SharePoint?


You can list direct reports by using the ShortPoint Microsoft Graph API integration. This involves configuring the User’s Direct Reports use case, which fetches the directreports property of a user via their email address, enabling you to display details such as job title, email, and phone number.


What permissions are required to use the Microsoft Graph API for listing direct reports?


You need to have User.Read.All and Directory.Read.All permissions enabled in your SharePoint Admin Center under API access. These permissions allow you to read user profiles and directory data securely.


Can I customize the information shown for each direct report?


Yes, you can customize the mapped properties in the ShortPoint Design Element. Common properties include profile image, display name, job title, email, and phone number. This flexibility helps tailor the display to your organization's needs. For more information, check out ShortPoint Connect: How Items Mapping Works.


What is the typical structure of the Microsoft Graph API request to get direct reports?


The typical API request URL format is: https://graph.microsoft.com/v1.0/users/{emailAddress}/directReports. This request retrieves the direct reports of the specified user.


Related articles:






Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

World's best intranet sites are designed using ShortPoint

Get started today! Learn more
See all 55 topics

Start a trial

Ignite your vision. Install ShortPoint directly on your site, or play in sandbox mode. No credit card required.

Get started today

World’s best intranet sites are designed using ShortPoint

Thousands of companies using ShortPoint everyday to design, brand and build award winning intranet sites.

Get started Learn more