Communityコーディング&開発github.com

googleworkspace/gws-admin-reports

Google Workspace Admin SDK:監査ログと使用状況レポート。

gws-admin-reports とは?

このスキルは、Google Workspace 管理者が Admin SDK を利用して、監査ログや使用状況レポートを効率的に取得・分析するためのツールです。営業時間外のアクセスや外部とのファイル共有などのセキュリティ監査、ユーザーやグループのアクティビティレポート、各種サービスの利用状況把握が可能になります。対象プラットフォームは Claude Code、Cursor、Codex などの AI エージェント環境を想定しており、Google Workspace の管理 API を呼び出すことで、管理者がコンソールを開かずともコマンドラインから直接レポートデータにアクセスできます。このスキールを利用することで、日常的な監査業務の自動化やインシデント対応の迅速化が期待でき、大規模組織の管理者にとって大きな効率化をもたらします。主な機能として、監査ログの検索・抽出、レポートの生成、異常アクティビティの検出などが含まれ、SKILL.md に記載された API エンドポイントとパラメータを理解することで柔軟なクエリが可能です。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/googleworkspace/cli/tree/main/skills/gws-admin-reports

Installed? Explore more コーディング&開発 skills: steipete/bluebubbles, steipete/eightctl, steipete/blucli · View all 6 →

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

gws-admin-reports は何をしますか?

Google Workspace Admin SDK:監査ログと使用状況レポート。

概要

このスキルは、Google Workspace 管理者が Admin SDK を使用して、組織の監査ログや使用状況レポートを取得するためのものです。

主な機能

  • 監査ログの取得: 管理者アクティビティ、ログイン、トークン、グループ、SAM などの監査ログを取得します。
  • 使用状況レポート: ユーザー、グループ、アプリケーションなどの使用状況に関するレポートを生成します。
  • カスタムクエリ: 特定の日付範囲、ユーザー、イベント名などでフィルタリング可能です。

使用方法

# 監査ログの取得例
gws-admin-reports --report-type admin --date 2023-01-01

# 使用状況レポートの取得例
gws-admin-reports --report-type usage --user [email protected]

サポートされるレポートタイプ

レポートタイプ説明
admin管理者アクティビティの監査ログ
loginログインイベントの監査ログ
tokenOAuth トークンアクティビティの監査ログ
groupGoogle グループのアクティビティ
samSAML アプリケーションのアクティビティ
usageサービスの使用状況レポート

設定

  • 認証: Google Workspace 管理者アカウントを使用し、OAuth 2.0 またはサービスアカウントで認証します。
  • スコープ: https://www.googleapis.com/auth/admin.reports.audit.readonly および https://www.googleapis.com/auth/admin.reports.usage.readonly が必要です。

注意事項

  • 管理者権限が必要です。
  • API の呼び出し制限に注意してください。
  • 取得できるデータは組織の設定に依存します。

参考リンク

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

googleworkspace/gws-calendar

Google Calendar: Manage calendars and events.

googleworkspace/gws-calendar-agenda

Google Calendar: Show upcoming events across all calendars.

googleworkspace/gws-calendar-insert

Google Calendar: Create a new event.

googleworkspace/gws-chat

Google Chat: Manage Chat spaces and messages.

googleworkspace/gws-chat-send

Google Chat: Send a message to a space.

googleworkspace/gws-classroom

Google Classroom: Manage classes, rosters, and coursework.

googleworkspace/gws-docs

Read and write Google Docs.

googleworkspace/gws-docs-write

Google Docs: Append text to a document.

googleworkspace/gws-drive

Google Drive: Manage files, folders, and shared drives.

googleworkspace/gws-drive-upload

Google Drive: Upload a file with automatic metadata.

googleworkspace/gws-events

Subscribe to Google Workspace events.

googleworkspace/gws-events-renew

Google Workspace Events: Renew/reactivate Workspace Events subscriptions.

googleworkspace/gws-events-subscribe

Google Workspace Events: Subscribe to Workspace events and stream them as NDJSON.

googleworkspace/gws-forms

Read and write Google Forms.

googleworkspace/gws-gmail

Gmail: Send, read, and manage email.

googleworkspace/gws-gmail-forward

Gmail: Forward a message to new recipients.

googleworkspace/gws-gmail-read

Gmail: Read a message and extract its body or headers.

googleworkspace/gws-gmail-reply

Gmail: Reply to a message (handles threading automatically).

googleworkspace/gws-gmail-reply-all

Gmail: Reply-all to a message (handles threading automatically).

googleworkspace/gws-gmail-send

Gmail: Send an email.

関連スキル