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

# ロール

export const siteNameShort = "Sync";

export const siteName = "CData Sync";

{siteName} では、**ロール**タブ（**設定 > ロール**）には、アプリケーションで定義されているすべてのロールの一覧、および各ロールを担うことが可能なすべてのユーザーへのリンクが表示されます。ロールを使用すると、特定のリソースで特定のアクションのみを実行するようにユーザーを制限できます。ユーザーに割り当てられたロールは、以下を含むがこれらに限定されない、{siteNameShort} に表示されるすべての要素に影響します：

* [接続](../../../../connections/connections)
* [ジョブ](../../../../jobs/jobs)
* [変換](../../../../transformations/transformations)

{siteNameShort} のすべてのインストールには、定義済みの4つのロールが含まれています：

* [Admin](#admin-role)
* [Standard](#standard-role)
* [Job Creator](#job-creator-role)
* [Job Operator](#job-operator-role)

これらのロールは、編集や削除ができないグローバルなロールです。これらはすべてのリソースに適用されます。ただし、各ユーザーの権限を制限する[カスタムロール](#custom-roles)を定義することができます。カスタムロールは*ポリシー*で構成されており、ユーザーが{siteNameShort} で表示または実行できる内容を最も細かく制御できます。個々のユーザーには最大5個のロールを割り当てることができ、各ロールには最大10個のポリシーを含めることができます。またカスタムロールは、ユーザーがどのリソースを表示したり対話したりできるかを識別します。

## 定義済みロール

次のセクションでは、定義済みの各ロールについて、および各ロールに割り当てられている権限について説明します。

### Admin ロール

***Admin*** *ロール*はアプリケーションを完全に制御できます。***Admin*** ユーザーは、新しいジョブや接続の作成、アプリケーション設定の変更などコンソールでサポートされるすべての操作を実行できます。**Admin** ユーザーのみ他のユーザーを管理する権限があります。**Admin** ユーザーは、ユーザーの作成、削除、および編集ができます。また、アプリケーションで行われた（すべてのユーザーによる）変更が記録されるログの監査は、Admin ユーザーのみが閲覧できます。

### Standard ロール

***Standard*** *ロール*はジョブや接続の作成、編集、削除はできますが、**設定**タブで表示されるようなアプリケーション全体の設定を変更することは**できません**。

### Job Creator ロール

***Job Creator*** *ロール*はジョブや変換の作成、編集、削除はできますが、接続へのアクセスや、アプリケーション全体の設定を変更することは**できません**。

### Job Operator ロール

***Job Operator*** *ロール*は読み取り専用のロールで、ジョブの開始と停止、ジョブ履歴の表示、およびジョブのログのダウンロードを行うことができます。ユーザーは新しいジョブの作成、ジョブの削除、およびアプリケーション設定の変更は**できません**。

## カスタムロール

カスタムロールを使用すると、各ユーザーが{siteNameShort} アプリケーションで表示または実行できる内容をより詳細に制御できます。カスタムロールは、そのロールのメンバーに割り当てられる正確な権限を指定するポリシーを作成することで定義します。個々のユーザーには最大10個のロールを割り当てることができ、各ロールには最大10個のポリシーを含めることができます。

### カスタムロールとポリシーの作成

カスタムロールを作成するには：

1. **設定 > ロール**を選択します。

2. **ロールを追加**をクリックします。ロールにわかりやすい名前と説明を入力します。次に、再び**ロールを追加**をクリックして、新しいロールのポリシーページを開きます。

3. **ポリシーを追加**をクリックして、**ポリシーを追加**ダイアログボックスを開きます。

4. ポリシーを適用するワークスペースを選択します。このポリシーは、選択したワークスペースに含まれるすべてのリソースへのアクセスをユーザーに許可します。

5. **ポリシーを追加**をクリックして、**Policy *X* for *WorkspaceName*** ページを開きます（*X* はポリシー番号です）。ページには、各リソースタイプ（ジョブ、変換、接続）に対する一連の権限が表示されます。

6. 各**権限**セクションで、許可するアクション（例：**Create**、**Update**、**Schedule**）と、それらのアクションを適用するリソースを選択します。

   <Note>読み取り権限は、ワークスペース内のすべてのリソースに対して自動的に付与されます。ワークスペースにアクセスすると、読み取り権限がワークスペースから継承されないため、すべてのリソースを常に表示できます。</Note>

7. **保存**（ページの右上）をクリックして選択した権限を保存し、**ロール**の詳細ページに戻ります。

すべての権限を設定し、**ロール**ページに戻ったら、任意のロール名をクリックしてその概要を開くことができます。概要ページには、**ポリシー**と**割り当てられたユーザー**の2つのタブがあります。

* **ポリシータブ：** ページの下部にある**ポリシーを追加**をクリックして、既存のポリシーを編集するか新しいポリシーを追加します。
* **割り当てられたユーザータブ：** ロールにユーザーを割り当てます。詳細は、次のセクション[カスタムロールへのユーザーの割り当て](#assigning-users-to-a-custom-role)を参照してください。

概要ページから**ロール**ページに戻るには、ページの左上にある**ロール**リンクをクリックします。

### カスタムロールへのユーザーの割り当て

以下の手順で、**ロール**の概要ページからロールにユーザーを割り当てることができます。

1. **割り当てられたユーザー**タブをクリックします。
2. **ユーザーを割り当て**をクリックして、割り当てるユーザーを検索または選択できるダイアログボックスを開きます。
3. ダイアログボックスで**ユーザーを割り当て**をクリックし、選択したユーザーをロールに追加します。そうすると、**割り当てられたユーザー**タブに戻ります。

   <Note>**Admin** ロールに割り当てられたユーザーは、他のロールに割り当てることはできません。</Note>

### ロールおよびポリシーの例

The following example shows how to define custom roles and policies for different team responsibilities in {siteNameShort}.

A company manages several data-integration projects in {siteNameShort}, with each project organized into its own workspace.

A group of project managers and project analysts share responsibilities for these projects:

* **Project managers：** Create, run, and modify jobs.
* **Project analysts：** Analyze job results and performance metrics without making changes.

To manage access, you can define two custom roles and attach policies to each that specify the actions each role can perform within a workspace.

Create the roles and associated policies based on the steps outlined in [Creating Custom Roles and Policies](#creating-custom-roles-and-policies).

**ProjectManager:**

1. Create a custom role called **ProjectManager**.
2. Select the workspace to which you want the **ProjectManager** role to apply.
3. Create a policy and define the permissions that should be granted to the role. For example, on the **Policy *X* for *WorkspaceName*** page (where *X* is the policy number), specify the permissions that the project manager needs. This role needs permissions for all actions in the following categories:
   * **Job Permissions**
   * **Transformations Permissions**
   * **Connections Permissions**
4. Save the policy. Then assign the appropriate users to the role.

**ProjectAnalyst:**

1. Create a custom role called **ProjectAnalyst**.
2. Select the workspace to which you want the **ProjectAnalyst** role to apply.
3. Create a policy and define the permissions that should be granted to the role. For example, on the **Policy *X* for *WorkspaceName*** page (where *X* is the policy number), specify the permissions that the project analyst needs. This role only needs **View Logs** permission in the following categories:
   * **Job Permissions**
   * **Transformations Permissions**
4. Save the policy. Then assign the appropriate users to the role.

By defining these roles and attaching specific policies, you ensure that each user can access only those actions that are required for their responsibilities.

## ユーザーロールの比較

各ユーザーロールが実行できるアクションは、次のリストのとおりです：

* **接続、ジョブ、変換の閲覧：** すべてのロール（Admin、Standard、Job Creator、Job Operator）
* **アプリケーションログおよびジョブ実行ログの閲覧：** すべてのロール（Admin、Standard、Job Creator、Job Operator）
* **ジョブおよび変換の実行：** すべてのロール（Admin、Standard、Job Creator、Job Operator）
* **ジョブと変換の管理：** Admin、Standard、Job Creator
* **接続の管理：** Admin、Standard
* **新しいコネクタの追加：** Admin
* **ユーザーの管理：** Admin
* **アプリケーション設定の変更：** Admin
* **ログの監査の閲覧：** Admin
