---
title: "Add All Users to Group"
slug: "add-all-users-to-group"
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 Group

Post/api/v1/groups.addAll

Add all workspace users to the private channel. You can do this if you are a member of the private channel or have admin permissions.

### Changelog

| Version | Description |
| --- | --- |
| 0.55.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='e1c9e32b-a401-489d-b743-454114e7f056'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='41176397-2c1e-4ed6-a197-e9dbbcd83165'>Example</option>
</select>Example

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

object  roomIdstring    Required

Enter the group ID. Alternatively, you can enter the name using the `roomName` query parameter. 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.

activeUsersOnlyboolean    

Add only active users to the room.

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='76aae6ce-1782-4c04-b44f-90f76dc1a878'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='ed70bfe4-b595-437e-a020-64b73b3cf6c6'>Success</option>
</select>Success

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

Expand Allobject  channelobject  _idstring    
namestring    
tstring    
usernames Array of string   string    
msgsinteger    
uobject  _idstring    
usernamestring    

tsstring    

successboolean    

400

Bad Request

<select class='api-response-data' aria-label='Media type'><option value='65481847-bcf2-4a6f-b4b8-d42b4c1fb9f8'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='77312076-e86a-4882-bb30-bd2293347bf0'>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='bef95726-654b-4d48-8a33-733c722891b5'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='374a4690-cca1-4424-94be-7b89ecc1e6c4'>Authorization Error</option>
</select>Authorization Error

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

object  statusstring    
messagestring
