Get-​Azure​AD​User​Manager

Gets the manager of a user.

Syntax

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

Description

The Get-AzureADUserManager cmdlet gets the manager of a user in Azure Active Directory (AD).

Examples

Example 1: Get the manager of a user

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

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

This command gets the manager of the specified user.

Required Parameters

-ObjectId

The unique identifier 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

-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