如需定义授予应用的访问权限级别,您需要确定并声明授权范围。授权范围是 OAuth 2.0 URI 字符串,其中包含 Google Workspace 应用名称、它访问的数据类型以及访问权限级别。范围是您的应用请求处理 Google Workspace 数据(包括用户的 Google 账号数据)的请求。
[null,null,["最后更新时间 (UTC):2024-11-15。"],[[["This document provides authorization and authentication details specifically for the Admin Settings API within Google Workspace."],["Before using this API, review Google Workspace's general authentication and authorization guidelines."],["Configure OAuth 2.0 including the consent screen and scopes to manage user data access for your app."],["Choose the most restrictive scopes necessary for your application's functionality to foster user trust."],["The Admin Settings API utilizes specific scopes, like `https://apps-apis.google.com/a/feeds/domain/`, to define access levels to domain settings."]]],["To access the Admin Settings API, configure OAuth 2.0 by setting up the consent screen and selecting authorization scopes, which define the level of data access. Scopes are OAuth 2.0 URI strings specifying the Google Workspace app, data type, and access level. Choose the narrowest scopes necessary for your app. Public apps using sensitive data-accessing scopes must undergo a verification process. The Admin Settings API supports one scope: `https://apps-apis.google.com/a/feeds/domain/` for global domain settings access.\n"]]