Capability library / Application package

Google Workspace package v1.0.0

Read Google Workspace users, groups, and group memberships, and send Gmail messages as a named user. Sending requires user consent or domain-wide delegation to impersonate that user.

Review state: Reviewed · Distributable: yes, digest matches the release manifest

This page describes AAES Govern’s controls. AAES Operate has private-work permissions, operational reviews and recorded-spend limits; it does not include Govern. About AAES Govern

Before you enable this package

Keep the registered Admin SDK and Gmail hosts. Bind GROUP_KEY and USER_ID, and verify the delegated account permissions.

Read each action's effects and exclusions below. Before installation, also read the complete package requirements, including credential issuance, scope, expiry, and provider permissions. These are deployment prerequisites, not capabilities this package supplies.

Capabilities (4)

Each capability below is one registered operation. The complete package JSON includes its exact network destination allowlist. The repository stores it at packs/googleworkspace.json and embeds a copy in the release binary.

Risk tiers. R0 is the minimum for reads. R2 is the minimum for write, create, update, execute, and invoke. R3 is the minimum for delete, send, pay, deploy, approve, share, and transfer. Operators can raise these levels. A minimum tier does not measure the operation's business or confidentiality risk.

On supported execution paths routed through AAES Govern, the R3 actions listed below require approval by an authorized person. Bypass paths and observation-only registrations are outside that guarantee. A provider's restoration feature does not remove this approval requirement. A provider-side approval, such as approving a GitLab merge request, is also separate from AAES Govern human approval. The capability matrix shows which execution paths are implemented, restricted to lab use, or refused at startup. Live compatibility must be tested in your environment.

Field guide. Endpoint is the service address and request method. Connector is the adapter that makes the call. Custody describes how the credential is held; the credential reference identifies the value to resolve. Data class sets handling requirements: pii means personal data, financial means financial records, and internal means internal organizational data.

googleworkspace.users.read v1.0.0R0

Kind
tool
Action
read
Endpoint
GET https://admin.googleapis.com/admin/directory/v1/users
Connector
http
Custody
customer_vault
Credential ref
secret-ref-google-workspace-access-token
Data class
pii

Read users.

List the Workspace account's users: names, email addresses, phone numbers and organizational details are personal data, so the read is classified as pii (personal data). The registered path covers the collection read only — single-user reads (GET /admin/directory/v1/users/{userKey}) are not registered by this pack. The request must carry either the customer or domain query parameter, and showDeleted=true would extend the result to deleted users; which scoping the deployment binds is part of the review.

googleworkspace.groups.read v1.0.0R0

Kind
tool
Action
read
Endpoint
GET https://admin.googleapis.com/admin/directory/v1/groups
Connector
http
Custody
customer_vault
Credential ref
secret-ref-google-workspace-access-token
Data class
internal

Read groups.

List the Workspace account's groups: names, email addresses and descriptions, which reveal org structure. The registered path covers the collection read only — single-group reads (GET /admin/directory/v1/groups/{groupKey}) are not registered by this pack. The request must carry either the customer or domain query parameter unless userKey is used to list one user's groups.

googleworkspace.groups.members.read v1.0.0R0

Kind
tool
Action
read
Endpoint
GET https://admin.googleapis.com/admin/directory/v1/groups/GROUP_KEY/members
Connector
http
Custody
customer_vault
Credential ref
secret-ref-google-workspace-access-token
Data class
pii

Read group members.

