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

# GetProjectsForUser

> ABBYY FlexiCapture API で GetProjectsForUser を呼び出し、user ID とユーザーロールの種類に基づくアクセス権限でフィルタリングされた Application Server プロジェクトを取得します。

<div id="what-it-does">
  ## この機能でできること
</div>

ユーザーのアクセス権限を考慮して、Application Server 上のプロジェクトに関する情報を取得します。

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

```
Project [] GetProjectsForUser( int userId, int roleType );
```

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

| **Name** | **型** | **説明**                                                                                                  |
| -------- | ----- | ------------------------------------------------------------------------------------------------------- |
| userId   | int   | ユーザーの ID                                                                                                |
| roleType | int   | ユーザーのユーザーロールの種類の ID。[RoleType](/ja/flexi-capture/api/structures/t-role-type) を参照してください。指定可能な値が記載されています。 |

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

<table width="100%"><tbody><tr><td><p><strong>型</strong></p></td><td><p><strong>説明</strong></p></td></tr><tr><td><p><a href="/ja/flexi-capture/api/structures/project">Project</a>\[]</p></td><td><p>各レコードに1つのプロジェクトに関する情報が含まれるレコードのセットです。このセットは、入力パラメーターの値に基づいて次のように作成されます。</p><ul><li>userId\<>0, roleType\<>0 指定したロールについて、このユーザーが少なくとも1つのバッチタイプに対するアクセス権限を持つプロジェクト</li><li>userId\<>0, roleType=0 このユーザーが少なくとも1つのバッチタイプに対して何らかのアクセス権限を持つプロジェクト</li><li>userId=0, roleType=0 すべてのプロジェクトの一覧</li><li>userId=0, roleType\<>0 空の一覧</li></ul></td></tr></tbody></table>
