Create a role binding
Grant a role to a principal at an organization or project scope.
Authorizations
An access token must be provided in the Authorization header using the Bearer scheme.
Headers
Required date-based version header
Body
Principal, resource scope, and role to bind.
The kind of principal that receives permissions from a role binding.
Possible values: user, service_account, api_key, invite.
"service_account"
Principal ID. Format depends on principal_type.
"e2e92523-85dc-4142-b8c2-e681be8b78df"
The kind of resource scope a role binding applies to.
Possible values: organization, project.
"project"
A role assigned to a principal at a resource scope.
"ProjectOwner"
Project UUID. Required when resource_type is project; omit for organization scope.
"a2f7dddb-1597-4eff-9f71-535fde243f58"
Response
Role binding created.
Grants a role to a principal at a resource scope.
The unique ID of the role binding.
The kind of principal that receives permissions from a role binding.
Possible values: user, service_account, api_key, invite.
"service_account"
The principal's ID. A UUID for all principal types (user, service_account, api_key, invite).
"e2e92523-85dc-4142-b8c2-e681be8b78df"
The kind of resource scope a role binding applies to.
Possible values: organization, project.
"project"
The organization or project that the binding is scoped to.
A role assigned to a principal at a resource scope.
"ProjectOwner"
When the role binding was created.
Was this page helpful?