---
title: "Remove Role from User"
method: DELETE
path: "/users/{userId}/roles/{roleId}"
tags: ["User"]
---

# Remove Role from User

`DELETE /users/{userId}/roles/{roleId}`

Remove a specific role from a user

## Path parameters

- `roleId` string, required
- `userId` string, required

## Headers

- `tenant-id` string

## Response `200`

Role removed successfully

- SuccessResponse
  - `message` string

## Other responses

- `400` — Bad request - Invalid request parameters or missing required headers
- `401` — Authentication required - Valid authentication token is missing or invalid
- `403` — Forbidden - User does not have the required permissions to remove roles from users
- `500` — Internal server error - An unexpected error occurred while processing the request

---

[API](https://skmtc.net/certifyos/apis/certify-api-layer.md) · [All operations](https://skmtc.net/certifyos/apis/certify-api-layer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/certifyos/certify-api-layer/versions/3d27e9019c7b/schema)
