Information
The Owner role in Azure grants full control over all resources in a subscription, including the ability to assign roles to others.
Limit the number of security principals (users, groups, service principals, and managed identities) assigned the Owner role to between 2 and 3. If groups are used, ensure their membership is tightly controlled and regularly reviewed to avoid privilege sprawl.
NOTE: Nessus has not performed this check. Please review the benchmark to ensure target compliance.
Solution
Remediate from Azure Portal
- Go to Subscriptions.
- Click the name of a subscription.
- Click Access Controls (IAM).
- Click Role assignments.
- Click Role : All.
- Click the arrow next to All.
- Click Owner.
- Check the box next to members from whom the owner role should be removed.
- Click Delete.
- Click Yes.
- Repeat steps 1-10 for each subscription requiring remediation.
Remediate from Azure CLI
Run the following command to delete role assignments by role assignment id:
az role assignment delete --ids <role-assignment-ids>
Impact:
Implementation may require changes in administrative workflows or the redistribution of roles and responsibilities.The recommendation to have between 2 and 3 Owners per subscription must account for all security principals that can be assigned the Owner role, not just individual users. This includes:
- User accounts
- Entra ID groups
- Service principals (used by applications or automation)
- Managed identities (system-assigned or user-assigned)