Skip to content

Latest commit

 

History

History
95 lines (70 loc) · 2.18 KB

Get-AzureADContactDirectReport.md

File metadata and controls

95 lines (70 loc) · 2.18 KB
external help file Module Name ms.assetid ms.custom ms.reviewer online version schema
Microsoft.Open.AzureAD16.Graph.PowerShell.dll-Help.xml
AzureADPreview
041BAC4C-2588-471C-9358-BC9199B37503
iamfeature=PowerShell
rodejo
2.0.0

Get-AzureADContactDirectReport

SYNOPSIS

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
Parameter Sets: (All)
Aliases:

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

-ObjectId

Specifies the ID of a contact in Azure Active Directory.

Type: String
Parameter Sets: (All)
Aliases:

Required: True
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
Parameter Sets: (All)
Aliases:

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

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES

RELATED LINKS

Get-AzureADContact