> ## 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.

# GetRoles

> Use the GetRoles method in the ABBYY FlexiCapture API to return the full list of roles defined in a project, each as a Role record with its details.

## What it does

Returns the list of all roles in a project.

## Definition

```
Role [] GetRoles( int projectId );
```

## Parameters

| **Name**  | **Type** | **Description**                                          |
| --------- | -------- | -------------------------------------------------------- |
| projectId | int      | The ID of the project for which to get the list of roles |

## Returned value

| **Type**                                                     | **Description**                                              |
| ------------------------------------------------------------ | ------------------------------------------------------------ |
| [Role](/flexi-capture/api/structures/role-api-structures)\[] | The set of records, each containing information about a role |
