---
title: "Get Group Online Users"
slug: "get-group-online-users"
updated: 2026-09-03T14:50:33Z
published: 2026-09-03T14:50:33Z
canonical: "developer.rocket.chat/get-group-online-users"
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.
# Get Group Online Users
Get/api/v1/groups.online
Lists all online users of a particular group (private channel). You will not be able to view the users if you are not a member of this private channel, unless you have admin permissions.
### Changelog
| Version | Description |
| --- | --- |
| 0.52.0 | Added |
| 7.0.0 | Replaced `query` parameter with `_id` parameter |
Header parametersX-Auth-TokenstringRequired
The `authToken` of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired
The `userId` of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Query parameters_idstringRequired
Enter the group's ID. You can find list of groups IDs 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.
Example5HmCfpoB7jp2uibTC
Responses200
OK
Success
```json
{
"online": [
{
"_id": "47cRd58HnWwpqxhaZ",
"username": "test"
},
{
"_id": "BsxzC22xQ43taWdff",
"username": "uniqueusername"
}
],
"success": true
}
```
Expand Allobject online Array of object object _idstring
usernamestring
successboolean
400
Bad Request
Error if you are not a member of the private channel
```json
{
"success": false,
"error": "Not Allowed [error-not-allowed]",
"errorType": "error-not-allowed"
}
```
Invalid or missing query parameter
```json
{
"success": false,
"error": "Invalid query"
}
```
object successboolean
errorstring
errorTypestring
401
Unauthorized
Authorization Error
```json
{
"status": "error",
"message": "You must be logged in to do this."
}
```
object statusstring
messagestring