> For a complete documentation index, fetch https://docs.voximplant.ai/llms.txt

# GetUsers

POST https://api.voximplant.com/platform_api/GetUsers

Shows the users of the specified account.

Allowed roles: `Owner`, `Admin`, `Developer`, `Supervisor`, `User manager`.

**Example request:** Get two first identities.

Reference: https://docs.voximplant.ai/api-reference/management-api/reference/users/get-users

## Authentication

- `Authorization` header (bearer token, required) — Voximplant Management API uses signed JWT tokens generated from your service-account private key. Pass the token in the `Authorization` header as a Bearer value: ``` Authorization: Bearer $VOXIMPLANT_TOKEN ``` See [Authorization](/api-reference/management-api/authorization) for ready-to-copy snippets in bash, Python, Node.js and Go that turn your `credentials.json` into a token.

## Request

### Query parameters

- `application_id` (integer, required) — The application ID to filter
- `application_name` (string, required) — The application name part to filter
- `skill_id` (integer, optional) — The skill ID to filter
- `excluded_skill_id` (integer, optional) — The excluded skill ID to filter
- `acd_queue_id` (integer, optional) — The ACD queue ID to filter
- `excluded_acd_queue_id` (integer, optional) — The excluded ACD queue ID to filter
- `user_id` (integer, optional) — The user ID to filter
- `user_name` (string, optional) — The user name part to filter
- `user_active` (boolean, optional) — Whether the user is active to filter. Inactive users cannot log in to applications
- `user_display_name` (string, optional) — The user display name part to filter
- `with_skills` (boolean, optional, default: false) — Whether to get the bound skills
- `with_queues` (boolean, optional, default: false) — Whether to get the bound queues
- `acd_status` (list of string, optional) — The ACD status list separated by semicolons (;) to filter. The following values are possible: OFFLINE, ONLINE, READY, BANNED, IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND
- `showing_skill_id` (integer, optional) — The skill to show in the 'skills' field output
- `count` (integer, optional, default: 20) — The max returning record count
- `offset` (integer, optional, default: 0) — The first **N** records are skipped in the output
- `order_by` (string, optional, default: user_name) — The following values are available: 'user_id', 'user_name' and 'user_display_name'
- `return_live_balance` (boolean, optional, default: true) — Whether to get the user live balance

## Response

### 200

Successful response

- `result` (list of UserInfoType, optional) — The UserInfoType records
- `total_count` (integer, optional) — The total found user count
- `count` (integer, optional) — The returned user count

## Types

### UserInfoType

The [GetUsers] function result.

- `user_id` (integer, optional) — The user ID
- `user_name` (string, optional) — The user name
- `user_display_name` (string, optional) — The display user name
- `user_active` (boolean, optional) — Whether the user is active. Inactive users cannot log in to applications
- `parent_accounting` (boolean, optional) — Whether the user uses the parent account's money, 'false' if the user has a separate balance
- `live_balance` (double, optional) — The current user's money in the currency specified for the account. The value is the number rounded to 4 decimal places, and it changes during the calls, transcribing, purchases etc
- `balance` (double, optional) — The current user's money in the currency specified for the account. The value is the number rounded to 4 decimal places. The parameter is the alias to live_balance by default. But there is a possibility to make the alias to fixed_balance: just to pass return_live_balance=false into the [GetAccountInfo] method
- `fixed_balance` (double, optional) — The last committed balance which has been approved by billing's transaction
- `user_custom_data` (string, optional) — The custom data
- `applications` (list of ApplicationInfoType, optional) — The bound applications
- `skills` (list of SkillInfoType, optional) — The bound skills
- `acd_queues` (list of ACDQueueOperatorInfoType, optional) — The bound ACD queues
- `acd_status` (string, optional) — The ACD operator status. The following values are possible: OFFLINE, ONLINE, READY, BANNED, IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND
- `acd_status_change_time` (string, optional) — Timestamp in YYYY-MM-DD HH:mm:ss format. The ACD status changing UTC date in 24-h format: YYYY-MM-DD HH:mm:ss
- `created` (string, optional) — Timestamp in YYYY-MM-DD HH:mm:ss format. The user editing UTC date in 24-h format: YYYY-MM-DD HH:mm:ss
- `modified` (string, optional) — Timestamp in YYYY-MM-DD HH:mm:ss format. The user editing UTC date in 24-h format: YYYY-MM-DD HH:mm:ss
- `frozen` (boolean, optional)

### ApplicationInfoType

The [GetApplications] function result.

- `application_id` (integer, optional) — The application ID
- `application_name` (string, optional) — The full application name
- `modified` (string, optional) — Timestamp in YYYY-MM-DD HH:mm:ss format. The application editing UTC date in 24-h format: YYYY-MM-DD HH:mm:ss
- `secure_record_storage` (boolean, optional) — Whether a secure storage for logs and records is enabled

### SkillInfoType

The [GetSkills] function result.

- `skill_id` (integer, optional) — The skill ID
- `skill_name` (string, optional) — The skill name

### ACDQueueOperatorInfoType

The 'acd_queues' element of the [GetUsers] function result.

- `acd_queue_id` (integer, optional) — The ACD queue ID
- `acd_queue_name` (string, optional) — The ACD queue name
- `auto_link` (boolean, optional) — Whether the user is bound to the ACD queue in manual mode if false

## Examples

**Response**

```json
{
  "result": [
    {
      "user_id": 1,
      "user_name": "iden-1",
      "user_display_name": "iden-1",
      "user_active": true,
      "balance": 1,
      "modified": "2013-09-09 11:26:31",
      "frozen": false
    },
    {
      "user_id": 2,
      "user_name": "iden-2",
      "user_display_name": "iden-2",
      "user_active": true,
      "balance": 0,
      "modified": "2013-09-09 15:22:13",
      "frozen": false
    }
  ],
  "total_count": 2,
  "count": 2
}
```

**SDK Code**

```python Example 1
import requests

url = "https://api.voximplant.com/platform_api/GetUsers"

querystring = {"application_id":"1","application_name":"application_name"}

headers = {"Authorization": "Bearer <token>"}

response = requests.post(url, headers=headers, params=querystring)

print(response.json())
```

```javascript Example 1
const url = 'https://api.voximplant.com/platform_api/GetUsers?application_id=1&application_name=application_name';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Example 1
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.voximplant.com/platform_api/GetUsers?application_id=1&application_name=application_name"

	req, _ := http.NewRequest("POST", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Example 1
require 'uri'
require 'net/http'

url = URI("https://api.voximplant.com/platform_api/GetUsers?application_id=1&application_name=application_name")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Example 1
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://api.voximplant.com/platform_api/GetUsers?application_id=1&application_name=application_name")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Example 1
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://api.voximplant.com/platform_api/GetUsers?application_id=1&application_name=application_name', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Example 1
using RestSharp;

var client = new RestClient("https://api.voximplant.com/platform_api/GetUsers?application_id=1&application_name=application_name");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Example 1
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.voximplant.com/platform_api/GetUsers?application_id=1&application_name=application_name")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```