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

Demo teacher role

From MoodleDocs

Moodle1.9


The role of Demo teacher may be used to provide a demonstration teacher account with a password and profile which can't be changed.


Role set-up

  1. Access Administration > Users > Permissions > Define roles
  2. Click the button "Add a new role"
  3. Give the role a name (e.g. Restricted user), short name and description
  4. Change the capabilities moodle/user:changeownpassword and moodle/user:editownprofile to prevent. (Note that these capabilities are only available in Moodle 1.9 onwards.)
  5. Click the button "Add a new role"

Account and course set-up

  1. Create a demo teacher account via Administration > Users > Accounts > Add a new user
  2. Create a course for the demo teacher, perhaps a copy of the Moodle Features Demo course

Role assignment

The demo teacher account is assigned the role of Teacher in the course context and assigned the role of Restricted user in the system context as follows:

  1. Access the Assign roles page in the demo course via the Assign roles link in course administration block
  2. Choose the Teacher role to assign
  3. Select the demo teacher user in the potential users list, and use the left-facing arrow button to add it to the existing users list
  4. Access Administration > Users > Permissions > Assign system roles
  5. Choose the Restricted user role to assign
  6. Select the demo teacher user in the potential users list, and use the left-facing arrow button to add it to the existing users list

See also