Google Workspace
@idaria/integration-google-workspacegoogleworkspace
Connects idaria to your company's Google Workspace: the assistant reads calendars, mail, files and the directory — and, if you allow it, creates events and sends mail. Runs on a technical service account your IT sets up once; no personal login involved.
Before you start
- IT admin
- 20 minutes
Requires a Google Workspace account with admin access and a Google Cloud service account with domain-wide delegation.
Setup guide
Connect Google Workspace
This integration talks to the Google Workspace APIs (Calendar, Gmail, Drive/Docs/Sheets, Admin Directory, People) using a Google Cloud service account with domain-wide delegation — server-to-server, no interactive sign-in. Every request impersonates a Workspace user. About 15 minutes, and you need a Workspace super-admin to authorise the delegation.
1. Create a service account + key (Google Cloud Console)
2. Authorise domain-wide delegation (Workspace Admin console)
3. Fill in the fields below
| Field | Value |
|---|---|
| Service-account email | client_email from the JSON key |
| Service-account private key | private_key from the JSON key (paste the whole PEM block) |
| Default user | The Workspace user the integration acts as by default (e.g. an assistant mailbox) |
| Admin user | A super-admin's email — used for directory lookups (optional; falls back to the default user) |
| Surfaces | Which areas to enable (optional; default all) |
| Enable writes | Off = read-only; on = also calendar/gmail writes |
Install — connectivity is verified in the background by minting a token
for the default user (watch the plugin logs for connected or a
token probe failed warning).
Troubleshooting
Least privilege: enable only the surfaces you need and leave Enable writes off unless the assistant should create events or send mail.
Setup fields
The operator fills these in when installing the plugin.
- gw_sa_key_fileService-account key file (JSON)Upload the JSON key file downloaded from the Google Cloud Console (service account → keys → add key). The service-account email and private key below are filled from it automatically — no copying needed. The file itself is not stored.
- gw_sa_client_emailService-account emailThe service account's email (client_email in the JSON key), e.g. idaria@my-project.iam.gserviceaccount.com. This is NOT your own Google address — a service account is a technical identity you create in Google Cloud.
- gw_sa_private_keyService-account private keyThe private_key from the service-account JSON key — the full PEM block (-----BEGIN PRIVATE KEY----- … -----END PRIVATE KEY-----). This is NOT your Google account password. Stored encrypted in the vault and shown only once. Maps to GW_SA_PRIVATE_KEY.
- gw_subject_defaultDefault userWorkspace user the integration impersonates when a tool call omits an explicit user, e.g. an assistant mailbox. Must exist in your Workspace domain. This IS a normal person's address, unlike the service-account email above.
- gw_admin_subjectAdmin userSuper-admin email used for Admin Directory lookups. Optional — falls back to the default user (which then also needs the admin.directory scope).
- gw_surfacesSurfacesComma-separated areas to enable: calendar, gmail, drive, directory, people. Omit for all. Tools and requested scopes are scoped to this list.
Show all 11 setup fields
- gw_delegated_scopesDelegated scopes (override)Advanced: comma/space-separated OAuth scope list to request instead of the surface-derived defaults. Must match what you authorise in the Admin console. Leave empty to use the defaults.
- gw_token_urlToken endpoint (override)Advanced: OAuth2 token endpoint. Defaults to https://oauth2.googleapis.com/token.
- gw_max_bytesMax response size (bytes)Caps a single API response to prevent memory blow-ups on large reads. Default 1048576 (1 MiB).
- gw_cache_ttl_secondsRead cache TTL (seconds)How long identical read queries are cached in-process. Writes always bypass + clear the cache. Default 60.
- enable_writesEnable writesWhen ON, also registers the write tools: calendar (create/update event), gmail (send/draft mail), sheets (gw_sheet_write values, gw_sheet_add_tab, gw_sheet_duplicate_tab, and gw_sheet_batch_update for full formatting/formulas) and drive (gw_drive_create). Requires the matching write scopes to be authorised. Default OFF (read-only).
Permissions
This is everything the plugin is allowed to access once it is installed.
- memory
- none
- none
- graph
- none
- none
- network
- oauth2.googleapis.comwww.googleapis.comgmail.googleapis.comdocs.googleapis.comsheets.googleapis.comadmin.googleapis.compeople.googleapis.com
- filesystem
- no
Versions
| Version | Core | Size | Published | sha256 | Download |
|---|---|---|---|---|---|
| v0.6.0 | >=1.78.0 <2.0 | 48.8 KB | 30 Nov 2026 | d243dbc3eb86… | .zip |