Skip to content

gplay grants

Manage per-app permission grants.

gplay grants <subcommand> [flags]

Manage per-app permission grants for users.

Grants give users specific permissions for individual apps, as opposed to account-wide permissions.

Create a grant for a user on an app.

gplay grants create --developer <id> --email <email> --package <pkg> --json <json>

Create a permission grant for a user on a specific app.

JSON format: { “appLevelPermissions”: [ “CAN_ACCESS_APP”, “CAN_VIEW_FINANCIAL_DATA”, “CAN_MANAGE_PERMISSIONS”, “CAN_REPLY_TO_REVIEWS”, “CAN_MANAGE_PUBLIC_APKS”, “CAN_MANAGE_TRACK_APKS”, “CAN_MANAGE_TRACK_USERS”, “CAN_MANAGE_PUBLIC_LISTING”, “CAN_MANAGE_DRAFT_APPS”, “CAN_MANAGE_ORDERS” ] }

Available app permissions:

  • CAN_ACCESS_APP: Basic app access
  • CAN_VIEW_FINANCIAL_DATA: View financial reports
  • CAN_MANAGE_PERMISSIONS: Manage user permissions
  • CAN_REPLY_TO_REVIEWS: Reply to user reviews
  • CAN_MANAGE_PUBLIC_APKS: Manage production releases
  • CAN_MANAGE_TRACK_APKS: Manage test tracks
  • CAN_MANAGE_TRACK_USERS: Manage testers
  • CAN_MANAGE_PUBLIC_LISTING: Manage store listing
  • CAN_MANAGE_DRAFT_APPS: Manage draft changes
  • CAN_MANAGE_ORDERS: Manage orders and subscriptions
Flag Description Default
--developer Developer ID ``
--email User email address ``
--json Grant permissions JSON (or @file) ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false

Update a grant’s permissions.

gplay grants update --developer <id> --email <email> --package <pkg> --json <json>

Update permissions for an existing app-level grant.

JSON format: { “appLevelPermissions”: [ “CAN_ACCESS_APP”, “CAN_MANAGE_PUBLIC_LISTING” ] }

Available app permissions:

  • CAN_ACCESS_APP: Basic app access
  • CAN_VIEW_FINANCIAL_DATA: View financial reports
  • CAN_MANAGE_PERMISSIONS: Manage user permissions
  • CAN_REPLY_TO_REVIEWS: Reply to user reviews
  • CAN_MANAGE_PUBLIC_APKS: Manage production releases
  • CAN_MANAGE_TRACK_APKS: Manage test tracks
  • CAN_MANAGE_TRACK_USERS: Manage testers
  • CAN_MANAGE_PUBLIC_LISTING: Manage store listing
  • CAN_MANAGE_DRAFT_APPS: Manage draft changes
  • CAN_MANAGE_ORDERS: Manage orders and subscriptions

Use –update-mask to specify which fields to update. If omitted, all fields in the request body are applied.

Flag Description Default
--developer Developer ID ``
--email User email address ``
--json Updated grant permissions JSON (or @file) ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false
--update-mask Fields to update (comma-separated) ``

Remove a grant from a user.

gplay grants delete --developer <id> --email <email> --package <pkg> --confirm
Flag Description Default
--confirm Confirm deletion false
--developer Developer ID ``
--email User email address ``
--output Output format: json (default), table, markdown json
--package Package name (applicationId) ``
--pretty Pretty-print JSON output false