ロール管理

提供:MoodleDocs
2007年7月2日 (月) 17:53時点におけるMitsuhiro Yoshida (トーク | 投稿記録)による版 (→‎パーミッション)
移動先:案内検索

作成中です - Mitsuhiro Yoshida 2007年6月28日 (木) 12:50 (CDT)

ロケーション: 管理 > ユーザ > パーミッション > ロールの定義

Moodleでは事前に定義された以下7つのロールがあります:

それぞれのロールは、ロール省略名の隣にあるアイコンをクリックすることで編集できます。

パーミッション

Administration Block Site Roles detail.JPG

ここでは特定のケイパビリティにパーミッションを設定します。設定値には下記4つの値があります:

設定なし (旧 継承)
これは新しいロールが作成される時にパーミッションに設定されるデフォルト値です。「ユーザがすでに持っている設定を使用する」ことを意味します。すでにユーザがどのようなパーミッションを持っているのか決定するため、Moodleは入れ子になったケイパビリティを上の方へ検索しながら、このケイパビリティに対する適切な値 (許可、抑制、禁止) を探します。例えば、ロールがコースコンテクストの中でユーザに割り当てられ、いくつかのケイパビリティの値が「設定なし」だった場合、実際のパーミッションはユーザがカテゴリレベルで持っているパーミッションになるか、(カテゴリレベルで適切なパーミッションを探すことができない場合) ユーザがサイトレベルで持っているパーミッションになります。適切なパーミッションが見つかった場合、検索は終了します。適切なパーミッションが見つからなかった場合、現在のコンテクストの設定値は「抑制」になります。
許可
この設定を選択することで、ロールが割り当てられたユーザに対してケイパビリティの許可を与えます。このパーミッションはロールが割り当てられたコンテクストおよびすべての「低い」コンテクストに適用されます。例えば、コースで割り当てられたロールが学生ロールの場合、いくつかのフォーラムに対してオーバーライドまたはケイパビリティに対する抑制や拒否の設定がなされていない限り、そのユーザはコース内のすべてのフォーラムで「新しいディスカッションを開始する」ことができます。
抑制
この設定を選択することで、ロールが割り当てられたユーザに高いコンテクストで許可が与えられていたとしても、このケイパビリティに対する許可を取り除くことができます。
禁止
この設定値が必要となることはほとんどありませんが、場合によっては低いコンテクストがオーバライドされないよう、ロールにパーミッションを全く与えない設定にするのも良いでしょう。あなたがこれを必要とする良い例は、管理者が1人のユーザに対して、サイト全体ですべてのフォーラムに新しいディスカッションを開始させたくない場合です。この場合、ケイパビリティに「禁止」が設定されたロールを管理者が作成し、サイトコンテクストでそのロールを当該ユーザに割り当てることができます。

Permissions at a "lower" context will generally override anything at a "higher" context (this applies to overrides and assigned roles). The exception is Prohibit which can not be overridden at lower levels.

If two roles are assigned to a person in the same context, one with Allow and one with Prevent, which one wins? In this case, Moodle will look up the context tree for a "decider".

For example, a student has two roles in a course, one that allows them to start new discussions, one that prevents them. In this case, we check the categories and the site contexts, looking for another defined permission to help us decide. If we don't find one, then permission is Prevent by default (because the two settings cancelled each other out, and thus they have no permission).

レガシーロールタイプ

  • Legacy role types were implemented for backward compatibility.
  • Selecting a legacy role type in 1.8 (or allowing a legacy capability in 1.7) does NOT provide a new role with all capabilities of a pre-Moodle 1.7 role.
  • It is recommended that a legacy role type is selected only for roles that are similar to pre-Moodle 1.7 student/teacher/admin/creator roles.
  • It is not necessary to select a legacy role type unless using old 3rd party code that was not designed for Moodle 1.7 and doesn't yet support roles.

新しいロールの追加

  1. Give the role an appropriate name. If you need to name the role for multiple languages you can use multi-lang syntax if you wish, such as <span lang="en" class="multilang">Teacher</span> <span lang="es_es" class="multilang">Profesor</span>. If multi-lang syntax is used then Filter all strings should be set in Filter settings.
  2. Give the role a meaningful short name. The short name is necessary for other plugins in Moodle that may need to refer to the role (e.g. when uploading users from a file or setting enrolments via an enrolment plugin).
  3. Optional: Give the role a description so that everyone has a common understanding of it.

重複ロールの作成

Moodle 1.8

In Moodle 1.8 onwards, a new role may be quickly created my making a copy of an existing role. An administrator will find this in the Admin block, under Users, Permissions and Defined roles.

  1. Click on the role to be duplicated. For example "Guest".
  2. Click the "Duplicate role" button near the top of the "View role details" page.
  3. Answer Yes to the question "Are you sure you want to duplicate the role ...?"
  4. The list of roles will now show the "... copy 1" at the bottom. For example "Guest copy 1".
  5. Edit the duplicated role to meet your needs.

新しいロールのテスト

  1. Create test user and assign new role to them.
  2. Either logout as admin and then login as test user or use a different browser to login as test user.

Note: New roles may not be tested using the "Switch role to..." feature.

ロール例

  • 監査ロール - 「監査」ロールは、すべてのコースを受講登録なしで閲覧することができる外部監査人に割り当てます。
  • 親ロール - 「親ロール」は、「子/メンティー/チューティー」の活動レポート、評定、ブログエントリ、フォーラム投稿等を「親/メンター/チューター」が閲覧できるパーミッションを与える場合に使用します。
  • デモ教師ロール - 「デモ教師ロール」は、ユーザがパスワードおよびプロフィールを変更できないデモンストレーション教師アカウントを提供するため使用します。
  • フォーラムモデレータロール - 特定のフォーラムに対するフォーラムモデレータは、フォーラム投稿を編集、削除、分割、他のフォーラムへ移動することができます。

関連情報