Admin SDK 報表服務
Admin SDK 報表服務可讓您在 Apps Script 中使用 Admin SDK 的 Reports API。這個 API 可讓 網域 (包括轉售商) 的管理員為自己的網域建立自訂用量報表。
參考資料
如要進一步瞭解這項服務,請參閱 Admin SDK Reports API 的參考文件。與 Apps Script 中的所有進階服務一樣,Admin SDK Reports 服務會使用與公開 API 相同的物件、方法和參數。詳情請參閱「如何決定方法簽章」。
如要回報問題或尋求其他支援,請參閱 Admin SDK 報表支援指南。
程式碼範例
下列程式碼範例使用 API 的 第 1 版。
產生登入活動報表
這個範例會產生上週的登入活動報表,並以試算表格呈現。報表會顯示時間、使用者和登入結果。
產生使用者用量報表
這個範例會產生上週這一天的使用者使用情形報表,並以試算表格呈現。這份報表會列出日期、使用者、上次登入時間、收到的電子郵件數量,以及擁有的文件數量。
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-12-21 (世界標準時間)。
[null,null,["上次更新時間:2024-12-21 (世界標準時間)。"],[[["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."]]],[]]