ドメインのすべてのサービスのすべてのログインを取得するには、次の GET HTTP リクエストを使用し、認可のドキュメントで説明されている認証トークンを含めます。リクエストのクエリ文字列とレスポンスのプロパティの詳細については、API リファレンスをご覧ください。読みやすくするために、次の例では改行を使用しています。
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all
/applications/login?endTime=end date&startTime=start date
&maxResults=maximum number of events returned on a response page
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/login?customerId=C03az79cb
イベント名で Google Workspace ログイン イベントを取得する
不審なログイン成功など、特定のイベントを取得する必要がある場合があります。これを行うには、次の形式の GET HTTP リクエストを使用します。
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all
/applications/login?maxResults=maximum number of events returned on a response page
&eventName=name of the login event
&filters=event parameterrelational operatorparameter value
次の例は、ドメインの不審な成功したログインをすべて取得する方法を示しています。
GET https://admin.googleapis.com/admin/reports/v1/activity/users/all/applications/login?eventName=login_success&filters=is_suspicious==true&maxResults=25
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-11-28 UTC。"],[[["The login activity report provides insights into the login activities of all users within your Google Workspace account for the past 180 days, including password and SAML-based SSO logins."],["You can retrieve login event data for your entire domain or for specific events like suspicious logins using the provided API endpoints."],["The report utilizes the basic report endpoint request with specific parameters like user email, start and end dates, and maximum results per page."],["Reports can be further filtered by event name and parameters to pinpoint specific login activities, such as suspicious successful logins, using designated filters."],["Ensure usage of the login activity report adheres to the terms outlined in your Customer Agreement and is for lawful purposes only."]]],[]]