---
title: "Add Group Leader"
slug: "add-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.

# Add Group Leader

Post/api/v1/groups.addLeader

Assign the `leader` role to a user in a private channel. Learn more about roles from the [Roles in Rocket.Chat](https://docs.rocket.chat/docs/roles-in-rocketchat) document.

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='9053cbb1-1228-4761-8519-58c3fe775929'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='92f0d61e-58f7-48e3-9eb2-9bfda5fd02ba'>Example</option>
</select>Example

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

object  roomIdstring    Required

The groups's (private channel) ID.

ExampleByehQjC44FwMeiLbX
userIdstring    Required

The user's ID.

ExampleoCHkav5Zf6vmpu2W2

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='a4033365-c8e6-4bdf-9365-b251e8518978'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='0c69802d-baf6-4948-a678-5e73c557a16e'>Success</option>
</select>Success

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

object  successboolean    

400

Bad Request

<select class='api-response-data' aria-label='Media type'><option value='f7f625a1-88e9-404b-a5b6-9c6612cad112'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='49cfe257-b8be-4df5-872c-af4faa4d5b32'>User is already a leader</option>
</select>User is already a leader

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

object  successboolean    
errorstring    
errorTypestring    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='30b52e64-17ee-4899-a159-785ea6e2a857'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='1b6d2aea-c97a-47bb-9599-48e77bda77f4'>Authorization Error</option>
</select>Authorization Error

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

object  statusstring    
messagestring
