To get complete information on all the users and their associated roles in the account.
This API requires JWT generated by an application created only from the Bot Admin Console.
| Method | GET |
| Endpoint | https://{{host}}/api/public/alluserroles?limit=2 |
| Content Type | application/json |
| Authorization | auth: {{JWT}}
|
| API Scope |
|
Path Parameters
| Parameter | Description |
|---|---|
| host | Environment URL, for example, https://bots.kore.ai |
| limit | Indicates the number of records to be returned in the result set. |
| offset | The number of records to be skipped from the result set. |
Sample Request
curl --location 'https://{{host}}/api/public/alluserroles?limit=2' \ --header 'auth: {{YOUR_JWT_ACCESS_TOKEN}}' \
Sample Response
{
"total": 4,
"availableMore": true,
"users": [
{
"username": "john.doe@example.com",
"accountId": "643fb71739babf051287c65a",
"isDeveloper": true,
"canCreateBot": true,
"hasDataTableAndViewAccess": true,
"isAppDeveloper": true,
"canCreateApp": true,
"userId": "u-ee4a39c1-xxxx-53d2-xxxx-9fffc7b58368",
"btRoles": [
{
"roleId": "643fb71739babf051287c668",
"roleName": "Bot Owner",
"groups": [],
"botId": "st-c6717305-aa65-5d76-a562-b1d3bafc954d",
"botName": "uber bot"
},
{
"roleId": "643fb71739babf051287c668",
"roleName": "Bot Owner",
"groups": [],
"botId": "st-e88b0c7a-7b8a-5fe6-ab31-2d990ffac1b2",
"botName": "today011"
},
],
"adminRoles": [
{
"roleId": "643fb71739babf051287c667",
"roleName": "admin",
"groups": []
},
{
"roleId": "643fb71739babf051287c673",
"groups": []
}
],
"processRoles": []
},
{
"username": "john.doe@example.com",
"accountId": "6451eb91xxxx0a67cd93971f",
"isDeveloper": true,
"canCreateBot": true,
"hasDataTableAndViewAccess": true,
"isAppDeveloper": true,
"canCreateApp": true,
"userId": "u-9c853142-xxxx-5312-xxxx-b82c03063c7e",
"btRoles": [
{
"roleId": "643fb71739babf051287c668",
"roleName": "Bot Owner",
"groups": [],
"botId": "st-4d4ad5be-d061-5412-8f11-3aba07048ec1",
"botName": "IT Services2"
},
{
"roleId": "643fb71739babf051287c668",
"roleName": "Bot Owner",
"groups": [],
"botId": "st-08d4dec8-972d-5529-9a01-62df19ec2f34",
"botName": "TestAutomationBot"
},
{
"roleId": "643fb71739babf051287c668",
"roleName": "Bot Owner",
"groups": [],
"botId": "st-de2e4b6e-e1de-5d36-a4f5-90294b860c04",
"botName": "TestBot186"
}
],
"adminRoles": [],
"processRoles": []
}
]
}