REST Resource: grants
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
リソース: Grant
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 |
アプリの品質データ(指標、クラッシュなど)の確認 |
CAN_MANAGE_DEEPLINKS |
アプリのディープリンク設定を管理します。 |
メソッド |
|
ユーザーに指定されたパッケージへのアクセス権を付与します。 |
|
指定されたパッケージまたはデベロッパー アカウントへのユーザーのすべてのアクセス権を削除します。 |
|
指定されたパッケージに対するユーザーのアクセス権を更新します。 |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 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. |"]]