REST Resource: grants
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
แหล่งข้อมูล: Grant
ทรัพยากรการให้สิทธิ์เข้าถึง
การแสดง JSON |
{
"name": string,
"packageName": string,
"appLevelPermissions": [
enum (AppLevelPermission )
]
} |
ช่อง |
name |
string
ต้องระบุ ชื่อทรัพยากรสำหรับการให้สิทธิ์นี้ ตามรูปแบบ "developers/{developer}/users/{email}/grants/{packageName}" หากการให้สิทธิ์นี้เป็นสิทธิ์สำหรับแอปฉบับร่าง ระบบจะใช้รหัสแอปในชื่อทรัพยากรนี้แทนชื่อแพ็กเกจ
|
packageName |
string
เปลี่ยนแปลงไม่ได้ ชื่อแพ็กเกจของแอป ส่วนนี้ว่างเปล่าสำหรับแอปฉบับร่าง
|
appLevelPermissions[] |
enum (AppLevelPermission )
สิทธิ์ที่แอปมอบให้แก่ผู้ใช้
|
AppLevelPermission
สิทธิ์ที่ได้รับที่ระดับต่อแอป
Enum |
APP_LEVEL_PERMISSION_UNSPECIFIED |
สิทธิ์ที่ไม่รู้จักหรือไม่ได้ระบุ |
CAN_ACCESS_APP |
ดูข้อมูลแอป (อ่านอย่างเดียว) เลิกใช้งานแล้ว: ลองกำหนดความสามารถที่ละเอียดยิ่งขึ้น หรือดู AppLevelPermissions.CAN_VIEW_NON_FINANCIAL_DATA |
CAN_VIEW_FINANCIAL_DATA |
ดูข้อมูลทางการเงิน |
CAN_MANAGE_PERMISSIONS |
ผู้ดูแลระบบ (สิทธิ์ทั้งหมด) |
CAN_REPLY_TO_REVIEWS |
reviews.reply to reviews |
CAN_MANAGE_PUBLIC_APKS |
เผยแพร่เป็นเวอร์ชันที่ใช้งานจริง ทำการยกเว้นอุปกรณ์ และใช้ App Signing โดย Google Play |
CAN_MANAGE_TRACK_APKS |
เผยแพร่ไปยังแทร็กสำหรับการทดสอบ |
CAN_MANAGE_TRACK_USERS |
จัดการแทร็กสำหรับการทดสอบและแก้ไขรายชื่อผู้ทดสอบ |
CAN_MANAGE_PUBLIC_LISTING |
จัดการการแสดงข้อมูลผลิตภัณฑ์ใน Store |
CAN_MANAGE_DRAFT_APPS |
แก้ไขและลบแอปฉบับร่าง |
CAN_MANAGE_ORDERS |
จัดการคำสั่งซื้อและการสมัครใช้บริการ |
CAN_MANAGE_APP_CONTENT |
จัดการหน้าเว็บที่เกี่ยวข้องกับนโยบาย |
CAN_VIEW_NON_FINANCIAL_DATA |
ดูข้อมูลแอป (อ่านอย่างเดียว) |
CAN_VIEW_APP_QUALITY |
ดูข้อมูลคุณภาพแอป เช่น Vitals, ข้อขัดข้อง ฯลฯ |
CAN_MANAGE_DEEPLINKS |
จัดการการตั้งค่า Deep Link ของแอป |
เมธอด |
|
ให้สิทธิ์เข้าถึงแพ็กเกจที่ระบุแก่ผู้ใช้ |
|
นำสิทธิ์เข้าถึงแพ็กเกจหรือบัญชีนักพัฒนาแอปที่ระบุออกทั้งหมดของผู้ใช้ |
|
อัปเดตสิทธิ์เข้าถึงแพ็กเกจที่ระบุสำหรับผู้ใช้ |
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-26 UTC
[null,null,["อัปเดตล่าสุด 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. |"]]