IAM policies should be attached and managed at the group level

Description

By default, IAM users, groups, and roles have no access to AWS resources. IAM policies are the mechanism through which privileges are granted. Datadog recommends that you apply IAM policies directly to groups, not to individual users or roles.

Assigning IAM policies through groups unifies permissions management to a single, flexible layer that aligns with organizational functional roles. This approach reduces the likelihood of granting excessive permissions and simplifies the management of user privileges.

Remediation

For instructions on properly applying IAM policies to groups, refer to Managed policies and inline policies.