Remove-AzureADMSRoleAssignment
This article provides migration details from Remove-AzureADMSRoleAssignment command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: Remove-AzureADMSRoleAssignment
- Azure AD Module: AzureAD
- Microsoft Graph Command: Remove-MgRoleManagementDirectoryRoleAssignment (Community Examples)
- Graph Module: Microsoft.Graph.Identity.Governance
- Graph Endpoint: DELETE /roleManagement/directory/roleAssignments/{unifiedRoleAssignment-id}
Permissions
For the directory (Microsoft Entra ID) provider
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | RoleManagement.ReadWrite.Directory |
Delegated (personal Microsoft account) | Not supported. |
Application | RoleManagement.ReadWrite.Directory |
For the Entitlement management provider
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | EntitlementManagement.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. |
Application | EntitlementManagement.ReadWrite.All |
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
Id | UnifiedRoleAssignmentId |
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