Skip to main content
POST
Grant an IAM role

Authorizations

Authorization
string
header
required

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

Body

application/json
role_id
string<uuid>
required

The role to grant, one of the organization's roles.

principal_type
enum<string>
required

Whether the principal is a user or a service account.

Available options:
user,
service_account
principal_id
string
required

The ID of a user of the organization other than the owner, as the Organization Users API returns it, or the ID of a service account of the organization. Send it in lower case, as the API returns it.

Response

The new grant.

data
object
required