5.3.5 Ensure disabled user accounts do not have read, write, or owner permissions

Information

Ensure that any roles granting read, write, or owner permissions are removed from disabled Azure user accounts.

While an automated assessment procedure exists for this recommendation, the assessment status remains manual. Removing role assignments from disabled user accounts depends on the context and requirements of each organization and environment.

Disabled accounts should not retain access to resources, as this poses a security risk. Removing role assignments mitigates potential unauthorized access and enforces the principle of least privilege.

NOTE: Nessus has provided the target output to assist in reviewing the benchmark to ensure target compliance.

Solution

Remediate from Azure Portal

- Go to Microsoft Entra ID.
- Under Manage, click Users.
- Click Add filter.
- Click Account enabled.
- Click the toggle switch to set the value to No.
- Click Apply.
- Click the Display name of 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 Remove in the row for the disabled user account.
- Click Yes.
- Repeat steps 7-12 for disabled user accounts requiring remediation.

Remediate 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>

Impact:

Ensure disabled accounts are not relied on for break glass or automated processes before removing roles to avoid service disruption.

See Also

https://workbench.cisecurity.org/benchmarks/21611

Item Details

Category: ACCESS CONTROL

References: 800-53|AC-2, CSCv7|16.6

Plugin: microsoft_azure

Control ID: 4472048fda28f6c064d93cf8fd1e97844a503f91b3ebe5d3ea73ddce4cbf1f51