Reports API のスコープを選択する
このドキュメントでは、Alert Center API 固有の認証と認可について説明します。
認証情報を取得できます。このドキュメントを読む前に、
Google Workspace の一般的な認証と認可情報については、
認証と認可について学習する。
OAuth 同意画面を構成してスコープを選択する
ユーザーやアプリのレビュアーに表示する情報を定義して、
有効にして後で公開できます
Reports API のスコープ
アプリに付与するアクセスのレベルを定義するには、
認可スコープを宣言します。認可スコープは OAuth 2.0 URI 文字列で
Google Workspace アプリの名前、アクセスするデータの種類
制御できます。スコープとは、以下を含む Google Workspace データを操作するためのアプリのリクエストです。
ユーザーGoogle アカウントのデータ。
アプリのインストール時に、ユーザーは使用するスコープを検証するよう求められます。
管理できます。通常は、最も絞り込んだ対象範囲を選択すべきです
アプリで不要なスコープをリクエストしないようにします。ユーザー数の増加
明確に記述された制限付きのスコープへのアクセス権をすぐに付与する。
Reports API は次のスコープをサポートしています。
スコープ |
意味 |
https://www.googleapis.com/auth/admin.reports.audit.readonly |
Google Workspace ドメインの監査レポートを表示する |
https://www.googleapis.com/auth/admin.reports.usage.readonly |
Google Workspace ドメインの使用状況レポートを表示する |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-29 UTC。
[null,null,["最終更新日 2024-08-29 UTC。"],[[["This document provides authorization and authentication details specific to the Alert Center API within Google Workspace."],["Before using this API, review Google Workspace's general authentication and authorization guidelines."],["Configure OAuth 2.0 to manage access and define the information your app can access using scopes."],["Carefully select the necessary scopes for your app to limit its access to user data for security and user trust."],["The Reports API has specific scopes for viewing audit and usage reports within your Google Workspace domain."]]],["To use the Alert Center API, configure OAuth 2.0, defining scopes that specify data access levels. Choose the most narrowly focused scopes possible. Scopes are validated by users when the app is installed. Public applications using certain scopes need verification. The Reports API supports two scopes: `admin.reports.audit.readonly` for viewing audit reports, and `admin.reports.usage.readonly` for usage reports.\n"]]