> ## Documentation Index
> Fetch the complete documentation index at: https://docs.abbyy.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetAvailableUsers

> GetAvailableUsers in the ABBYY FlexiCapture web services API lists the users or groups allowed to process a stage, so you can choose a recipient for a task.

## What it does

Gets a list of users or groups allowed to process a specified stage. Allows you to get a list of available variants when sending a task to a particular user.

## Definition

```
User [] GetAvailableUsers( int projectId, int batchTypeId, int stageExternalId );
```

## Parameters

| **Name**        | **Type** | **Description**                                                     |
| --------------- | -------- | ------------------------------------------------------------------- |
| projectId       | int      | The ID of the project for which to get the list of users/groups     |
| batchTypeId     | int      | The ID of the batch type. 0 corresponds to the "Default" batch type |
| stageExternalId | int      | The ID of the processing stage                                      |

## Returned value

| **Type**                                      | **Description**                      |
| --------------------------------------------- | ------------------------------------ |
| [User](/flexi-capture/api/structures/user)\[] | The set of records listing the users |
