---
title: "Remove Group Leader"
slug: "remove-group-leader"
updated: 2026-06-08T12:46:40Z
published: 2026-06-08T12:46:40Z
stale: true
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Remove Group Leader

Post/api/v1/groups.removeLeader

Remove the `leader` role from a user in a private channel.

Permission required: `set-leader`

### Changelog

| Version | Description |
| --- | --- |
| 0.58.0 | Added |

Header parametersX-Auth-TokenstringRequired

The `authToken` of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired

The `userId` of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ

Body parameters<select class='api-response-data' aria-label='Media type'><option value='8dfdbe3a-d9a8-4c15-9be8-afdf1f0c80cb'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='d84b1f48-e40a-4bd2-8340-7eaef3d9779f'>Example</option>
</select>Example

```json
{
  "roomId": "ByehQjC44FwMeiLbX",
  "userId": "oCHkav5Zf6vmpu2W2"
}
```

object  roomIdstring    Required

The private group ID. You can find the IDs by using any of the following endpoints:

- [Get List of User Groups](https://developer.rocket.chat/apidocs/get-list-of-user-groups): This endpoint returns all private channels in the workspace, if you have the required permissions to view them.
- [Get Groups](https://developer.rocket.chat/apidocs/get-groups): This endpoint returns the private channels that you are a member of.

ExampleByehQjC44FwMeiLbX
userIdstring    Required

The user ID.

ExampleoCHkav5Zf6vmpu2W2

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='eae06d31-dde6-47da-9034-119ad77bb30c'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='bcadad3e-ec98-41bd-b55b-47fdc444a10c'>Success</option>
</select>Success

```json
{
  "success": true
}
```

object  successboolean    

400

Bad Request

<select class='api-response-data' aria-label='Media type'><option value='b0fe9653-1b33-4d2d-9c0c-9b395e50fdb4'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='ac76cb4c-1347-455f-9a81-963c4fad7bbd'>User is not a leader</option>
</select>User is not a leader

```json
{
  "success": false,
  "error": "User is not a leader [error-user-not-leader]",
  "errorType": "error-user-not-leader"
}
```

object  successboolean    
errorstring    
errorTypestring    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='218dd3c6-6151-41af-8506-079d93107f39'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='b0e393bd-a046-4812-8636-c08978a754d4'>Authorization Error</option>
</select>Authorization Error

```json
{
  "status": "error",
  "message": "You must be logged in to do this."
}
```

object  statusstring    
messagestring
