Remediation
From Azure Portal
- Go to
Microsoft Entra ID. - Under
Manage, clickUsers. - Click
Add filter. - Click
Account enabled. - Click the toggle switch to set the value to
No. - Click
Apply. - Click the
Display nameof a disabled user account with read, write, or owner roles assigned. - Click
Azure role assignments. - Click the name of a read, write, or owner role.
- Click
Assignments. - Click
Removein the row for the disabled user account. - Click
Yes. - Repeat steps 7-12 for disabled user accounts requiring remediation.
From PowerShell
For each account requiring remediation, run the following command to remove an assigned role:
Remove-AzRoleAssignment -ObjectId $user.ObjectId -RoleDefinitionName <role-definition-name>