---
title: "Add all Users to a Channel"
slug: "add-all-users-to-a-channel"
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 all Users to a Channel

Post/api/v1/channels.addAll

Adds all users in the workspace to a public room. Permission required: `add-all-to-room`. The maximum number of users you can add at once depends on your workspace's REST API settings. To access this setting, go to **Manage** > **Workspace** > **Settings** > **General** > **REST API** > **User Limit for Adding All Users to Channel**.

### Changelog

| Version | Description |
| --- | --- |
| 0.55.0 | Added `activeUsersOnly` param |
| 0.48.0 | Renamed to `channels.addAll` from `channel.addAll` |

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='87746bbe-d68c-4f48-a7f1-661472dc93c3'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='d92a735b-8de5-4c73-b06a-a64bac2bae6d'>Example</option>
</select>Example

```json
{
  "roomId": "WDuJLFkjwk6L7LdFC",
  "activeUsersOnly": true
}
```

object  roomIdstring    Required

The channel's ID.

activeUsersOnlyboolean    

Add only active users. It is `false` by default.

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='0a26ae25-0038-480c-b2b6-e0c3b249eb70'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='8362188f-a4f8-4b3b-830d-8e6ec87bd122'>Success</option>
</select>Success

```json
{
  "channel": {
    "_id": "ByehQjC44FwMeiLbX",
    "name": "channelname",
    "t": "c",
    "usernames": [
      "example",
      "rocket.cat"
    ],
    "msgs": 0,
    "u": {
      "_id": "aobEdbYhXfu5hkeqG",
      "username": "example"
    },
    "ts": "2016-05-30T13:42:25.304Z"
  },
  "success": true
}
```

Expand Allobject  channelobject  _idstring    
fnamestring    
customFieldsobject  
topicstring    
broadcastboolean    
encryptedboolean    
namestring    
tstring    
msgsinteger    
usersCountinteger    
uobject  _idstring    
usernamestring    

tsstring    
roboolean    
defaultboolean    
sysMesboolean    
_updatedAtstring    
lastMessageobject  _idstring    
ridstring    
msgstring    
tsstring    
uobject  _idstring    
usernamestring    
namestring    

_updatedAtstring    
urls Array of object   object  
mentions Array of object   object  
channels Array of object   object  
md Array of object   object  typestring    
value Array of object   object  typestring    
valuestring    

lmstring    

successboolean    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='986cc843-9176-46d0-b661-86b8f0755085'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='01c90a8f-53b4-4f1b-99d3-2b18dc76faa9'>Authorization Error</option>
</select>Authorization Error

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

object  statusstring    
messagestring
