如要定義授予應用程式的存取權層級,您必須識別並宣告授權範圍。授權範圍是 OAuth 2.0 URI 字串,其中包含 Google Workspace 應用程式名稱、應用程式存取的資料類型,以及存取層級。「範圍」是指應用程式要求處理 Google Workspace 資料的權限,包括使用者的 Google 帳戶資料。
[null,null,["上次更新時間: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"]]