Get Roles
    • Dark
      Light
    • PDF

    Get Roles

    • Dark
      Light
    • PDF

    Article summary

    Get
    /api/v1/roles.list

    Gets all the roles in the workspace.

    Changelog

    VersionDescription
    0.73.0Added mandatory2fa property
    0.70.0Added
    Header parameters
    X-User-Id
    stringRequired

    The authenticated user ID.

    ExamplerbAXPnMktTFbNpwtJ
    X-Auth-Token
    stringRequired

    The authenticated user token.

    ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
    Responses
    200

    OK

    Success Example
    {
      "roles": [
        {
          "_id": "admin",
          "description": "Admin",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Users"
        },
        {
          "_id": "moderator",
          "description": "Moderator",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Subscriptions"
        },
        {
          "_id": "leader",
          "description": "Leader",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Subscriptions"
        },
        {
          "_id": "owner",
          "description": "Owner",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Subscriptions"
        },
        {
          "_id": "user",
          "description": "",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Users"
        },
        {
          "_id": "bot",
          "description": "",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Users"
        },
        {
          "_id": "guest",
          "description": "",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Users"
        },
        {
          "_id": "anonymous",
          "description": "",
          "mandatory2fa": false,
          "protected": true,
          "scope": "Users"
        },
        {
          "_id": "livechat-agent",
          "name": "livechat-agent",
          "scope": "Users"
        },
        {
          "_id": "livechat-manager",
          "name": "livechat-manager",
          "scope": "Users"
        },
        {
          "_id": "livechat-guest",
          "name": "livechat-guest",
          "scope": "Users"
        }
      ],
      "success": true
    }
    Expand All
    object
    roles
    Array of object
    object
    _id
    string
    description
    string
    mandatory2fa
    boolean
    protected
    boolean
    scope
    string
    name
    string
    success
    boolean
    401

    Unauthorized

    Authorization Error
    {
      "status": "error",
      "message": "You must be logged in to do this."
    }
    object
    status
    string
    message
    string

    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.