Skip to main content
Five Steps for Cloud Compliance Readiness·A practical playbook for security teamsDownload
CIS Google Cloud Platform Foundation v5.0.0 · 1.2

Google Cloud access should use company-managed accounts, not personal ones

  • Level 1
  • Identity and Access Management

This check looks at who is granted access in your Google Cloud organization and flags identities that are personal consumer accounts rather than accounts your company manages. The safe setting is that every person signs in with a corporate account that your administrators can enforce policy on and switch off.

Why it matters

A personal account is owned by the individual, not the company. You cannot enforce password or sign-in policy on it, you cannot suspend it when the person leaves, and you cannot see how it is protected. If such an account holds a role in your projects, its security depends on someone else's choices.

Google describes the managed identity model in Overview of Google identity management. Using managed accounts from Cloud Identity or Google Workspace keeps the joiner and leaver process, sign-in policy and audit trail in one place that your administrators control.

How to check it yourself

In the Google Cloud console go to IAM & Admin, then IAM, choose the organization from the project picker and review the Principal column. Look for addresses on public mail domains or domains your company does not own.

A read-only command that lists the members with a role at the organization level:

gcloud organizations get-iam-policy <ORGANIZATION_ID> \
  --flatten="bindings[].members" --format="table(bindings.members, bindings.role)"

To search every project and folder under the organization for one domain, use Cloud Asset Inventory:

gcloud asset search-all-iam-policies --scope=organizations/<ORGANIZATION_ID> \
  --query="policy:gmail.com" --format="table(resource, policy.bindings.role, policy.bindings.members)"

Repeat the query for any other consumer domain you see in use.

How to fix it

Portal steps:

  • Create a managed account for each person who needs access, in Cloud Identity or Google Workspace.
  • In IAM, grant that account the roles the person needs, then remove the personal account's roles.
  • Consider the organization policy Domain restricted sharing so that only identities from your own domains can be granted roles in future.

Script (changes your Google Cloud when run; ConfigCobra never changes it):

gcloud projects add-iam-policy-binding <PROJECT_ID> --member="user:<person>@<your-domain>" --role="<role>"
gcloud projects remove-iam-policy-binding <PROJECT_ID> --member="user:<personal-address>" --role="<role>"

Always add the managed account first and confirm it works before removing the old one.

What changes when you fix it

The people behind a personal account must start signing in with their company account. Anything that ran as the personal identity, such as scripts, local tool configuration or saved credentials, stops working after the roles are removed and has to be switched to the new identity or, for automation, to a service account.

If you turn on domain restricted sharing, partners and contractors outside your domains can no longer be granted roles directly; they need a managed account or a group in your domain. ConfigCobra's remediation impact analysis shows the affected identities before you change anything.

Included in

BenchmarkCIS IDProfile
CIS Google Cloud Platform Foundation v5.0.01.2Level 1

Check this on your Google Cloud

ConfigCobra runs this check with every other control of the CIS Google Cloud Platform Foundation Benchmark, read-only.

Get in touch

Let's talk.

Whether you're evaluating ConfigCobra, running an audit, or managing a client fleet — we respond within one business day.

Free trial