REST Resource: grants
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
משאב: הענקה
ייצוג 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 |
להציג את פרטי האפליקציה (לקריאה בלבד). הוצאה משימוש: כדאי להגדיר יכולת מפורטת יותר. אחרת, צריך לסמן את האפשרות AppLevelהרשאה.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 |
הצגת נתוני איכות האפליקציה כמו תפקוד האפליקציה, קריסות וכו' |
CAN_MANAGE_DEEPLINKS |
ניהול הגדרת קישורי העומק של האפליקציה. |
שיטות |
|
להעניק למשתמש גישה לחבילה הנתונה. |
|
מסירה את כל הגישה של המשתמש לחבילה או לחשבון הפיתוח הנתונים. |
|
מעדכן את הגישה של המשתמש לחבילה הנתונה. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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. |"]]