Get presence of multiple workspace users. You can filter by date and user IDs.
If the Presence_broadcast_disabled setting is true, the endpoint returns an empty array. You can find this setting under Manage > Workspace > Settings > Troubleshoot.
Changelog
| Version | Description |
|---|---|
| 8.5.0 | Restored support for comma-separated values in ids. |
| 1.1.0 | Added |
The authenticated user ID.
The authenticated user token.
The last date when the status was changed. Format: ISO 8601 datetime. Timezone, milliseconds and seconds are optional. If you don't pass from parameter, you'll get a list of all users' presence and the result will have a full field with value true .
The user IDs whose status you want. You can pass more than one ID as comma-separated values.
{
"users": [
{
"_id": "rocket.cat",
"name": "Rocket.Cat",
"username": "rocket.cat",
"status": "online",
"utcOffset": 0,
"avatarETag": "5BB9B5ny5DkKdrwkq"
},
{
"_id": "rocketchat.internal.admin.test",
"name": "RocketChat Internal Admin Test",
"username": "rocketchat.internal.admin.test",
"status": "online",
"utcOffset": -2,
"avatarETag": "iEbEm4bTT327NJjXt"
}
],
"full": true,
"success": true
}Unauthorized
{
"status": "error",
"message": "You must be logged in to do this."
}