共用方式為


Get-AzureADGroupAppRoleAssignment

取得群組應用程式角色指派。

語法

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

Description

Get-AzureADGroupAppRoleAssignment Cmdlet 會在 Azure Active Directory (AD) 中取得群組應用程式角色指派。

範例

範例 1:擷取群組的應用程式角色指派

$GroupId = (Get-AzureADGroup -Top 1).ObjectId
Get-AzureADGroupAppRoleAssignment -ObjectId $GroupId

第一個命令會使用 Get-AzureADGroup Cmdlet 取得群組的物件識別符。 此命令會將標識碼儲存在 $GroupId 變數中。

第二個命令會取得$GroupId中群組的應用程式角色指派。

參數

-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