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.
- To obtain the user ID, call the Retrieve organization information endpoint.
- To obtain the RBAC role ID, call the List RBAC roles endpoint.
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
Response
Success
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.