Assign Role
Changed onAssigns a role to a user. Returns 409 if role is already assigned.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The user ID
Request body
An assigned role is a role that has been assigned to a user or team. Exactly one of entity_id or entity_ids must be provided.
The desired role.
The ID of the entity. Mutually exclusive with entity_ids.
The IDs of the entities associated with this role assignment. Mutually exclusive with entity_id; exactly one of entity_id or entity_ids must be provided.
The type of entity.
Region of the team.
Example request
{
"role_name": "Viewer",
"entity_id": "e67490ce-44dc-4cbd-b65e-b52c746fc26a",
"entity_ids": [
"817d0422-45c9-4d88-8d64-45aef05c1ae7",
"18ee2573-dec0-4b83-be99-fa7700bcdc61"
],
"entity_type_name": "Control Planes",
"entity_region": "eu"
}Response
A get action response of a single assigned role.
An assigned role is a role that has been assigned to a user or team.
The ID of the role assignment.
Name of the role being assigned.
A RBAC entity ID. Deprecated in favor of entity_ids
The IDs of the entities associated with this role assignment. Mutually exclusive with entity_id; exactly one of entity_id or entity_ids must be provided.
Name of the entity type the role is being assigned to.
Region of the entity.
Pre-release Feature This feature is currently in beta and is subject to change.
Indicates that the role is assigned and removed only by Konnect.
Example response
{
"id": "54cc6168-ebb1-4300-8168-d62a0dd08fc8",
"role_name": "Viewer",
"entity_id": "18ee2573-dec0-4b83-be99-fa7700bcdc61",
"entity_ids": [
"18ee2573-dec0-4b83-be99-fa7700bcdc61"
],
"entity_type_name": "Control Planes",
"entity_region": "us"
}Changes
- breaking
the request property
entity_idbecame not nullable - info
added the new optional request property
entity_ids - info
request property
entity_iddeprecated
3 more changes in this revision
- breaking