---
title: "Remove role from a user."
method: DELETE
path: "/v2/roles/{roleId}/users/{userId}"
tags: ["roleManagementV2"]
---

# Remove role from a user.

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

Remove a role from a user in the organization.

## Path parameters

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

## Response `204`

Role was successfully removed from the user.

## Other responses

- `default` — Operation failed with an error.

---

[API](https://skmtc.net/sumologic/apis/sumo-logic-api.md) · [All operations](https://skmtc.net/sumologic/apis/sumo-logic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/sumologic/sumo-logic-api/versions/18a824df1e78/schema)
