Collects Google Workspace identity and security posture metrics
epack install collector google-workspace
Adds to epack.yaml, resolves dependencies, downloads binary.
Run all configured collectors and build a pack:
epack collect
Runs all collectors in epack.yaml and outputs an evidence pack.
Or add manually to epack.yaml:
collectors:
google-workspace:
source: https://github.com/locktivity/epack-collector-google-workspace
Then run epack install to lock and sync.
The Google Workspace collector gathers security posture metrics from your Google Workspace tenant. It covers authentication strength, account hygiene, privileged access, password health, third-party app exposure, and positive-only Context-Aware Access deny evidence related to device state.
The collector always emits a detailed artifact and a collector result, and emits a normalized artifact when it can read the tenant's primary domain:
artifacts/google-workspace.details.json: detailed Google Workspace posture metrics (always emitted)artifacts/google-workspace.idp-posture.json: normalized evidencepack/idp-posture@v1 artifact for cross-provider comparison (omitted when the tenant record cannot be read, which takes a Super Admin)artifacts/google-workspace.collector-result.json: the values the collector could not read, each with a code such as permission_denied or not_licensed, and the API calls it made (always emitted)A value the collector could not read is null in the detailed artifact, or absent in the normalized one, and the collector result says why. A percentage over no users is null in both. A normalized value Google Workspace has no data for is absent too, and the collector result lists it with the code unsupported. A normalized value Google reports through a read the collector does not make yet is absent with the code not_read. The usage report counts (users.total, suspended, archived) and the percentages derived from them are as of usage_report_date, two to three days back; users.active and the 2-step verification, activity, inactivity, and admin metrics come from the live Directory scan.
{
"schema_version": "1.0.0",
"collected_at": "2026-04-08T12:00:00Z",
"usage_report_date": "2026-04-07",
"provider": "google-workspace",
"org_domain": "example.com",
"customer_id": "C123abc",
"users": {
"total": 120,
"suspended": 10,
"archived": 5,
"active": 105,
"locked_pct": 0.83,
"inactive_pct": 4.76,
"inactive_days": 90
},
"activity": {
"active_7d_pct": 78.33,
"active_30d_pct": 91.67
},
"authentication": {
"2sv_enrolled_pct": 92.5,
"2sv_enforced_pct": 88.33,
"2sv_protected_pct": 90.0,
"passkey_users_pct": 12.5,
"security_keys_total": 35
},
"admins": {
"privileged_users_count": 7,
"super_admin_count": 3,
"delegated_admin_count": 5,
"privileged_users_2sv_enrolled_pct": 85.71,
"privileged_users_2sv_enforced_pct": 100.0
},
"passwords": {
"weak_password_pct": 4.17,
"password_length_non_compliant_pct": 2.5,
"policy": {
"minimum_length": 8,
"maximum_length": 100,
"allowed_strength": "strong",
"enforce_requirements_at_login": false,
"allow_reuse": false,
"expiration_days": 0,
"distinct_policies": 2
}
},
"sign_in": {
"web_session_duration_max_minutes": 20160,
"less_secure_apps_allowed": false
},
"apps": {
"authorized_apps_count": 47
},
"device_access": {
"lookback_days": 90,
"context_aware_access_denied_events": 12,
"device_state_denied_events": 4,
"managed_device_requirement_evidenced": true,
"access_context_manager": {
"access_policy_name": "accessPolicies/123456789",
"access_policy_parent": "organizations/987654321",
"basic_access_levels_count": 6,
"custom_access_levels_count": 1,
"basic_device_policy_access_levels_count": 2,
"basic_managed_device_access_levels_count": 1,
"basic_device_policy_access_level_titles": ["Corp Device", "High Trust Device"]
}
}
}
customer_id, access_policy_name, and access_policy_parent are written from the audit level. A trust run leaves them out.
{
"schema_version": "1.0.0",
"collected_at": "2026-04-08T12:00:00Z",
"provider": "google_workspace",
"org_domain": "example.com",
"user_security": {
"users_present": true,
"user_count": 105,
"inactive_user_count": 5,
"mfa_coverage_pct": 92,
"mfa_phishing_resistant_pct": 12,
"inactive_pct": 5,
"locked_out_pct": 1,
"weak_password_pct": 5,
"password_policy_noncompliant_pct": 3
},
"privileged_access": {
"privileged_users_present": true,
"privileged_users_count": 7,
"super_admin_count": 3,
"privileged_mfa_user_count": 6,
"privileged_mfa_coverage_pct": 85
},
"policy": {
"mfa_required": false,
"mfa_required_user_count": 93,
"mfa_required_coverage_pct": 88,
"session_lifetime_max_min": 20160
},
"lifecycle": {
"accounts_present": true,
"account_count": 120,
"suspended_account_count": 10,
"archived_account_count": 5,
"suspended_pct": 9,
"archived_pct": 5
},
"device_access": {
"managed_device_required": true
}
}
The normalized artifact follows the evidencepack/idp-posture@v1 schema, matching the same shape used by the Okta and other IDP collectors. The example is an audit-level artifact. At the trust level the counts are left out and the *_present flags stay. app_security.authorized_third_party_apps_count is written at the internal level only.
Each normalized percentage is a whole number. A percentage where more is better, such as MFA coverage, rounds down. One where more is worse, such as inactive users, rounds up. The detailed artifact keeps two decimal places.
user_security.user_count is the live Directory scan's active users. inactive_pct is taken over it, and so is the 2SV share in mfa_coverage_pct. The other user_security percentages come from the usage report and are taken over its total users, which include suspended and archived accounts. Their counts are left out, because their total differs from user_count. When the user scan fails, users_present is unknown and those percentages are left out.
| Normalized field | Google Workspace source | Notes |
|---|---|---|
user_security.users_present, user_count |
users.active |
Users in the live Directory scan who are not suspended or archived |
user_security.mfa_coverage_pct |
authentication.2sv_enrolled_pct, passkey_users_pct |
The larger of two shares. One is the active users enrolled in 2SV, over the live scan's active users. The other is the usage report's passkey users, over its total users. Suspended and archived users are left out of the 2SV share |
user_security.mfa_phishing_resistant_pct |
passkey_users_pct |
Passkey adoption as phishing-resistant proxy |
user_security.inactive_pct, inactive_user_count |
users.inactive_pct |
Over the live scan's active users |
user_security.locked_out_pct |
users.locked_pct |
Over the usage report's total users |
user_security.weak_password_pct |
weak_password_pct |
Over the usage report's total users |
user_security.password_policy_noncompliant_pct |
password_length_non_compliant_pct |
Users that fail the tenant password length policy |
app_security.authorized_third_party_apps_count |
authorized_apps_count |
OAuth-connected third-party application count |
privileged_access.privileged_users_present, privileged_users_count |
privileged_users_count, admin roles |
Active super admins, and active delegated admins with a role that can change users, groups, org units, security, or settings, whether the role is assigned to them or to a group they are in. A role that can only retrieve or read does not count |
privileged_access.super_admin_count |
super_admin_count |
Excludes suspended and archived admins |
privileged_access.privileged_mfa_coverage_pct, privileged_mfa_user_count |
privileged_users_2sv_enrolled_pct |
Active privileged users with 2SV enrolled. Absent when a privileged delegated admin may sign in through a third-party SAML profile |
privileged_access.standing_privileged_users_present, standing_privileged_users_count |
privileged_users_count |
false and 0 for a tenant with no admins, and absent otherwise |
policy.mfa_required |
2sv_enforced_pct |
true only when every active user has 2SV enforced by policy |
policy.mfa_required_coverage_pct, mfa_required_user_count |
2sv_enforced_pct |
Active users with 2SV enforced by policy |
policy.session_lifetime_max_min |
sign_in.web_session_duration_max_minutes |
The longest web session any org unit or group allows |
lifecycle.accounts_present, account_count |
users.total |
The usage report's total users, in every state |
lifecycle.suspended_pct, suspended_account_count |
users.suspended |
Uses the usage report's suspended user count |
lifecycle.archived_pct, archived_account_count |
users.archived |
Uses the usage report's archived user count |
device_access.managed_device_required |
device_access.managed_device_requirement_evidenced |
Emitted only when Context-Aware Access deny events include a device-state parameter |
The detailed artifact's admins.privileged_users_count counts every active user with isAdmin or isDelegatedAdmin. The normalized privileged_access counts a delegated admin only when a role assigned to them can change users, groups, org units, security, or settings, so the collector reads the admin roles and role assignments at every level when there is a delegated admin. The customer's list of role assignments holds only the roles assigned to a user directly, so the collector also lists each delegated admin's own assignments, which add the roles of the groups they are in. That is one more call for each delegated admin, under the same admin.directory.rolemanagement.readonly scope. When the roles or any of these assignments can't be read, the privileged counts are left out with a partial gap, and the super admins still make privileged_users_present true.
Users that an SSO assignment sends to a third-party SAML profile sign in through that identity provider, which decides their MFA, so Google 2-Step Verification does not cover them. The collector reads the SAML profiles and SSO assignments at every level. When an assignment sends an org unit or group to a SAML profile, the normalized MFA values (user_security.mfa_coverage_pct, mfa_phishing_resistant_pct, and the policy.mfa_required values) are left out with an unsupported gap that names the identity provider. The collector does not work out which users the assignments cover.
The password policy stays in the detailed artifact under passwords.policy, since the idp-posture schema has no password policy fields.
These normalized values are left out with an unsupported gap, since Google Workspace has no data for them:
app_security.sso_coverage_pct, provisioning_enabled_pct, deprovisioning_enabled_pct, and apps_present, with their counts. No Google Workspace API lists the apps set up for SSO or their provisioning settings.policy.idle_timeout_max_min. Google Workspace has no idle timeout for sign-in sessions. Its session controls set only a web session length.device_access.managed_device_required_for_admins. No API reports the Context-Aware Access levels assigned to apps.policy.legacy_auth_blocked. Google stopped supporting less secure apps on May 1, 2025, so that setting has no effect on it. App passwords still allow password-only sign-in for users with 2-step verification, and no API reports whether they are in use.These normalized values are left out with a not_read gap, since Google reports them through reads the collector does not make yet:
privileged_access.privileged_phishing_resistant_pct and its count. The Reports API's user usage report gives each user's passkeys as accounts:num_passkeys_enrolled, under admin.reports.usage.readonly.policy.phishing_resistant_required_for_privileged. The Policy API gives each org unit's and group's allowed 2-Step Verification methods in security.two_step_verification_enforcement_factor, under cloud-identity.policies.readonly.privileged_access.standing_privileged_users_present and its count, for a tenant with admins. An admin role can be assigned until a set time. The Directory API gives that time in a role assignment's expirationDetails.expireTime, under admin.directory.rolemanagement.readonly.device_access.managed_device_required is positive-only evidence derived from Context-Aware Access audit logs. The collector sets it only when Google reports ACCESS_DENY_EVENT entries whose parameters include a device-state field. This is evidence that a device-state access level fired, not proof of complete policy coverage, and Google does not emit grant events for clean passes. Context-Aware Access monitor mode can also produce similar deny-style events, so the collector surfaces this as evidence with an explicit diagnostics caveat rather than as a full configuration truth.
When organization_id or access_policy is configured and the service account has roles/accesscontextmanager.policyReader, the detailed artifact also includes an access_context_manager summary under device_access. This summarizes basic access levels with devicePolicy conditions and counts any custom CEL access levels, but it still does not prove which Workspace apps those levels are attached to. A level's device requirements come only from conditions every request has to meet, so a condition joined with OR or set to Don't meet is left out of them.
User population and account health.
| Metric | Why It Matters |
|---|---|
total |
Tenant size. Total user accounts including suspended and archived. |
suspended |
Disabled accounts. Users administratively suspended from the tenant. |
archived |
Retained accounts. Users archived but not deleted, often for compliance retention. |
locked_pct |
Potential attack indicator. Spikes in lockout rates may indicate brute force or credential stuffing attacks. |
active |
Live population. Users not suspended or archived in the live Directory scan. The inactivity, 2-step verification enrollment and enforcement, and activity percentages are calculated against it. |
inactive_pct |
Orphan account risk. Inactive accounts (90+ days no login) are prime targets for attackers. They may belong to departed employees or unused service accounts. |
inactive_days |
Inactivity threshold. The number of days used to classify a user as inactive (default: 90). |
Login activity rates across the tenant.
| Metric | Why It Matters |
|---|---|
active_7d_pct |
Short-term engagement. Percentage of users who logged in within the last 7 days. Low values may indicate shadow IT or alternative access paths. |
active_30d_pct |
Monthly engagement. Percentage of users active in the last 30 days. A large gap between this and 7-day activity may indicate periodic or seasonal users. |
Two-step verification and phishing-resistant credential adoption.
| Metric | Why It Matters |
|---|---|
2sv_enrolled_pct |
Account takeover protection. 2-step verification significantly reduces credential-based attacks. Low enrollment leaves accounts vulnerable to password spraying and phishing. |
2sv_enforced_pct |
Policy enforcement. Users with 2SV enforced by admin policy, not just voluntarily enrolled. The gap between enrolled and enforced indicates reliance on user opt-in. |
2sv_protected_pct |
Protected users. Share of users protected by 2SV in the usage report. It includes users still in an enrollment grace period, who have not set up a second factor yet. |
passkey_users_pct |
Passwordless adoption. Passkeys are phishing-resistant by design. Tracks progress toward eliminating password-based authentication. |
security_keys_total |
Hardware key inventory. Total registered security keys (FIDO2/U2F). Useful for tracking hardware rollout across the organization. |
Privileged account exposure and enforcement.
| Metric | Why It Matters |
|---|---|
privileged_users_count |
Unique privileged identities. Counts active users with any privileged role without double-counting users that hold multiple admin role types. |
super_admin_count |
Blast radius. Super admins have unrestricted access. Fewer is better. Industry guidance recommends 2-4 for business continuity without excess risk. |
delegated_admin_count |
Delegated access scope. Delegated admins have subset privileges. High counts may indicate over-delegation. |
privileged_users_2sv_enrolled_pct |
Admin MFA coverage. Tracks whether privileged users have actually enrolled in 2SV, which is the closest Google Workspace signal to real privileged MFA coverage. |
privileged_users_2sv_enforced_pct |
Admin MFA enforcement. The single most important metric for third-party risk. 100% means all active privileged users have 2SV enforced by policy. |
Password hygiene across the tenant.
| Metric | Why It Matters |
|---|---|
weak_password_pct |
Credential strength. Users with passwords classified as weak by Google. Indicates exposure to brute force and dictionary attacks. |
password_length_non_compliant_pct |
Policy compliance. Users whose passwords don't meet the configured minimum length requirement. Non-zero values indicate policy enforcement gaps. |
policy.minimum_length |
The requirement itself. The shortest password the tenant will accept. Without it, a zero non-compliance rate is ambiguous: it reads the same whether the minimum is 14 or Google's floor of 8. |
policy.maximum_length |
Upper bound. Informational. |
policy.allowed_strength |
Strength requirement. strong means Google rejects passwords its strength algorithm rates weak. Google Workspace has no character-class complexity setting; this is the equivalent control. |
policy.enforce_requirements_at_login |
Does the policy bind existing users? False means a password that predates the policy survives until its owner chooses to change it. This is what makes the non-compliance percentage interpretable: with enforcement off, a zero rate is voluntary compliance rather than a forced migration. |
policy.allow_reuse |
Reuse restriction. True means a previous password can be set again. |
policy.expiration_days |
Rotation. 0 means passwords never expire, which is the weakest setting rather than the strongest. |
policy.distinct_policies |
Uniformity. Greater than 1 means org units or groups have different policies and every value above describes the weakest one in force. |
The policy values describe the weakest policy anywhere in the tenant, so a
reviewer can rely on them holding everywhere. The whole policy object is
omitted when it could not be read: absence never means permissive.
Google does not apply these requirements to passwords set through the Directory
API, the bulk upload tool, sync tools, or an administrator reset. That is why
the outcome percentages stay alongside the policy rather than being replaced by
it: the percentages observe what the policy bypasses.
Sign-in settings from the Policy API. Each value is the weakest one any org unit or group gets. A value is absent, with a gap, when its policies could not be read or the Policy API returned none.
| Metric | Why It Matters |
|---|---|
web_session_duration_max_minutes |
Session length. The longest time anyone stays signed in on the web before Google asks them to sign in again. A shorter session limits how long a stolen session cookie works. Rounded up to whole minutes. |
less_secure_apps_allowed |
Retired setting. True when any org unit or group still has the less secure apps setting turned on. Google stopped supporting less secure apps on May 1, 2025, so the value no longer means people can sign in with only a username and password. |
Third-party application exposure.
| Metric | Why It Matters |
|---|---|
authorized_apps_count |
OAuth exposure surface. Number of third-party apps authorized to access tenant data. High counts increase data exfiltration risk and expand the supply chain attack surface. |
Context-Aware Access deny evidence.
| Metric | Why It Matters |
|---|---|
lookback_days |
Evidence window. Number of days of audit history searched for device-state-based denials. |
context_aware_access_denied_events |
Control activity. Total Context-Aware Access deny events seen in the audit window. |
device_state_denied_events |
Managed-device evidence. Denials that specifically included a device-state parameter, indicating device posture was part of the access decision. |
managed_device_requirement_evidenced |
Positive-only signal. true means Google audit logs show device-state access levels firing somewhere in the tenant; it is not proof of full policy coverage, and monitor-mode events can look similar. |
access_context_manager.* |
Config enrichment. Optional Google Cloud access-level summary that helps you see whether the org has basic device-policy access levels configured, even though Workspace-side app assignment is still API-thin. |
Google offers the following through its APIs, and the collector does not read them.
audit level. The collector writes no endpoint-posture file.Follow these steps once. Steps 1 to 3 and 5 to 6 are the same whichever
authentication mode you use; step 4 is where they differ.
| API | Enable it for |
|---|---|
| Admin SDK API | Every run |
| Cloud Identity API | Every run (password policy, web session length, and less secure apps; SAML profiles at audit and above) |
| IAM Service Account Credentials API | auth_mode: oidc only |
| Groups Settings API | audit and internal |
| Google Vault API | audit and internal (also needs a Vault license) |
| Access Context Manager API | Optional device_access enrichment |
APIs are separate from OAuth scopes. If an API is off, its surface fails with a
SERVICE_DISABLED diagnostic even when the scope is granted, and the rest of
the run continues.
epack-collector.Choose one. oidc creates no key and is preferred on CI.
Everything here is in the same Cloud project as the service account.
roles/iam.workloadIdentityUser on the
service account. This lets the runner act as it.roles/iam.serviceAccountTokenCreator on itself.
This lets it sign delegation assertions with the Google-managed key.epack.yaml, set auth_mode: oidc, workload_identity_provider, and
service_account, and list ACTIONS_ID_TOKEN_REQUEST_URL and
ACTIONS_ID_TOKEN_REQUEST_TOKEN under secrets:.id-token: write permission.Step 5 is easy to miss. The service account holds a role on itself, which looks
odd but is what allows signing without a downloaded key.
The collector builds the exchange and impersonation endpoints from the two
config keys, so no credential file is involved and no auth step is needed in the
workflow.
Skip this if you followed Option A. Some organizations block key creation with
the iam.disableServiceAccountKeyCreation policy.
GOOGLE_SERVICE_ACCOUNT_JSON.This key grants access to your tenant. Treat it as a credential.
| Surface | Scope | Needed at |
|---|---|---|
| Customer + Users | admin.directory.user.readonly, admin.directory.customer.readonly |
trust |
| Activity / usage | admin.reports.usage.readonly |
trust |
| Context-Aware Access (device_access) | admin.reports.audit.readonly |
trust |
| Password policy, web session length, less secure apps | cloud-identity.policies.readonly |
trust |
| Audit logs (admin, login, token, drive sharing) | admin.reports.audit.readonly |
audit / internal |
| Admin roles | admin.directory.rolemanagement.readonly |
trust, when a delegated admin exists; audit / internal |
| Groups | admin.directory.group.readonly, admin.directory.group.member.readonly, apps.groups.settings |
audit / internal |
| Org units | admin.directory.orgunit.readonly |
audit / internal |
| Endpoint (devices) | admin.directory.device.mobile.readonly, admin.directory.device.chromeos.readonly |
audit / internal |
| Domain settings | admin.directory.domain.readonly |
audit / internal |
| SSO (SAML profiles and SSO assignments) | cloud-identity.inboundsso.readonly |
trust |
| Vault (eDiscovery) | ediscovery.readonly |
audit / internal (requires a Vault license) |
All scopes as one comma-separated list, for pasting into the admin console:
https://www.googleapis.com/auth/admin.directory.user.readonly,https://www.googleapis.com/auth/admin.directory.customer.readonly,https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly,https://www.googleapis.com/auth/admin.directory.group.readonly,https://www.googleapis.com/auth/admin.directory.group.member.readonly,https://www.googleapis.com/auth/admin.directory.orgunit.readonly,https://www.googleapis.com/auth/admin.directory.device.mobile.readonly,https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly,https://www.googleapis.com/auth/admin.directory.domain.readonly,https://www.googleapis.com/auth/admin.reports.usage.readonly,https://www.googleapis.com/auth/admin.reports.audit.readonly,https://www.googleapis.com/auth/apps.groups.settings,https://www.googleapis.com/auth/cloud-identity.inboundsso.readonly,https://www.googleapis.com/auth/cloud-identity.policies.readonly,https://www.googleapis.com/auth/ediscovery.readonly
Grants are not retroactive. If you add a scope later, re-grant it here.
Set admin_email to a Super Admin account; several of the admin API reads
require one. The read-only scopes from step 5 still limit what the collector
can read. A common setup is a dedicated epack-collector@<domain> user.
With a narrower admin role the run still succeeds, but org_domain is null,
and so is customer_id, which runs write from the audit level. The
normalized artifact is not emitted, and the surfaces that role cannot read are
left out with a diagnostic.
Adds access-level config to the detailed artifact alongside Context-Aware Access
deny evidence.
roles/accesscontextmanager.policyReader on the
Cloud organization.organization_id, to discover the policy under organizations/{id}.access_policy, an explicit policy resource such as
accessPolicies/123456789 or its numeric ID. Takes precedence.The normalized artifact stays conservative either way, because Workspace-side
app assignment and monitor-mode details are not fully exposed by API.
| Option | Required | Description |
|---|---|---|
admin_email |
Yes | Workspace admin account to impersonate |
auth_mode |
No | oidc, or service_account_key when omitted |
workload_identity_provider |
With oidc |
Full provider resource path |
service_account |
With oidc |
Account to impersonate and sign as |
customer |
No | Google customer key. Defaults to my_customer |
organization_id |
No | Cloud organization ID for device_access enrichment |
access_policy |
No | Explicit Access Context Manager policy. Takes precedence over organization_id |
| Variable | Description |
|---|---|
GOOGLE_SERVICE_ACCOUNT_JSON |
Key file contents, not a path. Required for service_account_key, unused for oidc |
ACTIONS_ID_TOKEN_REQUEST_URL |
Set by GitHub Actions when the workflow grants id-token: write. Required for oidc |
ACTIONS_ID_TOKEN_REQUEST_TOKEN |
Set alongside the URL. Authorizes fetching one identity token per run. Required for oidc |
A missing scope, API, or role never fails the run: the affected surface is
omitted and a diagnostic says which of the three is missing, because each is
fixed in a different console. The collector result,
artifacts/google-workspace.collector-result.json, lists every value left out
with a code. The run fails only when it cannot sign in, which exits 3, or when
the configuration is invalid, which exits 2.
| Message | Fix |
|---|---|
authentication required: provide GOOGLE_SERVICE_ACCOUNT_JSON |
Pass the key contents, or set auth_mode: oidc |
invalid auth_mode |
Use oidc or service_account_key |
workload_identity_provider is not set |
auth_mode: oidc needs it and service_account |
the runner exposes no OIDC identity |
Add id-token: write to the workflow, and list the two request variables under secrets: |
creating JWT config |
GOOGLE_SERVICE_ACCOUNT_JSON is not valid JSON. Copy-paste often truncates it |
With auth_mode: oidc, the exchange and the signing are deferred until
something is collected, so setup mistakes appear here rather than at startup.
| Message mentions | Fix |
|---|---|
roles/iam.serviceAccountTokenCreator |
Grant that role to the service account on itself (step 4, item 5) |
iamcredentials.googleapis.com |
Enable the IAM Service Account Credentials API |
the workload identity exchange was rejected |
Check the pool, the provider's attribute condition, and roles/iam.workloadIdentityUser |
invalid_grant |
Google rejected the assertion: check that the key is current, admin_email is a real user, delegation is enabled, and the Client ID matches |
unauthorized_client |
The delegation grant lacks admin.directory.user.readonly, which every run reads: re-check the scope list from step 5 |
Check the diagnostics block. It names which of the three grants is missing.
| Diagnostic | Fix |
|---|---|
surface customer: impersonation user lacks required admin role: Super Admin |
Impersonate a Super Admin (step 6); narrower admin roles, including custom ones, cannot read the tenant record |
| scope denied | Add that scope in the admin console and re-grant |
SERVICE_DISABLED |
Enable that API in the Cloud project |
| admin role | Give the impersonated user a role that can read the surface |
| feature requires a license | The tenant's edition does not include it, for example Vault |
passwords.policy is omitted rather than zeroed when it cannot be read, so an
absent policy never reads as a permissive one. The diagnostics distinguish a
missing scope, a disabled API, an insufficient role, an edition without the
Policy API, and a tenant that exposes no policy.
sign_in.web_session_duration_max_minutes and less_secure_apps_allowed come
from the same Policy API, so they are left out for the same reasons, each with
a gap. A tenant whose Policy API returns no password, session or less secure
apps policy gets a vendor_error gap on that value.
A permission_denied gap names what to grant as missing_permission, when
Google's refusal shows it. For a delegation grant without a surface's scope,
that is the scope, such as
https://www.googleapis.com/auth/cloud-identity.policies.readonly. For Access
Context Manager, it is the IAM permission, such as
accesscontextmanager.policies.list. A refusal for an admin role without the
privilege names none, since the scope is already granted. Each operation in the
collector result lists the permission its call needs as permission.
Usage reports cover the previous day, and very new tenants may have none yet.
The collector skips a day Google marks as partial and uses the newest complete
report. The usage_report_date field shows which day the artifact covers. When
none of the last 10 days has a complete report, usage_report_date and the
values from the report are null.
stream: myorg/google-workspace-posture
collectors:
google-workspace:
source: locktivity/epack-collector-google-workspace@^0.2
config:
admin_email: admin@example.com
secrets:
- GOOGLE_SERVICE_ACCOUNT_JSON
Then run:
export GOOGLE_SERVICE_ACCOUNT_JSON="$(cat /path/to/service-account.json)"
epack collect
See Configuration for service account setup instructions.
If your service account has access to a specific Google Workspace tenant, set the customer key explicitly:
collectors:
google-workspace:
source: locktivity/epack-collector-google-workspace@^0.2
config:
customer: C0123abc
organization_id: "987654321"
admin_email: admin@example.com
secrets:
- GOOGLE_SERVICE_ACCOUNT_JSON
The collector always emits the detailed artifact. The normalized artifact is included when the tenant's primary domain can be read, which takes a Super Admin.
artifacts/google-workspace.details.json{
"schema_version": "1.0.0",
"collected_at": "2026-04-08T12:00:00Z",
"usage_report_date": "2026-04-07",
"provider": "google-workspace",
"org_domain": "example.com",
"customer_id": "C123abc",
"users": {
"total": 120,
"suspended": 10,
"archived": 5,
"active": 105,
"locked_pct": 0.83,
"inactive_pct": 4.76,
"inactive_days": 90
},
"activity": {
"active_7d_pct": 78.33,
"active_30d_pct": 91.67
},
"authentication": {
"2sv_enrolled_pct": 92.5,
"2sv_enforced_pct": 88.33,
"2sv_protected_pct": 90.0,
"passkey_users_pct": 12.5,
"security_keys_total": 35
},
"admins": {
"privileged_users_count": 7,
"super_admin_count": 3,
"delegated_admin_count": 5,
"privileged_users_2sv_enrolled_pct": 85.71,
"privileged_users_2sv_enforced_pct": 100.0
},
"passwords": {
"weak_password_pct": 4.17,
"password_length_non_compliant_pct": 2.5,
"policy": {
"minimum_length": 8,
"maximum_length": 100,
"allowed_strength": "strong",
"enforce_requirements_at_login": false,
"allow_reuse": false,
"expiration_days": 0,
"distinct_policies": 2
}
},
"sign_in": {
"web_session_duration_max_minutes": 20160,
"less_secure_apps_allowed": false
},
"apps": {
"authorized_apps_count": 47
},
"device_access": {
"lookback_days": 90,
"context_aware_access_denied_events": 12,
"device_state_denied_events": 4,
"managed_device_requirement_evidenced": true,
"access_context_manager": {
"access_policy_name": "accessPolicies/123456789",
"access_policy_parent": "organizations/987654321",
"basic_access_levels_count": 6,
"custom_access_levels_count": 1,
"basic_device_policy_access_levels_count": 2,
"basic_managed_device_access_levels_count": 1,
"basic_device_policy_access_level_titles": ["Corp Device", "High Trust Device"]
}
}
}
artifacts/google-workspace.idp-posture.json{
"schema_version": "1.0.0",
"collected_at": "2026-04-08T12:00:00Z",
"provider": "google_workspace",
"org_domain": "example.com",
"user_security": {
"users_present": true,
"user_count": 105,
"inactive_user_count": 5,
"mfa_coverage_pct": 92,
"mfa_phishing_resistant_pct": 12,
"inactive_pct": 5,
"locked_out_pct": 1,
"weak_password_pct": 5,
"password_policy_noncompliant_pct": 3
},
"privileged_access": {
"privileged_users_present": true,
"privileged_users_count": 7,
"super_admin_count": 3,
"privileged_mfa_user_count": 6,
"privileged_mfa_coverage_pct": 85
},
"policy": {
"mfa_required": false,
"mfa_required_user_count": 93,
"mfa_required_coverage_pct": 88,
"session_lifetime_max_min": 20160
},
"lifecycle": {
"accounts_present": true,
"account_count": 120,
"suspended_account_count": 10,
"archived_account_count": 5,
"suspended_pct": 9,
"archived_pct": 5
},
"device_access": {
"managed_device_required": true
}
}
All coverage values are percentages (0-100). See Overview for detailed metric descriptions.
name: Collect Google Workspace Posture
on:
schedule:
- cron: "0 6 * * *"
workflow_dispatch:
jobs:
collect:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install epack
run: |
curl -sSL https://install.epack.dev | bash
- name: Collect evidence
run: epack collect --frozen
env:
GOOGLE_SERVICE_ACCOUNT_JSON: ${{ secrets.GOOGLE_SERVICE_ACCOUNT_JSON }}
Store the service account JSON as a repository secret named GOOGLE_SERVICE_ACCOUNT_JSON.
If a single service account has domain-wide delegation across tenants, use the customer key to target each one in its own epack.yaml:
# epack-prod.yaml
collectors:
google-workspace:
source: locktivity/epack-collector-google-workspace@^0.2
config:
customer: C0abc123
admin_email: admin@company.com
secrets:
- GOOGLE_SERVICE_ACCOUNT_JSON
# epack-subsidiary.yaml
collectors:
google-workspace:
source: locktivity/epack-collector-google-workspace@^0.2
config:
customer: C0def456
admin_email: admin@subsidiary.com
secrets:
- GOOGLE_SERVICE_ACCOUNT_JSON
export GOOGLE_SERVICE_ACCOUNT_JSON="$(cat service-account.json)"
epack collect -c epack-prod.yaml
epack collect -c epack-subsidiary.yaml
If each tenant requires its own service account, run separate invocations with different credentials:
GOOGLE_SERVICE_ACCOUNT_JSON="$(cat prod-sa.json)" epack collect -c epack-prod.yaml
GOOGLE_SERVICE_ACCOUNT_JSON="$(cat subsidiary-sa.json)" epack collect -c epack-subsidiary.yaml
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.5.4...v0.5.5
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.5.3...v0.5.4
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.5.2...v0.5.3
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.5.1...v0.5.2
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.5.0...v0.5.1
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.4.2...v0.5.0
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.4.1...v0.4.2
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.4.0...v0.4.1
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.3.1...v0.4.0
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.3.0...v0.3.1
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.2.0...v0.3.0
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.1.2...v0.2.0
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.1.1...v0.1.2
Full Changelog: https://github.com/locktivity/epack-collector-google-workspace/compare/v0.1.0...v0.1.1
375 fields. No test account checks this collector yet.
Every field this collector can write, each tagged with the lowest level that collects it. Each level includes everything in the level before it.
No fields match these filters.
The values Foundational Controls and other profiles read.
ISO 8601 timestamp when data was collected
Organization domain or tenant identifier
Identity provider vendor
Version of this schema, always 1.0.0.
Applications the app_security percentages count
Whether the provider has any applications the app_security percentages count. When false, those percentages are null
Count of authorized third-party applications or OAuth integrations
Applications with automated deprovisioning
Percentage of applications with automated deprovisioning
Applications with automated provisioning
Percentage of applications with automated provisioning
Applications using federated SSO (SAML or OIDC)
Percentage of applications using federated SSO (SAML/OIDC)
Whether access to core corporate resources requires a managed or compliant device
Whether privileged access requires a managed or compliant device
Accounts in every state, including suspended and archived accounts. The lifecycle percentages count these
Whether the provider has any accounts, in any state. When false, the lifecycle percentages are null
Accounts in an archived, retained, or soft-deleted state
Percentage of accounts in archived, retained, or soft-deleted state
Accounts in a suspended or disabled state
Percentage of accounts in suspended or disabled state
Maximum idle timeout across all policies (minutes)
Whether legacy authentication protocols are blocked for every user and every app, by one enforced policy or several together
Whether enforced sign-in policies, one or several together, require MFA of every user on every sign-in, or block the sign-in, whatever the app, client type, device, location or risk. Report-only policies do not count. Users a policy names as exceptions, such as break-glass accounts, do not make this false, and count as not covered in mfa_required_user_count. mfa_required_coverage_pct gives the share of users the requirement covers. A group or organizational unit excluded by name counts as a named exception. A setting that remembers a device and skips MFA on later sign-ins from it does not make those sign-ins uncovered. When some users sign in through another identity provider, this and mfa_required_user_count are left out, as the user_security MFA values are.
Percentage of users whose every sign-in requires MFA or is blocked
Users whose every sign-in requires MFA or is blocked, by one enforced policy or several together, out of user_security.user_count
Whether phishing-resistant authentication is required for privileged users
Maximum session lifetime across all policies (minutes)
Percentage of privileged users with MFA enabled or enforced
Privileged users with MFA enabled or enforced
Percentage of privileged users with phishing-resistant MFA
Privileged users with phishing-resistant MFA
Count of users who hold a role that can change who has access, reset another user's credentials, or change sign-in or security settings. Roles that can only read are not counted. A guest with such a role counts. Roles that manage devices, API access or identity providers, or that can run commands on managed devices, count too.
Whether the provider has any users privileged_users_count counts. When false, the privileged percentages are null
Count of users with standing privileged access instead of just-in-time or eligible access
Whether any user holds standing privileged access, as standing_privileged_users_count defines it
Count of highest-privilege administrative accounts (for example Global Admin or Super Admin)
Percentage of users inactive for 90+ days
Users inactive for 90 days or more
Percentage of users currently locked out
Users currently locked out
Percentage of users with any MFA factor enrolled
Percentage of users with phishing-resistant MFA (WebAuthn/FIDO2)
Users with any MFA factor enrolled
Percentage of users whose passwords do not meet current password policy requirements
Users whose passwords do not meet current password policy requirements
Users with phishing-resistant MFA (WebAuthn or FIDO2) enrolled
Enabled accounts of people in the organization. Guests from other organizations and disabled accounts are not counted. The user_security percentages and policy.mfa_required_coverage_pct count these
Whether the provider has any users the user_security percentages count. When false, those percentages are null
Percentage of users with weak passwords
Users with weak passwords
Everything this collector reads, grouped by area. Each field lists the lowest level that collects it.
Timestamp when the collector ran.
Collection level the artifact was produced at. Audit and internal additions are strictly additive; the schema version stays 1.0.0 (the collector binary version carries the level-aware signal).
Google Workspace customer ID (audit and above). Null when the tenant record could not be read; only a Super Admin can read it.
Primary domain of the Google Workspace tenant. Null when the tenant record could not be read; only a Super Admin can read it.
Date of the Google Workspace usage report snapshot (typically yesterday). Null when no usage report could be read.
Percentage of active users who logged in within the last 30 days, from the live Directory scan.
Percentage of active users who logged in within the last 7 days, from the live Directory scan.
Security-relevant admin actions in the window, by category.
Email address of the admin who acted.
Category the action is counted under.
Google's event name for the action.
When the action happened.
Whether the event list was capped at 5,000 rows.
Events left out of the list by the cap.
Days of admin audit history the counts cover.
Role description.
Role name.
Number of privileges the role grants.
Number of active delegated administrators.
Whether a policy requires 2-step verification for the admin.
Whether the admin is enrolled in 2-step verification.
Whether the user holds a delegated admin role.
Whether any of the admin role grants is limited to an org unit.
The admin's primary email address.
Names of the admin roles assigned to the user, and for a delegated admin those assigned to a group the user is in. Absent when the role assignments could not be read.
Whether the user is a super administrator.
Percentage of active privileged users with 2-step verification enforced.
Percentage of active privileged users enrolled in 2-step verification.
Number of unique active privileged users across super admin and delegated admin roles.
Number of active super administrators.
Number of third-party apps authorized in the tenant.
Percentage of active users with 2-step verification enforced by policy, from the live Directory scan.
Percentage of active users enrolled in 2-step verification, from the live Directory scan.
Percentage of users actually protected by 2-step verification.
Percentage of users with passkeys enrolled.
Total number of registered security keys across the tenant.
Access Context Manager policy resource used for config enrichment (audit and above).
Parent organization resource for the access policy (audit and above).
Number of basic Access Context Manager access levels in the resolved policy.
Titles of basic access levels that include a devicePolicy condition.
Number of basic access levels that include a devicePolicy condition.
Number of basic access levels whose required device policies restrict allowed device management levels to managed devices.
Number of custom CEL-based access levels in the resolved policy. These are not deeply analyzed by the collector.
Device management levels the required device policies allow.
Encryption statuses the required device policies allow.
Whether the access level is a custom CEL level.
Whether the access level has a devicePolicy condition.
IP ranges the access level allows.
Number of operating system constraints in the required device policies.
Regions the access level allows.
Other access levels this level requires.
Whether a required device policy asks for a device an admin has approved.
Whether a required device policy asks for a company-owned device.
Whether a required device policy asks for a screen lock.
The access level's title, or its resource name when it has no title.
Total Context-Aware Access deny events observed in the lookback window.
Count of deny events that included a device-state parameter, which is positive evidence that a device-state access level fired.
Number of days of Context-Aware Access audit history searched for device-state deny events.
Whether Context-Aware Access audit logs show device-state-based access denials. This is deny-event evidence, not proof of complete policy coverage.
Surfaces skipped because an OAuth scope or admin role is missing (a permission the customer can grant).
Informational warnings about data gaps or caveats (licensing, report lag, truncation). Below the audit level a warning names no customer, organization, or access policy ID, and gives a failed call's error code in place of Google's message.
Domain name.
Whether the domain is the tenant's primary domain.
Whether the domain is verified.
The tenant's primary domain, from the domain list.
SAML SSO profiles the tenant has.
Profile name.
The identity provider's entity ID.
Host of the identity provider's sign-in URL. The full URL is never collected.
Whether the tenant has a SAML SSO profile. Null when the profiles could not be read.
Domains the tenant has verified.
Days of Drive audit history the counts cover.
Days of Drive audit history the event list covers.
The shared file's ID.
The recipient's email domain, or the domain itself when the file was shared with a whole domain. The full address is never collected.
Access the share grants, such as reader or writer.
When the event happened.
Drive events in the count window that made a file public or open to anyone with the link.
Whether the event list was capped at 5,000 rows.
Events left out of the list by the cap.
Managed devices that count as compliant, by operating system. A mobile device counts when no compromise is detected, and a Chrome OS device when its status is active. A mobile device Google reports no compromise status for is in neither this nor non_compliant_by_os.
Whether the device counts as compliant. A mobile device counts when no compromise is detected, and a Chrome OS device when its status is active. Null when Google reports no compromise status for a mobile device.
Whether the device is encrypted.
When the device last synced.
Device model.
Operating system.
Operating system version.
The device owner's email address. For a Chrome OS device it is the annotatedUser an admin set, kept only when it is an email address.
Device platform, mobile or Chrome OS.
Whether the device enforces a screen lock.
Managed devices by operating system.
Managed devices that do not count as compliant, by operating system. A mobile device Google reports no compromise status for is in neither this nor compliant_by_os.
Managed devices that have not synced in the 30 days before the run, or have never synced.
Mobile and Chrome OS devices the tenant manages.
Whether the device list was capped at 5,000 rows.
Devices left out of the list by the cap.
Groups an admin created.
Groups whose settings allow external members. Null when the settings of some groups could not be read.
Whether an admin created the group.
Whether the group settings allow members from outside the tenant. Null when the settings could not be read.
Group description.
The group's email address.
Direct members of the group.
How the member gets mail sent to the group.
The member's email address.
Role in the group, such as OWNER, MANAGER, or MEMBER.
The member's account status.
Kind of member, such as USER or GROUP.
Group name.
Who can join the group.
Who can post to the group.
Groups in the tenant.
Whether the member lists were capped at 200,000 rows across all groups.
Whether the group list was capped at 10,000 rows.
Groups left out of the list by the cap.
Groups a user created.
Email address of the user signing in.
IP address the sign-in came from.
Google's event name.
When the event happened.
Failed sign-ins in the window.
Accounts disabled in the window after their password was found in a leak.
Sign-ins Google flagged as suspicious in the window.
Whether the event list was capped at 5,000 rows.
Events left out of the list by the cap.
Days of login audit history the counts cover.
Apps, by OAuth client ID, with at least one grant in the window.
Grants in the window, by app name or, when the app has none, its client ID.
Grants in the window, by the most sensitive scope each grant includes, which is low, medium, or high. A scope that is not known to be read-only or sign-in only counts as high.
The app's OAuth client ID.
The app's name.
When the grant happened.
OAuth scopes the grant includes.
Email address of the user who granted access.
OAuth grants users made to apps in the window.
Whether the grant list was capped at 5,000 rows.
Grants left out of the list by the cap.
Days of token audit history the counts cover.
Whether the org unit blocks settings inherited from its parent.
Org unit description.
The parent org unit's path.
The org unit's path.
Users in the org unit, from the live Directory scan. Null when the scan failed.
Deepest nesting of an org unit below the root, which is depth 0.
Org units in the tenant.
Percentage of users with passwords that do not meet length requirements.
True when any policy in force permits reusing a previous password.
strong only when every policy in force requires strong passwords. weak when any policy permits weak ones.
Number of distinct password policies found. Greater than 1 means the tenant is not uniform and the values in this object describe the floor.
True only when every policy in force binds users who already have a password. False means a non-compliant password survives until its owner changes it.
Longest password expiration across every policy in force. 0 means passwords never expire, which is the weakest setting.
Largest maximum password length across every policy in force.
Smallest minimum password length across every policy in force.
Percentage of users with weak passwords.
True when any less secure apps policy still sets allowLessSecureApps. Google stopped supporting less secure apps on May 1, 2025.
Longest web session duration any session controls policy sets, in minutes.
Active (not suspended or archived) users in the live Directory scan. The live percentages are calculated against it.
Archived user accounts, from the usage report.
Inactivity threshold in days.
Percentage of active users inactive for 90+ days (from Directory API lastLoginTime).
Whether a policy requires 2-step verification for the user.
Whether the user is enrolled in 2-step verification.
Whether the user last signed in within the 30 days before the run.
Whether the user last signed in within the 7 days before the run.
Whether the user has accepted the Google Workspace terms of service.
Whether the account is archived.
Whether the user must change their password at the next sign-in.
When the account was created.
Whether the user's IP address is subject to Google's deprecated IP allowlist setting.
When the user last signed in. Absent when the user has never signed in.
Path of the org unit the user belongs to.
The user's primary email address.
Whether the account is suspended.
Percentage of users currently locked out.
Suspended user accounts, from the usage report.
Total user accounts, from the usage report.
True when the per-user inventory was capped (50,000 rows, ACTIVE-first then email ascending). Omitted when within the cap.
Number of user inventory rows dropped by the cap. Omitted when within the cap.
Accounts the hold names.
Service the hold covers, such as MAIL or DRIVE.
The hold's ID.
ID of the matter the hold belongs to.
Whether the hold covers an org unit instead of named accounts.
When the hold last changed.
Legal holds across all matters. Null when the tenant has no Vault license.
Whether the tenant's edition includes Vault.
Legal holds in the matter. Null when its holds could not be read.
The matter's ID.
Matter name.
Matter state, such as OPEN or CLOSED.
Vault matters in the tenant. Null when the tenant has no Vault license.
The status of each run, and any value it couldn't read and why.
Number of findings left out after the first 100.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
Number of requests sent, including retries. Present at the audit and internal levels only.
Number of times the collector made the call, not counting retries. Present at the audit and internal levels only.
The Deprecation header from the vendor's most recent response that carried one.
The codes of the operation's failed attempts, without their counts.
Number of failed attempts per code. Present at the audit and internal levels only.
The operation's name, such as okta.users.list.
The permission the call needs, in the vendor's terms. The collector declares it with Operation.Permission. A permission_denied gap from the call records it as its missing_permission.
True when a request for the operation was a retry.
Number of requests that were retries. Present at the audit and internal levels only.
The HTTP status codes, or DNS response codes for a lookup, that the operation's responses had, without their counts.
Number of responses per HTTP status code, or per DNS response code for a lookup. Present at the audit and internal levels only.
The Sunset header from the vendor's most recent response that carried one.
Number of the rows left out whose attempt failed or was a retry. Present wherever the rows are; 0 means every failed or retried request has a row.
Which attempt the request was: 1 for the first, higher for a retry.
The call's number in the run, counting from 1 in the order calls start. Every attempt of one call has the same number.
How long the request took, in milliseconds.
The code for a request that failed. Absent when it succeeded.
The request's host, the name a DNS lookup queried, or the host dialed.
The HTTP method, DNS and the record type looked up, such as DNS TXT, or DIAL.
The operation the request belongs to.
Names of the request's query parameters. Their values are not recorded.
DNS lookups only: the response code. A lookup that got no response has none.
The vendor's request ID from the response headers, when it sent one.
HTTP requests only.
When the attempt was sent, in milliseconds after the run's started_at.
The response's HTTP status code. Absent when no response arrived.
The step the call was made in. Absent for a call made outside every step.
The vendor's own error code from a failed response, such as E0000047. Never the vendor's message. Absent for collectors that do not read one.
On a retry, how long the SDK waited before sending it: the Retry-After value, the rate limit reset, or its own backoff. Absent on a first attempt and on a retry sent at once.
Number of request rows left out.
schema, schema_unusable, population, nulls, rollups, ratios, guidance, levels, or targets.
What the check found.
The artifact the finding is about. A schema_unusable finding has none.
JSON pointer to the value the finding is about.
What happens if the customer picks the option, including its cost and what stays Not collected.
What happens if the customer picks the option, including its cost and what stays Not collected.
Each kind the collector could write that the key left out. Each has a not_shared gap.
The kinds of evidence the collect config key listed, such as cloud-posture.
Each kind the key listed that the run never wrote, such as a misspelled one.
The source commit the collector was built from. Absent when the build set none.
The collector's name, as its spec declares it.
The collector's version, such as v0.3.0. Absent when the build set none.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
The number of that call, matching the call on its request rows. A partial gap names the first failed call among those it counts. Present at the audit and internal levels only.
Why the value was left out: auth_failed, permission_denied, config_invalid, not_licensed, unsupported, not_read, rate_limited, vendor_error, timeout, invalid_response, too_large, internal, or not_shared. unsupported means the vendor does not report the value. too_large means the vendor holds more than the collector reads. not_shared means the customer left it out of this pack with the collect config key.
Present at the audit and internal levels only.
The one instruction that fixes collection. It uses fixed wording plus permission, plan, and region names. A gap has at most one of fix, no_action, and choice.
For a permission_denied gap, the permission to grant, in the vendor's own terms, such as okta.logs.read.
True when nothing needs changing now. It does not clear the gap.
The operation whose failed call left the value out. Absent when no call's error caused the gap, such as for a feature the plan lacks.
Who can act on the code: customer, nobody for an expected gap such as a feature the plan lacks, vendor, vendor_or_runner, or publisher.
The artifact the value belongs in. Absent when the run wrote no such artifact, in which case schema names it.
JSON pointer to the value within the artifact. Items are addressed by array index.
The schema of the artifact the value belongs in, when the run wrote no such artifact.
The account, tenant, or region affected. Present at the audit and internal levels only.
The file and line in the collector's own source that recorded the gap, relative to its module root, such as internal/collector/system_log.go:155.
not_collected when the collector could not read the value. partial when a rollup was left out because some of the items it covers could not be read, or when a list or object holds only the items that could be.
For a partial gap, the number of items that could not be read. Present at the audit and internal levels only.
The vendor's own error code, when its response included one.
The collector's message to the operator about the gap, redacted. Present at the audit and internal levels only.
The artifact's path in the pack.
JSON pointer to the value.
The artifact's schema.
Its calls in the step. Present at the audit and internal levels only.
The operation.
For a partial run, the code of the first gap other than a not_shared, unsupported, or not_read one, saying why its value was left out.
For a partial run, who can act on that code.
collected when the run read every value its level collects, or partial when it left values out. gaps lists each one. A not_shared or unsupported gap does not make a run partial.
True when SSL_CERT_FILE or SSL_CERT_DIR was set for the run.
When the run finished, in RFC 3339 UTC.
The level the run collected at, at every level. A reader uses it to tell a value the level left out from one the collector could not read. Absent from results of older SDKs.
True when a proxy variable such as HTTPS_PROXY was set for the run.
The run ID the runner passed in EPACK_RUN_ID. Absent when it passed none.
When the run started, in RFC 3339 UTC.
How the collector proved its identity, such as private_key_jwt for OAuth 2.0 client credentials with a signed key assertion or api_token for an API token.
Present at the audit and internal levels only.
The kind of principal, such as service_app, service_principal, or user.
The identity system, such as okta or microsoft-entra.
Present when the collector can show that its credential could only read.
The scopes the collector asked for. A scope here and missing from scopes was not granted.
The permissions the sign-in carried.
The tenant, account, or organization signed in to. Present at the audit and internal levels only.
True when an attempt in the step failed: one with an error code or a status of 400 or more.
The calls those requests belong to. Present at the audit and internal levels only.
When the step ended, in milliseconds after the run's started_at. A step still open when the collector emitted ended then. Present at the audit and internal levels only.
The attempts that failed: those with an error code or a status of 400 or more. Present at the audit and internal levels only.
The step's name, such as people. Step names are part of the collector's contract, like operation names.
The requests sent in the step, including rows left out of calls.requests. Present at the audit and internal levels only.
The requests that were retries. Present at the audit and internal levels only.
When the step started, in milliseconds after the run's started_at. Present at the audit and internal levels only.
The step's title, such as People and sign-in methods.
config_list when a person listed the targets in the config, discovery when the collector found every one its credential can see, discovery_filtered when the config narrowed what it found, granted when the credential was given only some, so others may exist, granted_filtered when the config also narrowed those, and collector when the collector picked them itself, such as a default region.
True when every target was reached and has no gap that makes the run partial, at every level. Absent when at is.
The config key that listed or narrowed the targets.
How many targets the artifact holds. Present at the audit and internal levels only.
What the targets are. A container the run signed in to or was configured for, or a resource it assessed in it.
A pointer inside each target to the name people know it by, to show beside its name, or alone when the run's level leaves the name out.
Pointers inside each target whose values, joined with a colon, name it. Absent when a target is itself its name.
A pointer inside each target to a boolean that is false when the target did not answer.
How many distinct values the run read that the vocabulary lacks.
The first 50 of those values, sorted. Present at the audit and internal levels only.
The vocabulary's name, such as okta.event_types.
The one instruction that fixes collection. A warning has at most one of fix, no_action, and choice.
The collector's message about what happened. Present at the audit and internal levels only.
The permission to grant, in the vendor's own terms.
True when nothing needs changing now.
The account, tenant, or region affected. Present at the audit and internal levels only.