Skip to main content
Allows one or more actions on a resource for a custom role or a single member — one rule per action. Only allow rules can be created; a deny (which would win over allows from any source except the owner) is not available — to take a permission away, delete the rule that grants it. The built-in roles cannot be changed, and actions that belong to the team owner cannot be granted. When an action depends on others the subject lacks, the request is refused with 409 unless auto_grant_prerequisites is set.
Permission required: policy:manage

Headers

string
Optional. Retrying with the same value replays the first result.

Request Body

array
required
Actions to allow on the resource; one rule per distinct action
string
required
Why the change is made; recorded in the audit log
string
required
Resource type, e.g. memorylake:project (see GET /permission-catalog), or one instance as <resource_type>:<instance_id>. API key permissions are written on tenant:service_account:own or tenant:service_account:any.
string
required
A custom role key of this team, or a member’s principal_id. The built-in roles cannot be changed.
string
required
role or member
boolean
When an action needs others the subject lacks (e.g. modify needs read), add those too. Without it such a request is refused with 409 naming what is missing.
string
default:"allow"
allow. Deny rules cannot be created: to take a permission away, delete the rule that grants it.

Response

object

Errors

Errors answer with success: false, a message and an error_code. See Error Codes for every code.