Get-​Azure​AD​Contact​Manager

Gets the manager of a contact.

Syntax

Get-AzureADContactManager
   [-InformationAction <ActionPreference>]
   [-InformationVariable <String>]
   -ObjectId <String>
   [<CommonParameters>]

Description

The Get-AzureADContactManager cmdlet gets the manager of a contact in Azure Active Directory.

Examples

Example 1: Get the manager of a contact

PS C:\> $Contact = Get-AzureADContact -Top 1
PS C:\> Get-AzureADContactManager -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 manager for $Contact.

Required Parameters

-ObjectId

Specifies the ID of a contact in Azure Active Directory.

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

Optional Parameters

-InformationAction

Specifies how this cmdlet responds to an information event.

The acceptable values for this parameter are:

  • Continue
  • Ignore
  • Inquire
  • SilentlyContinue
  • Stop
  • Suspend
Type:ActionPreference
Aliases:infa
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InformationVariable

Specifies an information variable.

Type:String
Aliases:iv
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False