Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

user_id
string
required

user_id is the ID of the user, service account, or group to add the role to.

resource_type
enum<string>
required

resource_type is the type of resource the role applies to.

Available options:
ORGANIZATION,
CLUSTER,
FOLDER
resource_id
string
required

resource_id is the ID of the resource the role applies to. Pass an empty string for organization-scoped roles.

role_name
enum<string>
required

role_name is the role to grant.

Available options:
BILLING_COORDINATOR,
ORG_ADMIN,
ORG_MEMBER,
CLUSTER_ADMIN,
CLUSTER_OPERATOR_WRITER,
CLUSTER_DEVELOPER,
CLUSTER_CREATOR,
FOLDER_ADMIN,
FOLDER_MOVER,
METRICS_VIEWER,
CLUSTER_MONITOR,
BILLING_VIEWER,
AUDITOR,
CLUSTER_DATA_ACCESSOR

Response

A successful response.

group_roles
object[]
roles
object[]