List the members of one group; the response carries member email addresses and ids, which are personal data. GROUP_KEY (the group's email address, alias or unique id) is a placeholder the deployment binds to a concrete group before enabling. The registered path covers the collection read only — single-member reads (GET .../members/{memberKey}) and the hasMember check are not registered by this pack. includeDerivedMembership=true would extend the result to indirect memberships; whether the deployment sets it is part of the review.

googleworkspace.gmail.messages.send v1.0.0R3

Kind
tool
Action
send
Endpoint
POST https://gmail.googleapis.com/gmail/v1/users/USER_ID/messages/send
Connector
http
Custody
customer_vault
Credential ref
secret-ref-google-workspace-access-token
Data class
pii

Send Gmail messages.

Send a message as one user, to the recipients named in the To, Cc and Bcc headers of the supplied message. A sent message cannot be recalled after delivery, and send is one of the designated actions requiring human approval, which is why this capability carries the minimum R3 tier; recipients are personal data and the body may carry more, so it registers at the pii class.

The registered path is the metadata send URI; the media-upload URI (upload/gmail/v1/...) is not registered.

USER_ID (the user's email address, or 'me' for the authenticated user) is a placeholder the deployment binds before enabling — with a user-consent token it must be the consenting user, and with a service account it must be the impersonated user named in the JWT 'sub' claim under a domain-wide delegation grant, as the pack notes describe; the two flows are not interchangeable and the deployment's choice is part of the review.

Credential reference

The credential field names a reference rather than containing credential material. Packs are designed not to contain secrets; the format checks cover only known credential formats and cannot prove that arbitrary text contains no secrets. Installing a package registers its capabilities. Configure the provider credentials, endpoints, and network access, then test the integration in your environment before enabling it.

Reference
secret-ref-google-workspace-access-token
Custody
customer_vault
Injection
header (Authorization)

Configure the value and injection format specified in the package. Assign responsibility for credential rotation and revocation, restrict provider permissions, and keep credential material out of logs and responses.

Complete credential requirements

The value stored under this reference is the complete Authorization header value (scheme included): the scheme 'Bearer', one separating space, then an OAuth 2.0 access token for Google APIs — 'Bearer <token>'.

The token is minted and renewed by an external token process, never by the executor: either a user-consent (delegated) OAuth 2.0 flow acting as one signed-in user, or a service account using the JWT-bearer grant against https://oauth2.googleapis.com/token — with domain-wide delegation and a 'sub' claim naming the impersonated user when the token must act as a user, which the Gmail send capability always requires because a service account has no mailbox access of its own.

Google access tokens are short-lived (the token response's expires_in, typically about one hour), so renewal ownership sits with the external process, which obtains a replacement access token before expiry and stores the new complete header value; the executor injects the stored value verbatim and performs no token lifecycle itself.

The stored value is never the service-account private key, the OAuth client secret or a refresh token — the service-account JSON key stays with the external token process, and losing it is a revocation event, not a vault rotation.

Revocation: distinguish grant revocation from token invalidation. A user-consent grant can be revoked by the user or restricted by the Workspace admin, and removing a domain-wide delegation grant in the Admin console's Domain-wide delegation page stops the service account from minting further impersonated tokens — both cut off future token acquisition.

Disabling or deleting a service-account key likewise stops future JWT signing and future token minting, but it is not revocation of access tokens already minted with that key: Google access tokens remain valid until their own expiry (the token response's expires_in, typically about one hour), subject to Google's revocation-propagation limits.

Plan any emergency revocation around that residual validity window. An expired value fails closed.

Least privilege: consent only the scopes these capabilities need — admin.directory.user.readonly, admin.directory.group.readonly (which also covers members.list), and gmail.send — and weigh before granting that gmail.send under domain-wide delegation lets the service account send as any authorized user in the domain. customer_vault is the only generally-supported production custody model here — identity_federation and customer_broker are refused at startup and inline is lab-only.

Executor hygiene: the value must live only in executor memory for the lifetime of a call, must never be written to logs, traces or diagnostics, and must not appear in crash dumps; a deployment that cannot meet that bar must not enable the pack.

Resources

  • google-workspace-users (api, pii): https://admin.googleapis.com/admin/directory/v1/users
  • google-workspace-groups (api, internal): https://admin.googleapis.com/admin/directory/v1/groups
  • google-workspace-mailbox (mailbox, pii): https://gmail.googleapis.com/gmail/v1/users/USER_ID

Technical package and review record

Complete provider requirements and exclusions

GROUP_KEY and USER_ID in the endpoint paths are placeholders: the deployment must substitute the concrete group and user each capability is bound to before enabling the pack, and the pack must not be enabled with the literals in place — the review does not rely on Google rejecting literal placeholder identifiers as the control, and allowlisting admin.googleapis.com or gmail.googleapis.com does not make an unsubstituted pack safe.

The egress allowlist hosts are real shared Google API hosts, not placeholders: admin.googleapis.com serves the Admin SDK Directory API and gmail.googleapis.com serves the Gmail API, so they stay real and the allowlist does not move with the tenant.

This pack registers only endpoints the official Google Workspace documentation publishes: Admin SDK Directory users.list, groups.list and members.list, and Gmail users.messages.send (the metadata URI, not the media-upload URI). users.list requires either the customer or domain query parameter and can retrieve deleted users via showDeleted — review which scoping the deployment binds.

Documented exclusions: this pack does not register user creation, update, patch, deletion, undelete or makeAdmin (users.insert, users.update, users.patch, users.delete, users.undelete, users.makeAdmin), user alias and photo operations, group creation, update or deletion (groups.insert, groups.update, groups.patch, groups.delete), group membership writes (members.insert, members.update, members.patch, members.delete), organizational-unit, role, role-assignment, schema, token and device operations, the Reports and Alert Center APIs, and every other Gmail operation including message delete, batchDelete, modify, batchModify, import, insert, trash and settings/delegate management.

Approval classification: the three directory reads sit at the minimum R0 tier of read, with users and memberships at the pii class because names, email addresses and member identities are personal data. gmail.messages.send carries the send action at the minimum R3 tier because a sent message cannot be recalled after delivery, and send is one of the designated actions requiring human approval.

On supported execution paths mediated by AAES Govern, irreversible actions require approval by an authorized person; this does not prevent calls through bypass or observation-only paths.

The send capability's credential contract needs an honest delegation distinction, like the Teams handling in the Microsoft 365 package: with a user-consent (delegated) OAuth 2.0 flow, the token acts as the signed-in user and USER_ID must be that user (or the special value 'me'); with a service account, Gmail has no application-level access at all — a service account reaches a user's mailbox only through domain-wide delegation, which a Google Workspace super administrator grants in the Admin console by authorizing the service account's numeric client ID with explicit OAuth scopes, after which the token process impersonates a named user (the JWT 'sub' claim) and acts with that user's permissions, never with elevated domain-wide privileges.

The pack-level reference is deliberately flow-neutral; the deployment chooses the flow, binds USER_ID to the impersonated or signed-in user accordingly, and consents the minimum scopes — admin.directory.user.readonly and admin.directory.group.readonly for the reads, gmail.send (the least-privileged send scope) for the send. Domain-wide delegation is tenant-grade power: a mis-scoped DWD grant lets the service account impersonate any user in the domain within those scopes, so the authorized scope list and the service account's key custody are part of this pack's review.

This package has completed the documentation review: the dated method, scope and delegation sources are listed in the review record on this page, and promotion requires a reviewer to complete that named-source check — library readiness does not require demonstrating a particular deployment's connectivity or executor operation.

Download the complete package JSON for exact network allowlists, credential requirements, exclusions, and setup notes. Read these requirements before installation.

The full documentation review record is supplied in the evaluation package. The evaluation package runs in your environment and comes only with the paid design partnership. This page reproduces the source links and review block; the full record is available for evaluation. Discuss a design partnership to inspect it before installation.

Review block

This section reproduces the review block recorded in the pack file. The evidence and approval record is separate: for a reviewed pack, it is in the evaluation materials and in the release binary's embedded assets.

Review completed: 2026-09-22

7 sources, retrieved 2026-09-21

Current documentation links are navigation aids. They do not change the package, its historical sources or its review date. Review dates describe a documentation review, not a live integration test. No package is provider-endorsed or yet tested against a live provider tenant.

Release identity

SHA-256 of the pack file bytes: 44d49deda4becb3ea4f6e020621e913b35be4d57e8272446e92e6ca74bec1e8d

Distributable: yes, digest matches the release manifest. Editing a package changes its release identity. A deployment plan checks its own file digests; it does not restore reviewed status or authenticate approval.