---
title: "Revoke a custom role from a user"
method: DELETE
path: "/user/{userId}/role/{roleName}"
tags: ["User"]
---

# Revoke a custom role from a user

`DELETE /user/{userId}/role/{roleName}`

## Request

- Base URL: `https://api.insided.com`
- URL: `https://api.insided.com/user/{userId}/role/{roleName}`
- Auth: OAuth 2 (client credentials, token URL `/oauth2/token`)

Revokes a custom role from an existing user

## Path parameters

- `userId` string, required
- `roleName` string, required

## Response `204`

Success response with no content

## Other responses

- `404`: Not Found
- `422`: Validation error
- `500`: Unexpected error

---

[API](https://skmtc.dev/insided/apis/user-api.md) · [All operations](https://skmtc.dev/insided/apis/user-api/llms.txt) · [OpenAPI document](https://skmtc.dev/insided/apis/user-api/revisions/d5cbe609c9e7?raw)
