Skip to content
Back to skills

Cis Azure Foundations 5.3.5

ASecurity

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

  • 3,723 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
securitygoshellazuresecurity

Works with

  • cli

Security analysis

A100/100

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-azure-foundations-5.3.5 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Azure Foundations 5.3.5?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Azure Foundations 5.3.5
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-azure-foundations-5-3-5/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-azure-foundations-5-3-5)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-azure-foundations-5.3.5
description: "Ensure disabled user accounts do not have read, write, or owner permissions"
category: cis-azure-foundations
version: "5.0.0"
author: cyberstrike-official
tags: [cis, azure, identity, identity-reviews]
cis_id: "5.3.5"
cis_benchmark: "CIS Microsoft Azure Foundations Benchmark v5.0.0"
tech_stack: [azure]
cwe_ids: []
chains_with: [cis-azure-foundations-5.3.4, cis-azure-foundations-5.3.6]
prerequisites: []
severity_boost: {}
---

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

## Description

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.

## Rationale

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.

## Impact

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

## Audit Procedure

### Using Azure Portal

1. Go to `Microsoft Entra ID`.
2. Under `Manage`, click `Users`.
3. Click `Add filter`.
4. Click `Account enabled`.
5. Click the toggle switch to set the value to `No`.
6. Click `Apply`.
7. Click the `Display name` of a disabled user account.
8. Click `Azure role assignments`.
9. Ensure that no read, write, or owner roles are assigned to the user account.
10. Repeat steps 7-9 for each disabled user account.

### Using PowerShell

```powershell
Connect-AzureAD
Get-AzureADUser
```

Run the following command to get a user:

```powershell
$user = Get-AzureADUser -ObjectId <object-id>
```

Run the following command to get the `AccountEnabled` setting for the user:

```powershell
$user.AccountEnabled
```

If `AccountEnabled` is `False`, run the following command to get the role assignments for the user:

```powershell
Get-AzRoleAssignment -ObjectId $user.ObjectId
```

Ensure that no read, write, or owner roles are assigned to the user. Repeat for each user.

### Using Azure Policy

- **Policy ID:** 0cfea604-3201-4e14-88fc-fae4c427a6c5 - **Name:** 'Blocked accounts with owner permissions on Azure resources should be removed'
- **Policy ID:** 8d7e1fde-fe26-4b5f-8108-f8e432cbc2be - **Name:** 'Blocked accounts with read and write permissions on Azure resources should be removed'

## Expected Result

No disabled user accounts should have any read, write, or owner role assignments. The PowerShell command `Get-AzRoleAssignment` should return no results for disabled accounts.

## Remediation

### Remediate from Azure Portal

1. Go to `Microsoft Entra ID`.
2. Under `Manage`, click `Users`.
3. Click `Add filter`.
4. Click `Account enabled`.
5. Click the toggle switch to set the value to `No`.
6. Click `Apply`.
7. Click the `Display name` of a disabled user account with read, write, or owner roles assigned.
8. Click `Azure role assignments`.
9. Click the name of a read, write, or owner role.
10. Click `Assignments`.
11. Click `Remove` in the row for the disabled user account.
12. Click `Yes`.
13. 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:

```powershell
Remove-AzRoleAssignment -ObjectId $user.ObjectId -RoleDefinitionName <role-definition-name>
```

## Default Value

Disabled user accounts retain their prior role assignments.

## References

1. https://learn.microsoft.com/en-us/powershell/module/az.resources/get-azaduser
2. https://learn.microsoft.com/en-us/powershell/module/az.resources/get-azroleassignment
3. https://learn.microsoft.com/en-us/powershell/module/az.resources/remove-azroleassignment

## CIS Controls

| Controls Version | Control                                             | IG 1 | IG 2 | IG 3 |
| ---------------- | --------------------------------------------------- | ---- | ---- | ---- |
| v8               | 5.1 Establish and Maintain an Inventory of Accounts | x    | x    | x    |
| v7               | 16.6 Maintain an Inventory of Accounts              |      | x    | x    |

## Profile

Level 1 | Manual

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.