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

> ABBYY FlexiCapture API の GetRoles メソッドを使用すると、プロジェクトで定義されているすべてのロールを、各ロールの詳細を含む Role レコードとして取得できます。

<div id="what-it-does">
  ## 機能
</div>

プロジェクト内のすべてのロールの一覧を返します。

<div id="definition">
  ## 定義
</div>

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

<div id="parameters">
  ## パラメーター
</div>

| **Name**  | **型** | **説明**               |
| --------- | ----- | -------------------- |
| projectId | int   | ロールの一覧を取得するプロジェクトのID |

<div id="returned-value">
  ## 戻り値
</div>

| **型**                                                           | **説明**               |
| --------------------------------------------------------------- | -------------------- |
| [Role](/ja/flexi-capture/api/structures/role-api-structures)\[] | ロールに関する情報を含むレコードのセット |
