Workspace or Cloud Identity audit logs should be shared with Google Cloud
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
| Benchmark | CIS ID | Profile |
|---|---|---|
| CIS Google Cloud Platform Foundation v5.0.0 | 2.2 | Level 1 |
More checks in Logging and Monitoring
- Configure Cloud Audit Logging across all services and usersCIS 2.1
- Configure sinks to export copies of all log entriesCIS 2.3
- Apply Bucket Lock retention policies to log-export storage bucketsCIS 2.4
- Alert on project-ownership assignments/changes via log metric filterCIS 2.5
- Alert on audit-configuration changes via log metric filterCIS 2.6
Go further
- Logging and Monitoring17 controls in this section
- CIS Google Cloud Platform Foundation v5.0.093 controls
- CIS Google Cloud Platform Foundation checklistEvery control in one list, as CSV
- RemediationSee what a fix changes in your tenant before you apply it, then use the generated script
- Monitoring & DriftScheduled scans, drift detection and email alerts when a control regresses
Check this on your Google Cloud
ConfigCobra runs this check with every other control of the CIS Google Cloud Platform Foundation Benchmark, read-only.