1. Home
  2. Kore.ai Conversational Platform
  3. SDKs & APIs
  4. Using Kore.ai APIs
  5. Get User Roles Details API

Get User Roles Details API

To get full information of all users and their associated roles in the account.

GET {{host}}/api/public/alluserroles

Query Parameters

Parameter Description
host Environment URL, for example, https://bots.kore.ai

Authorization

Invoke the API with JWT in the header with the following syntax:

auth: {{JWT}}

Response Content Type

application/json

Sample Request

curl -X GET \   {{host}}/api/public/alluserroles \
  -H 'auth: YOUR_JWT_ACCESS_TOKEN' \

Sample Response

{
    "total": 2,
    "availableMore": false,
    "users": [
        {
            "username": "sample1@samepleemail.com",
            "accountId": "5bf7cab874e1d71b45g21d73",
            "isDeveloper": true,
            "canCreateBot": true,
            "userId": "u-d34b77c7-a365-557d-22a4-e08vd11164ec",
            "btRoles": [
                {
                    "roleId": "5bf8db6ec1911d0c8b056cdf",
                    "roleName": "Bot Owner",
                    "groups": [],
                    "botId": "st-dde49131-f238-51ea-93ac-b84bn245cdc7",
                    "botName": "Asana Sample"
                },
                {
                    "roleId": "5bf8db6ec1911d0c8b056cdf",
                    "roleName": "Bot Owner",
                    "groups": [],
                    "botId": "st-7f8ab156-b1bb-5aaf-a5db-8a7ea4be550c",
                    "botName": "GitHub Sample"
                }
            ],
            "adminRoles": [
                {
                    "roleId": "5bf7cab974e1d71b41d21d76",
                    "roleName": "admin",
                    "groups": []
                }
            ]
        },
        {
            "username": "sample2@sampleemail.com",
            "accountId": "5bf7cbg400ad26212fa784dc",
            "isDeveloper": true,
            "canCreateBot": true,
            "userId": "u-b4t6c025-b717-5b90-801a-492291ce3f24",
            "btRoles": [
                {
                    "roleId": "5bf8db6ec1911d0c8b056cdf",
                    "roleName": "Bot Owner",
                    "groups": [],
                    "botId": "st-35cbgg87-7d42-526c-ac36-97f8383a2280",
                    "botName": "Test Bot"
                }
            ],
            "adminRoles": []
        }
    ]
}

Was this article helpful to you? Yes No