Get-​Azure​AD​User​Direct​Report

Get the user's direct reports.

Syntax

Get-AzureADUserDirectReport
   [-All <Boolean>]
   -ObjectId <String>
   [-Top <Int32>]
   [<CommonParameters>]

Description

The Get-AzureADUserDirectReport cmdlet gets the direct reports for a user in Azure Active Directory (AD).

Examples

Example 1: Get a user's direct reports

PS C:\>Get-AzureADUserDirectReport -ObjectId "df19e8e6-2ad7-453e-87f5-037f6529ae16"

ObjectId                             ObjectType
--------                             ----------
5e8b0f4d-2cd4-4e17-9467-b0f6a5c0c4d0 User

This command gets the direct report for the specified user.

Required Parameters

-ObjectId

Specifies the ID of a user in Azure Active Directory (UPN or ObjectId)

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-All

If true, return all direct reports for this user. If false, return the number of objects specified by the Top parameter

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-Top

Specifies the maximum number of records to return.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False