---
title: "Remove User Role"
method: DELETE
path: "/api/access/v2/users/{userId}/access-levels"
tags: ["Users V2"]
---

# Remove User Role

`DELETE /api/access/v2/users/{userId}/access-levels`

Use this API to remove a specific role from a user.

## Path parameters

- `userId` string, uuid, required

## Request body

- PlatformAccessManagementPublicAccessLevelRequest
  - `organizationId` string, uuid, required — The unique identifier of the organization.
  - `roleId` string, uuid, required — The unique identifier of the role.

## Response `204`

Access level removed successfully

## Other responses

- `400` — Invalid request data - malformed UUID, invalid request body, removal would leave user with no roles in default organization, or removal would leave no site admins in root organization
- `401` — Unauthorized - Invalid or missing authentication
- `403` — Forbidden - Insufficient permissions
- `404` — Organization, role or access level not found
- `409` — Conflict - User does not exist
- `429` — Too Many Requests. For more information, see [API Rate Limits](https://developer.onetrust.com/onetrust/reference/rate-limits-overview).
- `500` — Internal Server Error

---

[API](https://skmtc.net/onetrust/apis/platform-access-management.md) · [All operations](https://skmtc.net/onetrust/apis/platform-access-management/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onetrust/platform-access-management/versions/21de3aa0b170/schema)
