Get Room Roles
    • Dark
      Light
    • PDF

    Get Room Roles

    • Dark
      Light
    • PDF

    Article summary

    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 belong 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"
            }
        ]
    }


    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.
    ESC

    Eddy AI, facilitating knowledge discovery through conversational intelligence