---
title: "removeUserRole"
method: DELETE
path: "/users/{id}/role"
tags: ["users"]
---

# removeUserRole

`DELETE /users/{id}/role`

## Request

- Base URL: `https://api-hub.extensiv.com`
- URL: `https://api-hub.extensiv.com/users/{id}/role`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/extensiv/apis/hub/docs/users/:id/role/delete.ts> (a function with typed inputs; its response is checked against the schema)

Removes a user's role in the current organization

## Path parameters

- `id` string, required

## Query parameters

- `orgkey` string, uuid

## Response `204`

The role has been removed successfully

## Other responses

- `400`: Resource does not exist<br>Invalid request<br>Validation error<br>Database constraint error
- `403`: Insufficient permissions

---

[API](https://skmtc.dev/extensiv/apis/hub.md) - [All operations](https://skmtc.dev/extensiv/apis/hub/llms.txt) - [OpenAPI document](https://skmtc.dev/extensiv/apis/hub/revisions/3f2a4976ee74?raw)
