หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
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 |