Skill Press

No. 481 · gws-admin-reports

Audit Google Workspace Activity

A field guide from Google Workspace CLI

Google Workspace CLI

When to use it

Google Workspace Admin SDK: Audit logs and usage reports.

Rank
No. 481 of 971
Installs
Not listed yet
Runs in
Gemini
Length
298 words · 1 min
Files
2
License
Apache-2.0

Get this skill

Download the skill folder (.zip, 5 KB) ↓ · SKILL.md only ↓

Agent prompt

Paste into a coding agent with terminal access. Check the upstream requirements for the skill you’re installing.

Prompt
Install the "gws-admin-reports" Agent Skill by Google Workspace CLI, from https://github.com/googleworkspace/cli.

1. Fetch the whole folder skills/gws-admin-reports — SKILL.md plus every script, reference, and asset beside it, not just SKILL.md. For example:
   skill_checkout=$(mktemp -d)
   git init "$skill_checkout"
   git -C "$skill_checkout" fetch --depth 1 https://github.com/googleworkspace/cli.git cd3697e07eb520056dcf142d0c7439bbb9ba32e9
   git -C "$skill_checkout" checkout --detach FETCH_HEAD
2. Copy it into your skills directory as a folder named "gws-admin-reports":
   - Claude Code: ~/.claude/skills/gws-admin-reports/ (all projects) or .claude/skills/gws-admin-reports/ (this project only)
   - Another agent: the directory you load Agent Skills from (folders containing a SKILL.md)
3. Check that gws-admin-reports/SKILL.md exists and its frontmatter says name: gws-admin-reports.
4. Read SKILL.md, then tell me in two or three sentences what the skill does and when it will trigger, and list any dependencies it mentions (Python packages, npm packages, CLIs) that aren't installed yet. Don't install them without asking.

Note: Many Workspace recipes use the shared gws-shared skill and a service-specific skill. Install the Workspace collection to keep those prerequisites together.

skills CLI

One command; the skills.sh installer detects your agents (Claude Code, Cursor, Codex, and more).

Terminal
npx skills add https://github.com/googleworkspace/cli/tree/cd3697e07eb520056dcf142d0c7439bbb9ba32e9/skills/gws-admin-reports --skill gws-admin-reports

Contents

  1. API Resources
  2. Discovering Commands

The skill, in full

PREREQUISITE: Read ../gws-shared/SKILL.md for auth, global flags, and security rules. If missing, run gws generate-skills to create it.

gws admin-reports <resource> <method> [flags]

API Resources

activities

  • list — Retrieves a list of activities for a specific customer’s account and application such as the Admin console application or the Google Drive application. For more information, see the guides for administrator and Google Drive activity reports. For more information about the activity report’s parameters, see the activity parameters reference guides.
  • watch — Start receiving notifications for account activities. For more information, see Receiving Push Notifications.

channels

  • stop — Stop watching resources through this channel.

customerUsageReports

  • get — Retrieves a report which is a collection of properties and statistics for a specific customer’s account. For more information, see the Customers Usage Report guide. For more information about the customer report’s parameters, see the Customers Usage parameters reference guides.

entityUsageReports

  • get — Retrieves a report which is a collection of properties and statistics for entities used by users within the account. For more information, see the Entities Usage Report guide. For more information about the entities report’s parameters, see the Entities Usage parameters reference guides.

userUsageReport

  • get — Retrieves a report which is a collection of properties and statistics for a set of users with the account. For more information, see the User Usage Report guide. For more information about the user report’s parameters, see the Users Usage parameters reference guides.

Discovering Commands

Before calling any API method, inspect it:

# Browse resources and methods
gws admin-reports --help

# Inspect a method's required params, types, and defaults
gws schema admin-reports.<resource>.<method>

Use gws schema output to build your --params and --json flags.

More in Security & Access Management

All Security & Access Management skills →

More from Google Workspace CLI

From googleworkspace/cli at cd3697e, Apache-2.0. Install counts from skills.sh.