Skip to main content

Revoke RBAC Role From Organization Member

DELETE https://infrahub-api.nexgencloud.com/v1/auth/users/{user_id}/roles

Removes a Role-Based Access Control (RBAC) role from a specified member of your organization, revoking their access to the resource actions permitted by the permissions and policies contained within the role. Include the ID of the user from whom the RBAC role will be removed in the path.


Path parameters


user_id integer   Required

The ID of the organization member from whom the role is being removed.


Attributes


status boolean

Indicates the status of the request to remove an RBAC role from an organization member. true indicates success, while false indicates an error.


message string

A message describing the request to remove an RBAC role from a member.


Example request
curl -X PUT "https://infrahub-api.nexgencloud.com/v1/auth/users/{user_id}/roles" \
-H "accept: application/json" \
-H "api_key: YOUR API KEY"
Response
{
"status": true,
"message": "RBAC member role deleted successfully"
}

Returns


The response will provide the status of the request, where true indicates success, along with a message describing the status of the removal of the RBAC role from the specific user.



Back to top