Get-AzureADContactDirectReport
Get the direct reports for a contact.
Syntax
Get-AzureADContactDirectReport
-ObjectId <String>
[-All <Boolean>]
[-Top <Int32>]
[<CommonParameters>]
Description
The Get-AzureADContactDirectReport cmdlet gets the direct reports for a contact.
Examples
Example 1: Get the direct reports of a contact
PS C:\> $Contact = Get-AzureADContact -Top 1
PS C:\> Get-AzureADContactDirectReport -ObjectId $Contact.ObjectId
The first command gets a contact by using the Get-AzureADContact cmdlet, and then stores it in the $Contact variable.
The second command gets the direct reports for $Contact.
Parameters
-All
If true, return all direct reports. If false, return the number of objects specified by the Top parameter
Type: | Boolean |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ObjectId
Specifies the ID of a contact in Azure Active Directory.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Top
Specifies the maximum number of records to return.
Type: | Int32 |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |