๐ก๏ธ Google IAM Policy Binding Member (User) is assigned a basic role๐ข
- Contextual name: ๐ก๏ธ User is assigned a basic role๐ข
- ID:
/ce/ca/google/iam/user-assigned-basic-role - Tags:
- ๐ข Policy with categories
- ๐ข Policy with type
- ๐ข Production policy
- Policy Type:
COMPLIANCE_POLICY - Policy Categories:
SECURITY
Logicโ
- ๐ง prod.logic.yaml๐ข
Descriptionโ
Descriptionโ
This policy identifies Google IAM Users (Google Accounts as principal identifiers) assigned one of the following basic IAM roles: Owner, Editor, or Viewer.
Rationaleโ
Basic roles are highly permissive, granting extensive permissions across all Google Cloud services. This approach violates the principle of least privilege and increases the risk of security breaches, accidental data loss, or service disruptions if a userโs credentials are compromised or misused. Adopting more granular predefined roles, or creating custom roles tailored to specific tasks, helps ensure users have only the permissions necessary to perform their job functions.
Impactโ
Requires careful planning to ensure the user retains the necessary permissions to perform their job functions without interruption.
Auditโ
This policy flags a Google IAM Policy Binding Member (User) as
INCOMPLIANTif its related Google IAM Policy BindingIAM Role Nameis set to roles/owner, roles/editor, or roles/viewer.
Remediationโ
Remediationโ
From Google Cloud Consoleโ
- Navigate to IAM & Admin โ IAM: https://console.cloud.google.com/iam-admin/iam
- Locate any members assigned the Owner, Editor, or Viewer roles.
- Click the Delete Bin icon to remove the role from the member.
- Assign a more granular role based on the userโs job responsibilities.
Note: Role removal should be guided by business requirements to ensure users retain necessary access.
From gcloud CLIโ
Remove the basic role from the user:
gcloud {{projects | organizations | resource-manager folders}} remove-iam-policy-binding {{resource-id}} \
--member="user:{{user-email}}" \
--role="{{roles/owner}}"Assign a least-privilege role appropriate for the userโs responsibilities:
gcloud {{projects | organizations | resource-manager folders}} add-iam-policy-binding {{resource-id}} \
--member="user:{{user-email}}" \
--role="{{least-privilege-role}}"... see more