gws_reports
Type: Plugin
Read Google Workspace audit events (Admin SDK Reports API). One row per event, with its parameters as a dict.
| Argument | Type | Description |
|---|---|---|
secret |
string | Name of a ‘Google Workspace Creds’ secret. |
service_account_json |
string | Service account JSON key when no secret is used. |
admin_email |
string | Admin user to act as when no secret is used. |
application |
string (required) | Report application: login, admin, token, user_accounts, drive, saml, groups, mobile, … |
event_name |
string | Only this event name. |
user_key |
string | A user’s email or ID (default: all users). |
filters |
string | Reports API filters expression, e.g. doc_type==document. |
start |
Any | Only events at or after this time (default 24 hours ago). |
end |
Any | Only events before this time. |
max_rows |
int64 | Stop after this many rows. |
follow |
bool | Keep polling for new events. Use in event artifacts. |
poll |
int64 | Seconds between polls in follow mode (default 300). |
overlap |
int64 | Seconds each poll re-reads before the last one (default 21600: Google delivers some logs hours late). |
Required permissions: NETWORK
Platforms: macOS, Linux, Windows