REST Resource: grants
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài nguyên: Cấp
Tài nguyên cấp quyền truy cập.
Biểu diễn dưới dạng JSON |
{
"name": string,
"packageName": string,
"appLevelPermissions": [
enum (AppLevelPermission )
]
} |
Trường |
name |
string
Bắt buộc. Tên tài nguyên cho quyền cấp này, tuân theo mẫu "developers/{developer}/users/{email}/grants/{packageName}". Nếu khoản tài trợ này dành cho một ứng dụng nháp, thì mã ứng dụng sẽ được dùng trong tên tài nguyên này thay vì tên gói.
|
packageName |
string
Bất biến. Tên gói của ứng dụng. Giá trị này sẽ trống đối với các ứng dụng nháp.
|
appLevelPermissions[] |
enum (AppLevelPermission )
Các quyền đã cấp cho người dùng đối với ứng dụng này.
|
AppLevelPermission
Quyền được cấp ở cấp độ mỗi ứng dụng.
Enum |
APP_LEVEL_PERMISSION_UNSPECIFIED |
Quyền không xác định hoặc không xác định. |
CAN_ACCESS_APP |
Xem thông tin ứng dụng (chỉ có thể đọc). Không dùng nữa: Hãy thử xác định một chức năng chi tiết hơn. Nếu không, hãy kiểm tra ApplevelPermission.CAN_VIEW_NON_FINANCIAL_DATA. |
CAN_VIEW_FINANCIAL_DATA |
Xem dữ liệu tài chính. |
CAN_MANAGE_PERMISSIONS |
Quản trị viên (có tất cả quyền). |
CAN_REPLY_TO_REVIEWS |
đánh giá.trả lời bài đánh giá. |
CAN_MANAGE_PUBLIC_APKS |
Phát hành phiên bản chính thức, loại trừ thiết bị và sử dụng tính năng ký ứng dụng của Google Play. |
CAN_MANAGE_TRACK_APKS |
Phát hành lên các kênh kiểm thử. |
CAN_MANAGE_TRACK_USERS |
Quản lý kênh kiểm thử và chỉnh sửa danh sách người kiểm thử. |
CAN_MANAGE_PUBLIC_LISTING |
Quản lý sự hiện diện trong cửa hàng. |
CAN_MANAGE_DRAFT_APPS |
Chỉnh sửa và xoá ứng dụng nháp. |
CAN_MANAGE_ORDERS |
Quản lý đơn đặt hàng và gói thuê bao. |
CAN_MANAGE_APP_CONTENT |
Quản lý các trang liên quan đến chính sách. |
CAN_VIEW_NON_FINANCIAL_DATA |
Xem thông tin ứng dụng (chỉ có thể đọc). |
CAN_VIEW_APP_QUALITY |
Xem dữ liệu về chất lượng của ứng dụng, chẳng hạn như Chỉ số quan trọng, sự cố, v.v. |
CAN_MANAGE_DEEPLINKS |
Quản lý chế độ thiết lập đường liên kết sâu của ứng dụng. |
Phương thức |
|
Cấp quyền truy cập cho người dùng vào gói đã cho. |
|
Xoá toàn bộ quyền truy cập của người dùng vào gói hoặc tài khoản nhà phát triển cụ thể. |
|
Cập nhật quyền truy cập cho người dùng vào gói đã cho. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-26 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-26 UTC."],[[["\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. |"]]