Get User Roles

Get the role(s) of a user in a room. It can be used to identify key users in the workspace.

Name

Requires Auth

Permission

Setting

getUserRoles

Yes

Example Call

{
    "msg": "method",
    "method": "getUserRoles",
    "id": "42",
    "params": []
}

Example Response

{
    "msg": "result",
    "id": "4022",
    "result": [
        {
            "_id": "LFdhbcNHx5zsMA7T4",
            "roles": [
                "admin"
            ],
            "username": "test.rc"
        }
    ]
}

Last updated

Rocket.Chat versions receive support for six months after release.