Using roles

Roles and permissions


Below are just a few creative examples of uses of roles and permissions in various settings.


Contents


Give a student forum moderator rights

How: Assign the role of non-editing teacher in the module context, via the "Locally assigned roles" link in the forum administration section of the Administration block.


Enable a student to grade assignment submissions

How: Assign the role of non-editing teacher in the module context, via the "Locally assigned roles" link in the assignment administration section of the Administration block.


Give a student the rights to approve database module entries

How: Assign the role of non-editing teacher in the module context, via the "Locally assigned roles" link in the database administration section of the Administration block.


Allow a student to clean up saved chat sessions

How: Assign the role of non-editing teacher in the module context, via the "Locally assigned roles" link in the chat administration section of the Administration block.


Create an archive forum

How: Override the student role in the module context, via the "Permissions" link in the forum administration section of the Settings block and remove the capabilities to start discussions and reply to posts


Enable students to rate forum posts

How: Override the student role in the module context, via the "Permissions" link in the forum administration section of the Administration block, and allow the capability to rate forum posts.


Allow students to unenrol themselves from a course

How: Override the student role in the course context, via the "Permissions" link (Users > Permissions) in the Course administration area of the Administration block and allow the "Unenrol self from the course" capability.


Hide a block from guests

How: Override the guest role in the block context, via the "Permissions" link in the block header and prevent the capability to view blocks.


Give a student unlimited time to complete timed quizzes

How: Assign the role of quiz user with unlimited time in the course or module context (requires Quiz user with unlimited time role to be created by an administrator)


Enable a student to create questions

How: Assign the role of question creator in the course context, via the" Permissions" link in the course administration area of the Administration block (requires Question creator role to be created by an administrator).

Warning: Capabilities with XSS risks associated to them are allowed for the role of question creator. Thus, this role should be assigned with care.


Assign a student the role of calendar editor

How: Assign the role of calendar editor in the course context, via the "Permissions" link in the calendar administration area of the Administration block (requires Calendar editor role to be created by an administrator).


Provide temporary read-only access to a naughty student

How: Assign the role in the course or module context (requires "can not post data" role, with selected capabilities prohibited, to be created by an administrator)


Provide temporary access to a Guest Speaker in a completely online class

How: Create a non-editing teaching role blocking access to everything but post to forum.

Steps to prevent guests from seeing confidential student information:

  1. Assign a guest role without access to grades and assignments.
  2. Only grant access to the guest for the minimal amount of time they need to be in the class.


Allow an administrator and teacher to see participants, but not a student

How: In a course, click on "Users" and then the "Permissions" link in the course administration area of the Settings block. Scroll down to view participants and select the prevent or prohibit button next to "Student".


Add a grader to a course

How: Use Enrolled users (if you want to allow students to see the grader) or Other users (if not) to add your grader with the role of "Non-editing Teacher".


See also