Remove-EntraRoleAssignment
Delete a Microsoft Entra ID roleAssignment.
Syntax
Remove-EntraRoleAssignment
-Id <String>
[<CommonParameters>]
Description
The Remove-EntraRoleAssignment
cmdlet removes a role assignment from Microsoft Entra ID.
Examples
Example 1: Remove a role assignment
Connect-Entra -Scopes 'RoleManagement.ReadWrite.Directory' #For the directory (Microsoft Entra ID) provider
Connect-Entra -Scopes 'EntitlementManagement.ReadWrite.All' #For the entitlement management provider
Remove-EntraRoleAssignment -Id Y1vFBcN4i0e3ngdNDocmngJAWGnAbFVAnJQyBBLv1lM-1
Removes the specified role assignment from Microsoft Entra ID.
Parameters
-Id
The unique identifier of an object in Microsoft Entra ID.
Type: | System.String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Related Links
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for