This rule states that IAM users must not have any inline or attached policies assigned to them.
Rule | IAM user should not have any inline or attached policies |
Framework | GxP 21 CFR Part 11 |
Severity | ✔ Low |
Rule Description: IAM User should not have any inline or attached policies for GxP 21 CFR Part 11
Overview
This rule ensures that IAM users do not have any inline or attached policies related to GxP 21 CFR Part 11. GxP 21 CFR Part 11 is a regulatory standard in the pharmaceutical industry that outlines requirements for electronic records and signatures. By enforcing this rule, you can maintain compliance with regulatory standards and protect sensitive data.
Troubleshooting Steps:
Code:
There is no specific code required for this rule, as it relies on the management of IAM policies and user permissions. However, you can use AWS CLI commands to review and modify IAM policies if necessary.
List attached policies for an IAM user:
aws iam list-attached-user-policies --user-name <user-name>
List inline policies for an IAM user:
aws iam list-user-policies --user-name <user-name>
Remove an attached policy from an IAM user:
aws iam detach-user-policy --user-name <user-name> --policy-arn <policy-arn>
Delete an inline policy from an IAM user:
aws iam delete-user-policy --user-name <user-name> --policy-name <policy-name>
Remediation Steps:
Note: Ensure that any necessary policies and permissions are included based on the specific requirements of the user's role and responsibilities, excluding any non-compliant policies for GxP 21 CFR Part 11.