Get-AzureADUserManager

取得使用者的管理員。

語法

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

Description

Get-AzureADUserManager Cmdlet 會取得 Microsoft Entra ID 中使用者的管理員。

範例

範例 1:取得使用者的管理員

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

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

此命令會取得指定使用者的管理員。

參數

-InformationAction

指定此 Cmdlet 如何回應資訊事件。 此參數可接受的值為:

  • 繼續
  • 忽略
  • 詢問
  • SilentlyContinue
  • Stop
  • 暫止
類型:ActionPreference
別名:infa
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-InformationVariable

指定資訊變數。

類型:String
別名:iv
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ObjectId

Microsoft Entra ID (UPN 或 ObjectId) 中使用者的唯一標識符

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:True
接受萬用字元:False

備註

請參閱 將 Get-AzureADUserManager 移轉至 Microsoft Graph PowerShell 的移轉指南。