共用方式為


Get-AzureADGroupMember

取得群組的成員。

語法

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

Description

Get-AzureADGroupMember Cmdlet 會取得 Azure Active Directory (AD) 中的群組成員。

範例

範例 1:依標識符取得群組成員

PS C:\>Get-AzureADGroupMember -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

指定 Azure AD 中群組的識別碼。

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

-Top

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

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