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.
- To obtain the ID of the user from whom the role will be removed, call the Retrieve Organization Details endpoint.
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.
curl -X PUT "https://infrahub-api.nexgencloud.com/v1/auth/users/{user_id}/roles" \
-H "accept: application/json" \
-H "api_key: YOUR API KEY"
{
"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.