Remove-EntraGroupAppRoleAssignment
Delete a group application role assignment.
Syntax
Default (Default)
Remove-EntraGroupAppRoleAssignment
-AppRoleAssignmentId <String>
-GroupId <String>
[<CommonParameters>]
Description
The Remove-EntraGroupAppRoleAssignment
cmdlet removes a group application role assignment from Microsoft Entra ID.
Examples
Example 1: Remove group app role assignment
Connect-Entra -Scopes 'Directory.ReadWrite.All'
$group = Get-EntraGroup -Filter "displayName eq 'Contoso Marketing'"
$appRoleAssignment = Get-EntraGroupAppRoleAssignment -GroupId $group.Id | Where-Object {$_.ResourceDisplayName -eq 'Box'}
Remove-EntraGroupAppRoleAssignment -GroupId $group -AppRoleAssignmentId $appRoleAssignment.Id
This example demonstrates how to remove the specified group application role assignment. GroupId - Specifies the object ID of a group. AppRoleAssignmentId - Specifies the object ID of the group application role assignment.
Parameters
-AppRoleAssignmentId
Specifies the object ID of the group application role assignment.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-GroupId
Specifies the object ID of a group in Microsoft Entra ID.
Parameter properties
Type: | System.String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | ObjectId |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.