Assigning Member Role

Assign RBAC role

Assigns a Role-Based Access Control (RBAC) role to a member of your organization, granting them the resource actions permitted by the role's permissions and policies. Include the user ID in the path and the RBAC role ID in the request body.

put/auth/users/{user_id}/assign-roles

Request

  • Base URL: https://infrahub-api.nexgencloud.com/v1
  • URL: https://infrahub-api.nexgencloud.com/v1/auth/users/{user_id}/assign-roles
  • Auth: API key in header api_key

Path parameters

user_idinteger required

ID of the user.

Request body

role_idinteger required

ID of the RBAC role to assign to the organization member.

Response

Success

statusboolean

Whether the request succeeded.

messagestring

Human-readable description of the result.

Example response

{
  "status": true,
  "message": "Creating RBAC role success",
  "role": {
    "id": 7613,
    "name": "example-role",
    "description": "example",
    "created_at": "2026-05-06T15:18:42Z"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.