Get-AzureADGroupOwner

取得群組的擁有者。

語法

Get-AzureADGroupOwner
   -ObjectId <String>
   [-All <Boolean>]
   [-Top <Int32>]
   [<CommonParameters>]

Description

Get-AzureADGroupOwner Cmdlet 會取得 Microsoft Entra 識別碼中群組的擁有者。

範例

範例 1:依標識符取得群組擁有者

PS C:\>Get-AzureADGroupOwner -ObjectId "62438306-7c37-4638-a72d-0ee8d9217680"

ObjectId                             ObjectType
--------                             ----------
0a1068c0-dbb6-4537-9db3-b48f3e31dd76 User

此命令會取得指定的群組擁有者。

參數

-All

如果為 true,則傳回所有群組擁有者。 如果為 false,則傳回 Top 參數所指定的物件數目

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

-ObjectId

指定 Microsoft Entra ID 中群組的標識碼。

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

-Top

指定要傳回的記錄數目上限。

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

備註

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