REST Resource: grants
Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
Zasób: Grant
Zasób z przyznanym dostępem.
Zapis JSON |
{
"name": string,
"packageName": string,
"appLevelPermissions": [
enum (AppLevelPermission )
]
} |
Pola |
name |
string
Wymagane. Nazwa zasobu dla tego uwierzytelnienia, zgodna ze wzorcem „developers/{developer}/users/{email}/grants/{packageName}”. Jeśli to uwierzytelnienie dotyczy wersji roboczej aplikacji, w nazwie zasobu zostanie użyty identyfikator aplikacji, a nie nazwa pakietu.
|
packageName |
string
Stały. Nazwa pakietu aplikacji. To pole będzie puste w przypadku wersji roboczych aplikacji.
|
appLevelPermissions[] |
enum (AppLevelPermission )
Uprawnienia przyznane użytkownikowi tej aplikacji.
|
AppLevelPermission
Uprawnienia przyznane na poziomie aplikacji.
Wartości w polu enum |
APP_LEVEL_PERMISSION_UNSPECIFIED |
Nieznane lub nieokreślone uprawnienie. |
CAN_ACCESS_APP |
Wyświetlanie informacji o aplikacji (tylko do odczytu). Wycofane: spróbuj zdefiniować bardziej szczegółową funkcję. W przeciwnym razie sprawdź AppLevelPermission.CAN_VIEW_NON_FINANCIAL_DATA. |
CAN_VIEW_FINANCIAL_DATA |
wyświetlać dane finansowe, |
CAN_MANAGE_PERMISSIONS |
Administrator (wszystkie uprawnienia). |
CAN_REPLY_TO_REVIEWS |
reviews.reply na opinie. |
CAN_MANAGE_PUBLIC_APKS |
Tworzenie wersji produkcyjnych, wykluczanie urządzeń i używanie podpisywania aplikacji przez Google Play. |
CAN_MANAGE_TRACK_APKS |
Wersja na ścieżki testów. |
CAN_MANAGE_TRACK_USERS |
Zarządzanie ścieżkami testowymi i edytowanie list testerów. |
CAN_MANAGE_PUBLIC_LISTING |
Zarządzanie obecnością w sklepie |
CAN_MANAGE_DRAFT_APPS |
Edytowanie i usuwanie wersji roboczych aplikacji |
CAN_MANAGE_ORDERS |
zarządzać zamówieniami i subskrypcjami, |
CAN_MANAGE_APP_CONTENT |
Zarządzaj stronami dotyczącymi zasad. |
CAN_VIEW_NON_FINANCIAL_DATA |
Wyświetlanie informacji o aplikacji (tylko do odczytu). |
CAN_VIEW_APP_QUALITY |
Wyświetlaj dane dotyczące jakości aplikacji, takie jak wskaźniki, awarie itp. |
CAN_MANAGE_DEEPLINKS |
Zarządzanie konfiguracją precyzyjnych linków w aplikacji. |
Metody |
|
Przyznaj użytkownikowi dostęp do danego pakietu. |
|
Odbiera cały dostęp użytkownika do danego pakietu lub konta dewelopera. |
|
Aktualizuje uprawnienia użytkownika do danego pakietu. |
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 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. |"]]