Help Center/ Config/ User Guide/ Resource Compliance/ Built-In Policies/ Identity and Access Management/ The Admin User Group Only Contains the Root User
Updated on 2024-10-15 GMT+08:00

The Admin User Group Only Contains the Root User

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

iam-user-check-non-admin-group

Identifier

iam-user-check-non-admin-group

Description

If a non-root user was added to the admin user group, this user is noncompliant.

Tag

iam

Trigger Type

Configuration change

Filter Type

iam.users

Configure Rule Parameters

None

Applicable Scenario

The admin user group is a default user group and has full permissions for all cloud resources in an account. It is insecure if non-root users are added to the admin user group or share the same enterprise administrator account. You can add IAM users to related user groups and attach only the necessary permissions to the user groups, so that related personnel or applications can access only the required cloud resources to complete their tasks.

Solution

You can delete non-root users from the admin user group. For more details, see Adding Users to or Removing Users from a User Group.

Rule Logic

  • If an IAM user is the root user, this user is compliant.
  • If an IAM user is disabled, this user is compliant.
  • If a non-root IAM user in the enabled state was added to the admin user group, this user is noncompliant.
  • If a non-root IAM user in the enabled state is not in the admin user group, this user is compliant.