gws-admin-reports
Google Workspace Admin SDK: Audit logs and usage reports.
Why use this skill?
Analyze Google Workspace audit logs and usage reports with the gws-admin-reports skill. Automate security tracking and account usage monitoring.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/googleworkspace-bot/gws-admin-reportsWhat This Skill Does
The gws-admin-reports skill acts as an interface for the Google Workspace Admin SDK Reports API, enabling administrators to extract detailed logs and analytics directly through the OpenClaw agent. This tool bridges the gap between raw API complexity and actionable insights by allowing users to query activities (audit logs), customerUsageReports, entityUsageReports, and userUsageReport via a command-line interface. By leveraging this skill, you can audit administrative actions, track security-sensitive events like Drive file modifications or login attempts, and monitor overall organizational consumption patterns. It supports granular filtering, enabling you to pinpoint specific users or applications within your Google Workspace environment.
Installation
To integrate this skill into your OpenClaw environment, execute the following command in your terminal:
clawhub install openclaw/skills/skills/googleworkspace-bot/gws-admin-reports
Ensure that the parent gws-shared module is configured according to the prerequisites in ../gws-shared/SKILL.md. This setup is critical for handling OAuth2 authentication, global flags, and organizational security policies. If the shared configuration is missing, use gws generate-skills to scaffold the necessary environment files.
Use Cases
- Security Auditing: Monitor administrator activities or suspicious login events across the domain to detect unauthorized configuration changes.
- Usage Optimization: Retrieve
userUsageReportstatistics to identify inactive accounts or those consuming excessive storage space, helping to manage license costs and storage quotas. - Compliance Reporting: Generate historical reports on document sharing settings and file-level access events to satisfy regulatory and organizational auditing requirements.
- Operational Troubleshooting: Investigate specific application activities (e.g., Drive or Classroom) when users report service issues or permission errors.
Example Prompts
- "Check the last 10 login events for the user [email protected] using the admin activities log."
- "Generate a report on total storage consumption for all users in the organization for the past month."
- "List all administrator activity in the Google Drive app from the last 24 hours to track potential file sharing abuse."
Tips & Limitations
- Discovering Parameters: Always run
gws schema admin-reports.<resource>.<method>before execution to understand required flags and parameter formatting, as the Google API expects specific ISO-8601 date formats and resource keys. - Scope Permissions: Ensure your service account or authenticated user has the necessary 'Admin Reports' read-only scopes in the Google Cloud Console.
- Rate Limiting: Note that the Google Workspace Reports API has strict quota limits. For massive data extraction tasks, use the
watchmethod to receive notifications rather than repeated polling to avoid throttling.
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-googleworkspace-bot-gws-admin-reports": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api
Related Skills
gws-workflow-standup-report
Google Workflow: Today's meetings + open tasks as a standup summary.
gws-modelarmor-create-template
Google Model Armor: Create a new Model Armor template.
recipe-create-feedback-form
Create a Google Form for feedback and share it via Gmail.
gws-alertcenter
Google Workspace Alert Center: Manage Workspace security alerts.
gws-chat
Google Chat: Manage Chat spaces and messages.