Admin SDK レポート サービス
Admin SDK Reports サービスを使用すると、Apps Script で Admin SDK の Reports API を使用できます。この API を使用すると、 ドメインの管理者(販売パートナー様を含む)は、ドメインのカスタム使用状況レポートを作成できます。
リファレンス
このサービスの詳細については、Admin SDK Reports API のリファレンス ドキュメントをご覧ください。Apps Script のすべての高度なサービスと同様に、Admin SDK レポート サービスでは、公開 API と同じオブジェクト、メソッド、パラメータを使用します。詳細については、メソッド シグネチャの決定方法をご覧ください。
問題を報告したり、その他のサポートを確認したりするには、Admin SDK レポートのサポートガイドをご覧ください。
サンプルコード
以下のサンプルコードでは、API のバージョン 1 を使用しています。
ログイン アクティビティ レポートを生成する
このサンプルでは、過去 1 週間のログイン アクティビティ レポートをスプレッドシートとして生成します。レポートには、時刻、ユーザー、ログイン結果が含まれます。
ユーザー使用状況レポートを生成する
このサンプルでは、先週のこの日のユーザー使用状況レポートをスプレッドシートとして生成します。レポートには、日付、ユーザー、最終ログイン日時、受信したメールの数、所有しているドキュメントの数が表示されます。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-12-21 UTC。
[null,null,["最終更新日 2024-12-21 UTC。"],[[["The Admin SDK Reports service enables Google Workspace administrators to create custom usage reports within Apps Script, using the Admin SDK's Reports API."],["This advanced service requires prior enabling and mirrors the functionalities of the public API, using the same objects, methods, and parameters."],["Sample code is provided demonstrating how to generate login activity reports (including time, user, and login result) and user usage reports (including date, user, last login, emails received, and docs created) for a specified timeframe, outputting the data into a spreadsheet."],["Comprehensive reference documentation and a support guide for the Admin SDK Reports API are available for further information and assistance."]]],[]]