Google Workspace
Extracts users from a Google Workspace (G Suite) domain through the Admin SDK Directory API. Emits one user entity per user.
Usage
source:
name: gsuite
scope: my-org
config:
service_account_json: '{"type":"service_account","project_id":"...","private_key":"..."}'
user_email: admin@example.comConfiguration
| Key | Type | Description | Required |
|---|---|---|---|
service_account_json | string | Service account JSON credential. | Yes |
user_email | string | Email of an admin user to impersonate when calling the Directory API. | Yes |
Output
Emits user entities:
urn:gsuite:{scope}:user:{primary_email}Notable properties:
email- primary email addressfull_name- full name of the userstatus- set tosuspendedwhen the user is suspended; omitted otherwisealiases- comma-separated email aliasesorg_unit_path- organizational unit pathorganizations- organization records from Google Workspacerelations- relation records (e.g. manager)custom_schemas- custom schema data, as JSON strings keyed by schema name
Notes
- The service account must have domain-wide delegation enabled.
- The
user_emailmust belong to a user with access to the Admin APIs.