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 the direct reports for a contact.
Get-AzureADContactDirectReport -ObjectId <String> [-All <Boolean>] [-Top <Int32>] [<CommonParameters>]
The Get-AzureADContactDirectReport cmdlet gets the direct reports for 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.
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
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
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
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.