REST Resource: grants
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資源:授權
JSON 表示法 |
{
"name": string,
"packageName": string,
"appLevelPermissions": [
enum (AppLevelPermission )
]
} |
欄位 |
name |
string
必要欄位。這個授予項目的資源名稱,格式如下:「developers/{developer}/users/{email}/grants/{packageName}」。如果這個授予項目適用於草稿應用程式,則這個資源名稱會使用應用程式 ID,而不是套件名稱。
|
packageName |
string
不可變動。應用程式的套件名稱。如果是草稿應用程式,這裡不會顯示任何內容。
|
appLevelPermissions[] |
enum (AppLevelPermission )
已授予使用者這個應用程式的權限。
|
AppLevelPermission
列舉 |
APP_LEVEL_PERMISSION_UNSPECIFIED |
未知或未指定的權限。 |
CAN_ACCESS_APP |
查看應用程式資訊 (唯讀)。已淘汰:請嘗試定義更精細的功能。否則,請查看 AppLevelPermission.CAN_VIEW_NON_FINANCIAL_DATA。 |
CAN_VIEW_FINANCIAL_DATA |
查看財務資料。 |
CAN_MANAGE_PERMISSIONS |
管理員 (所有權限)。 |
CAN_REPLY_TO_REVIEWS |
則評論.回覆評論。 |
CAN_MANAGE_PUBLIC_APKS |
發布正式版、排除特定裝置及使用 Google Play 應用程式簽署功能。 |
CAN_MANAGE_TRACK_APKS |
發布至測試群組。 |
CAN_MANAGE_TRACK_USERS |
管理測試群組及編輯測試人員清單。 |
CAN_MANAGE_PUBLIC_LISTING |
管理商店發布情況。 |
CAN_MANAGE_DRAFT_APPS |
編輯及刪除草稿應用程式。 |
CAN_MANAGE_ORDERS |
管理訂單和訂閱項目。 |
CAN_MANAGE_APP_CONTENT |
管理政策相關網頁。 |
CAN_VIEW_NON_FINANCIAL_DATA |
查看應用程式資訊 (唯讀)。 |
CAN_VIEW_APP_QUALITY |
查看應用程式品質資料,例如 Vitals 和當機次數等。 |
CAN_MANAGE_DEEPLINKS |
管理應用程式的深層連結設定。 |
方法 |
|
向使用者授予指定套件的存取權。 |
|
移除使用者對指定套件或開發人員帳戶的所有存取權。 |
|
更新使用者對指定套件的存取權。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間:2025-07-26 (世界標準時間)。"],[[["\u003cp\u003eThe Grant resource allows you to manage user access to your Google Play Developer account and specific app packages.\u003c/p\u003e\n"],["\u003cp\u003eGrants can be created, updated, and deleted using dedicated methods.\u003c/p\u003e\n"],["\u003cp\u003eAppLevelPermissions define the level of access granted for each app, ranging from read-only to full administrative control.\u003c/p\u003e\n"],["\u003cp\u003ePermissions include managing releases, replying to reviews, viewing financial data, and more.\u003c/p\u003e\n"]]],["A Grant resource manages app access. It has a `name`, `packageName`, and `appLevelPermissions`. AppLevelPermissions define the user's capabilities, such as viewing financial data, managing permissions, replying to reviews, releasing to tracks, managing listings, and more. Core methods include creating a grant to give a user access, deleting to revoke access, and patching to update a user's existing permissions for a package.\n"],null,["# REST Resource: grants\n\n- [Resource: Grant](#Grant)\n - [JSON representation](#Grant.SCHEMA_REPRESENTATION)\n - [AppLevelPermission](#Grant.AppLevelPermission)\n- [Methods](#METHODS_SUMMARY)\n\nResource: Grant\n---------------\n\nAn access grant resource.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"name\": string, \"packageName\": string, \"appLevelPermissions\": [ enum (/android-publisher/api-ref/rest/v3/grants#Grant.AppLevelPermission) ] } ``` |\n\n| Fields ||\n|-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `name` | `string` Required. Resource name for this grant, following the pattern \"developers/{developer}/users/{email}/grants/{packageName}\". If this grant is for a draft app, the app ID will be used in this resource name instead of the package name. |\n| `packageName` | `string` Immutable. The package name of the app. This will be empty for draft apps. |\n| `appLevelPermissions[]` | `enum (`[AppLevelPermission](/android-publisher/api-ref/rest/v3/grants#Grant.AppLevelPermission)`)` The permissions granted to the user for this app. |\n\n### AppLevelPermission\n\nA permission granted at a per-app level.\n\n| Enums ||\n|------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `APP_LEVEL_PERMISSION_UNSPECIFIED` | Unknown or unspecified permission. |\n| `CAN_ACCESS_APP` | View app information (read-only). Deprecated: Try defining a more granular capability. Otherwise, check AppLevelPermission.CAN_VIEW_NON_FINANCIAL_DATA. | This item is deprecated! |\n| `CAN_VIEW_FINANCIAL_DATA` | View financial data. |\n| `CAN_MANAGE_PERMISSIONS` | Admin (all permissions). |\n| `CAN_REPLY_TO_REVIEWS` | reviews.reply to reviews. |\n| `CAN_MANAGE_PUBLIC_APKS` | Release to production, exclude devices, and use app signing by Google Play. |\n| `CAN_MANAGE_TRACK_APKS` | Release to testing tracks. |\n| `CAN_MANAGE_TRACK_USERS` | Manage testing tracks and edit tester lists. |\n| `CAN_MANAGE_PUBLIC_LISTING` | Manage store presence. |\n| `CAN_MANAGE_DRAFT_APPS` | Edit and delete draft apps. |\n| `CAN_MANAGE_ORDERS` | Manage orders and subscriptions. |\n| `CAN_MANAGE_APP_CONTENT` | Manage policy related pages. |\n| `CAN_VIEW_NON_FINANCIAL_DATA` | View app information (read-only). |\n| `CAN_VIEW_APP_QUALITY` | View app quality data such as Vitals, Crashes etc. |\n| `CAN_MANAGE_DEEPLINKS` | Manage the deep links setup of an app. |\n\n| Methods ------- ||\n|----------------------------------------------------------------|----------------------------------------------------------------------------|\n| ### [create](/android-publisher/api-ref/rest/v3/grants/create) | Grant access for a user to the given package. |\n| ### [delete](/android-publisher/api-ref/rest/v3/grants/delete) | Removes all access for the user to the given package or developer account. |\n| ### [patch](/android-publisher/api-ref/rest/v3/grants/patch) | Updates access for the user to the given package. |"]]