Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Latest commit

 

History

History
38 lines (31 loc) · 790 Bytes

File metadata and controls

38 lines (31 loc) · 790 Bytes

Get Room Roles

Get a collection of users and their roles per room. You can send a collection of room ids (at least one).

The user roles per room object is defined as:

  • rid: The room id this user and role belongs to
  • u: A simple user object with the user id and username
  • roles: The collection of roles of the user in the room
  • _id: the id of this object

Example Call

{
    "msg": "method",
    "method": "getRoomRoles",
    "id": "42",
    "params": [ "room-id" ]
}

Example Response

{
    "msg": "result",
    "id": "42",
    "result": [
        {
            "rid": "room-id",
            "u": { "_id": "user-id", "username": "username" },
            "roles": [ "role-name" ],
            "_id": "id"
        }
    ]
}