Auto role assignment block
Z 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:
- Link to settings page
- Link to block help page
Settings page
The settings page contains:
- List of existing rules, each represented with:
- Link to corresponding rule's editing form
- Option to disable
- Option to mark the rule for removing
- Option to add new rule
- Option to delete rules marked for deletion
Rule settings
Rule settings consist of:
- Rule name
- Event, upon which the rule takes effect (note: this is not the “event” developers are familiar with, but the events, understandable by users)
- List of roles, to which this rule is applicable
- New role being set for user as a result of event
- Recurrence flag – set if default role is to be returned upon completion of activity (if possible).