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

Workspace or Cloud Identity audit logs should be shared with Google Cloud

  • Level 1
  • Logging and Monitoring

This check looks at whether admin and sign-in log events from your Google Workspace or Cloud Identity account are shared with your Google Cloud organization. The safe setting is sharing switched on, so those events can be searched and kept next to your cloud audit logs.

Why it matters

Your Google Cloud projects and your Workspace or Cloud Identity directory are two places where an attacker can leave traces. Account changes, group edits and admin actions are recorded in the directory, while resource changes are recorded in Cloud Logging. If the two are not connected, you investigate in two consoles with two retention rules.

Google's sharing option sends the directory's log events to your organization's Google Cloud account, where you can review them in Google Cloud audit logs and, because they sit in the same logging service, search them together with everything else.

Sources: Share data with Google Cloud services (Google Workspace Admin Help), Configure Data Access audit logs (Google Cloud).

How to check it yourself

Admin console (a super administrator is needed to change it, and viewing it is the same screen): Menu > Account > Account settings > Legal and compliance > Sharing options. The value should read Enabled.

Read-only command to see whether directory events actually arrive in Cloud Logging (needs the Logs Viewer role at organization level):

gcloud logging read \
  'protoPayload.serviceName=("admin.googleapis.com" OR "login.googleapis.com")' \
  --organization=ORGANIZATION_ID --freshness=7d --limit=5 \
  --format='value(timestamp,protoPayload.serviceName,protoPayload.methodName)'

Events returned mean the sharing is working. An empty result is not proof it is off, because a quiet week can produce no events, so confirm with the Admin console value.

How to fix it

Admin console: sign in as a super administrator, go to Account > Account settings > Legal and compliance > Sharing options, choose Enabled and select Save. There is no gcloud command for this switch; it lives in the Admin console. ConfigCobra itself never changes your environment.

Afterwards, use the same read-only query above after the next admin action to confirm events show up. Make sure someone owns the logs: decide who may read them at organization level and whether you want a log sink for longer storage.

What changes when you fix it

Nothing changes for end users. The change affects who can see directory log data: events from your Workspace or Cloud Identity account become readable in Google Cloud audit logs, so people with log-viewing roles at organization level can see admin and sign-in activity they could not see before. Review those role assignments first.

Google notes that the shared data follows the Google Cloud admin audit log retention policy, which differs from the Admin console's own retention, so plan any export you need. Turning the option off later stops new sharing, and Google removes already shared data according to that retention period.

Included in

BenchmarkCIS IDProfile
CIS Google Cloud Platform Foundation v5.0.02.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