Remove-EntraDirectoryRoleAssignment

Delete a Microsoft Entra ID roleAssignment.

Syntax

Remove-EntraDirectoryRoleAssignment
      -UnifiedRoleAssignmentId <String>
      [<CommonParameters>]

Description

The Remove-EntraDirectoryRoleAssignment cmdlet removes a role assignment from Microsoft Entra ID.

Examples

Example 1: Remove a role assignment

Connect-Entra -Scopes 'RoleManagement.ReadWrite.Directory','EntitlementManagement.ReadWrite.All'
Remove-EntraDirectoryRoleAssignment -UnifiedRoleAssignmentId Y1vFBcN4i0e3ngdNDocmngJAWGnAbFVAnJQyBBLv1lM-1

This example removes the specified role assignment from Microsoft Entra ID.

  • -Id parameter specifies the role assignment ID.

Parameters

-UnifiedRoleAssignmentId

The unique identifier of an object in Microsoft Entra ID.

Type:System.String
Aliases:Id
Position:0
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Inputs

System.String

Outputs

System.Object

Notes

Remove-EntraRoleAssignment is an alias for Remove-EntraDirectoryRoleAssignment.