Ensure that all the IAM groups within your AWS account are currently used and have at least one user attached. Otherwise, remove any orphaned (unused) IAM groups in order to prevent attaching unauthorized users.
This rule can help you with the following compliance standards:
- APRA
- MAS
- NIST 800-53 (Rev. 4)
This rule can help you work with the AWS Well-Architected Framework
This rule resolution is part of the Cloud Conformity Security & Compliance tool for AWS
Removing orphaned and unused IAM groups eliminates the risk that a forgotten group will be used accidentally to allow unauthorized users to access AWS resources.
Audit
To determine if each IAM group available in your AWS account has at least one user attached, perform the following:
Remediation / Resolution
To remove all your unused IAM groups, perform the following:
References
- AWS Documentation
- AWS Identity and Access Management FAQs
- IAM Best Practices
- AWS Security Audit Guidelines
- Listing IAM Groups
- Deleting an IAM Group
- AWS Command Line Interface (CLI) Documentation
- iam
- list-groups
- get-group
- delete-group
Unlock the Remediation Steps
Gain free unlimited access
to our full Knowledge Base
Over 750 rules & best practices
for and
Get started for FREE
You are auditing:
Unused IAM Group
Risk level: Low