如要定義授予應用程式的存取權層級,您必須識別並宣告授權範圍。授權範圍是 OAuth 2.0 URI 字串,其中包含 Google Workspace 應用程式名稱、應用程式存取的資料類型,以及存取層級。「範圍」是指應用程式要求處理 Google Workspace 資料的權限,包括使用者的 Google 帳戶資料。
[null,null,["上次更新時間:2024-11-22 (世界標準時間)。"],[[["This document provides authorization and authentication details specifically for the Email Audit API within Google Workspace."],["Before using this API, developers should familiarize themselves with Google Workspace's general authentication and authorization guidelines."],["Apps need to be configured with OAuth 2.0, including defining scopes that specify the level of access to user data."],["The Email Audit API utilizes specific scopes to control access to audit user accounts, and developers should select the most restrictive scope necessary for their application's functionality."],["Public applications using certain scopes may require verification to ensure user data protection."]]],["To use the Email Audit API, configure OAuth 2.0, including setting up the consent screen and selecting relevant authorization scopes. Scopes define your app's data access level and are validated by users during installation. Use the most focused scope possible to gain user trust. Public apps accessing specific user data require verification. The Email Audit API utilizes `https://apps-apis.google.com/a/feeds/compliance/audit/` for global user account audit access.\n"]]