Note: You are currently viewing documentation for Moodle 1.9. Up-to-date documentation for the latest stable version is available here: Auto role assignment block.

Auto role assignment block

From MoodleDocs

Automation of role assignment process will enable permission managing for momentary cases and on “by user” basis. The main idea is to enable the system to reassign roles of participants based on actions they undertake. For example: the student passing the test is denied any communication options, but retains them upon completion. This approach would require significant effort from administrator with current manual-only role and permission management system.

User interface

Block appearance

The block contains two links:

  1. Link to settings page
  2. Link to block help page

Settings page

The settings page contains:

  1. List of existing rules, each represented with:
    1. Link to corresponding rule's editing form
    2. Option to disable
    3. Option to mark the rule for removing
  2. Option to add new rule
  3. Option to delete rules marked for deletion

Rule settings

Rule settings consist of:

  1. Rule name
  2. Event, upon which the rule takes effect (note: this is not the “event” developers are familiar with, but the events, understandable by users)
  3. List of roles, to which this rule is applicable
  4. New role being set for user as a result of event
  5. Recurrence flag – set if default role is to be returned upon completion of activity (if possible).