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

# GetUserRoles

> Use GetUserRoles in the ABBYY FlexiCapture API to get the IDs of the roles available to the current user within a specified project.

## What it does

Gets a list of the IDs of the user roles available to the current user in a project.

## Definition

```
int [] GetUserRoles( int projectId );
```

## Parameters

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

## Returned value

| **Type** | **Description**   |
| -------- | ----------------- |
| int \[]  | A set of role IDs |
