---
title: "Add Group Moderator"
slug: "add-group-moderator"
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 Moderator

Post/api/v1/groups.addModerator

Assign the `moderator` 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-moderator`

### Changelog

| Version | Description |
| --- | --- |
| 0.49.4 | 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='693517e8-2968-49e9-a9aa-b7f09976b927'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='9efd4470-68c7-4249-ae7f-0cb314042ae4'>Example</option>
</select>Example

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

object  roomIdstring    Required

The groups's (private channel) ID.

ExampleByehQjC44FwMeiLbX
userIdstring    Required

The user's ID.

ExamplenSYqWzZ4GsKTX4dyK

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='4dcd7cb2-c5c3-4766-9ed1-cb4a2040f734'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='9b85e73d-da6b-4343-a929-8c96ccb95683'>Success</option>
</select>Success

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

object  successboolean    

400

Bad Request

<select class='api-response-data' aria-label='Media type'><option value='7986d9a2-4c03-4804-ada5-d2396e4e7abe'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='89abbb7c-3bf7-453d-bdfa-4d99c21b4bf0'>Example 1</option>
</select>Example 1

```json
{
  "success": false,
  "error": "The required \"roomId\" or \"roomName\" param provided does not match any group [error-room-not-found]",
  "errorType": "error-room-not-found"
}
```

object  successboolean    
errorstring    
errorTypestring    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='f892649e-bc6d-4851-ac05-987f696ea5f4'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='acdd7c97-eade-419d-b8ae-9534d248d347'>Authorization Error</option>
</select>Authorization Error

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

object  statusstring    
messagestring
