Get User Roles
    • Dark
      Light
    • PDF

    Get User Roles

    • Dark
      Light
    • PDF

    Article summary

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

    Method

    Requires Auth

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


    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