ロールの割り当て

提供:MoodleDocs
移動先:案内検索

作成中です - Mitsuhiro Yoshida 2007年6月5日 (火) 11:32 (CDT)

ロケーション

  • システムコンテクスト: サイト管理 >> ユーザ >> パーミッション >> グローバルロールの割り当て
  • サイトコンテクスト: サイト管理 >> フロントページ >> フロントページロール
  • コースコンテクスト: コース管理ブロック内の「ロールの割り当て」リンク
  • モジュールコンテクスト: 活動編集ページのロールタブ
  • ブロックコンテクスト: Roles.gif - コースブロック内の「ロールの割り当て」アイコン (編集モード)
  • ユーザコンテクスト: ユーザプロフィールページのロールタブ

コンテクスト

特定のコンテクストの中でユーザにロールを割り当てることで、ユーザの現在のコンテクストおよびすべての低いコンテクストに対して、割り当てるロールに含まれたパーミッションを与えることができます。

コンテクストの階層的順序は下記のとおりです:

  • System (親なし)
  • Site (親= system)
  • Course category (親 = system)
  • Course (親= course category または system)
  • Module (親= コース)
  • Block (親= system または course)
  • User (親= system)

ロールが高いレベルに割り当てられた場合、継承が作動します。例えば、ユーザに特定カテゴリの教師ロールが割り当てられた場合、そのカテゴリ配下にあるすべてのコースでも教師ロールが割り当てられます。

正しいコンテクストでロールが割り当てられた場合のみ、ロールは正常に動作します。例えば、教師ロールはコースまたはコースカテゴリコンテクストで、特定フォーラムのフォーラムモデレータロールはモジュールコンテクストで割り当てられる必要があります。

システムコンテクストのロール割り当て例として監査ロールが、モジュールコンテクストの割り当て例としてフォーラムモデレータロールがあります。また、ユーザコンテクストのロール割り当て例として親ロールがあります。

グローバルロール

サイトコンテクスト (1.7) またはシステムコンテクスト (1.8) に割り当てられるロールは、グローバルロールと呼ばれ、フロントページを含むサイト全体に適用されます。例えば、教師のグローバルロールが割り当てられたユーザは、サイトのすべてのコースで教師ロールを持つことになります。

多くのサイトでは、管理者およびコース作成者のみ、グローバルロールとして割り当てられます。

The デモ教師ロールは、制限されたユーザに対するグローバルロールの例です。

ロールの割り当て

  1. Choose the type of role you wish to assign. For example, if we wanted to assign a Course Creator role to Ali, we'd choose "Course Creator" from the drop-down list. ("Course Creator" is one of the pre-defined role types that comes with Moodle - your installation may have a modified set of roles.)
  2. Once you have chosen a role, two lists appear: a list of users who currently have that role, and a list of users who don't. We can select Ali in the second list, and use the left-facing arrow button to add Ali's account to the list of Course Creators. Multiple users may be selected by holding down the Apple or Ctrl key whilst clicking on the users' names.
ファイル:Roles Assign Student.JPG
Assigning users the role of student i.e. enrolling them on the course

Hidden assignments

  • To hide which role a user is assigned to, click the Hidden assignments check box before assigning the role to the user.
  • This feature is useful for example if you don't want everyone with teacher rights listed in the course description.
  • Note: The role assignment is not hidden from admins or teachers i.e. users with the viewhiddenassigns capability.

関連情報