如要擷取所有網域服務的所有登入記錄,請使用下列 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 (世界標準時間)。"],[[["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."]]],[]]