Ensure that Resource Access Management (RAM) policies be applied directly to groups but not users in order to manage more efficiently user-based access to your Alibaba Cloud resources and follow the Principle of Least Privilege (POLP).
Assigning privileges only through RAM groups unifies permissions management to a single, flexible layer, consistent with organizational functional roles, therefore instead of defining permissions for individual RAM users, it is recommended to create RAM groups that relate to job functions (administrators, developers, testers, etc.) and add users to these groups as needed (or switch users between groups as they receive different roles in your organization). All the users within an group inherit the permissions assigned to the user group. In this way, you can make changes for everyone within a user group in just one place. By unifying permissions management, the likelihood of excessive permissions is greatly reduced.
Audit
To determine if your RAM users receive permissions through RAM groups only, perform the following operations:
Remediation / Resolution
To change the permissions configuration for your RAM users in order to receive access permissions through RAM groups only, perform the following operations:
References
- Alibaba Cloud Documentation
- Create a RAM user group
- Grant permissions to a RAM user group
- Add a RAM user to a RAM user group
- Alibaba Cloud CLI Documentation
- ListUsers
- ListPoliciesForUser
- CreateGroup
- AttachPolicyToGroup
- AddUserToGroup
- DetachPolicyFromUser