如需定义授予应用的访问权限级别,您需要确定并声明授权范围。授权范围是 OAuth 2.0 URI 字符串,其中包含 Google Workspace 应用名称、该应用访问的数据类型以及访问权限级别。范围是您的应用请求处理 Google Workspace 数据(包括用户的 Google 账号数据)的请求。
[null,null,["最后更新时间 (UTC):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"]]