Get-​Azure​AD​Group​App​Role​Assignment

Gets a group application role assignment.

Syntax

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

Description

The Get-AzureADGroupAppRoleAssignment cmdlet gets a group application role assignment in Azure Active Directory (AD).

Examples

Example 1: Retrieve application role assignments of a group

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

The first command gets the object ID of a group by using the Get-AzureADGroup cmdlet. The command stores the ID in the $GroupId variable.

The second command gets the application role assignments of the group in $GroupId.

Required Parameters

-ObjectId

Specifies the ID of a group in Azure AD.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-All

If true, return all application role assignments. If false, return the number of objects specified by the Top parameter

Type:Boolean
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-Top

Specifies the maximum number of records to return.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False