---
title: "Remove a user's role"
method: DELETE
path: "/api/v2/groups/{groupId}/{role}/{userId}"
tags: ["Groups"]
---

# Remove a user's role

`DELETE /api/v2/groups/{groupId}/{role}/{userId}`

> 🔑
>
> Required OAuth scope: `groups:write`.

Removes the given role from the given user in the given group. The `learner` role is also removed from all public subgroups down to first private excluded.

## Path parameters

- `groupId` string, ObjectId, required
- `role` 'admin' | 'analyst' | 'coach' | 'contributor' | 'editor' | 'learner' | 'user-admin', required
- `userId` string, ObjectId, required

## Headers

- `360-api-version` 'v2.0', required

## Response `204`

Removes the given role from the given user in the given group.

## Other responses

- `400` — The `analyst` group role is not available in this company.
- `401` — The given access token is either missing, invalid, has expired, or has been revoked.
- `403` — The given access token does not have the required OAuth scope to execute the request.
- `404` — The server cannot find the requested resource.
- `429` — The client has sent too many requests in a short amount of time.

---

[API](https://skmtc.dev/360learning/apis/core-api.md) · [All operations](https://skmtc.dev/360learning/apis/core-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/360learning/core-api/revisions/94b691b0b72c/schema)
