Updated on 2024-10-28 GMT+08:00

IAM Users Are in Specified User Groups

Rule Details

Table 1 Rule details

Parameter

Description

Rule Name

iam-user-group-membership-check

Identifier

iam-user-group-membership-check

Description

If an IAM user is not in any of the specified IAM user groups, this user is noncompliant.

Tag

iam

Trigger Type

Configuration change

Filter Type

iam.users

Configure Rule Parameters

groupIds: user group IDs. If no user group IDs are specified, the evaluation covers all user groups. The value must be an array with up to 10 elements.

Applicable Scenario

The administrator can assign permissions to user groups and add users to these groups. Adding or removing users from a user group allows you to efficiently manage user permissions.

Solution

You can add noncompliant IAM users to some user groups. You can also disable or delete these users if you do not need them any longer.

Rule Logic

  • If an IAM user is disabled, this user is compliant.
  • If an enabled IAM user has been added to at least one user group, and no user groups are specified, this IAM user is compliant.
  • If an enabled IAM user has not been added to any user groups, and no user groups are specified, this IAM user is noncompliant.
  • If an enabled IAM user has been added to any of the specified user groups, this IAM user is compliant.
  • If an enabled IAM user has not been added to any of the specified user groups, this IAM user is noncompliant.