Keyholder role: Difference between revisions

From MoodleDocs
(adding info)
mNo edit summary
Line 6: Line 6:
*As an administrator, go to ''Site administration>Users>Permissions>Define roles'' and  click the 'Add a new role' button at the bottom of the screen.
*As an administrator, go to ''Site administration>Users>Permissions>Define roles'' and  click the 'Add a new role' button at the bottom of the screen.
*On the next screen, select 'No role' for 'Use role or archetype' and click to continue.
*On the next screen, select 'No role' for 'Use role or archetype' and click to continue.
*Give the role a name, and if desired a description, and tick the "System" context if you want your keyholder to be able to mange keys sitewide, or the "Category" context if you want them only to manage keys in a category.
*Give the role a name, and if desired a description, and tick the "Course" context if you want your keyholder to be able to mange keys in a course, or the "Category" context if you want them only to manage keys in a category.
*In the filter, type 'enrol/self:holdkey' to display this capabilityand set it to 'Allow':
*In the filter, type 'enrol/self:holdkey' to display this capabilityand set it to 'Allow':


Line 14: Line 14:


==Assigning a user the role of Keyholder==
==Assigning a user the role of Keyholder==
;To assign the role sitewide:
;To assign the role in a course
 
#In the course(s) where you need the keyholder, enrol the relevant user from Course administration>Users>Enrolled users.
#As an administrator, go to ''Site administration > Users > Permissions > Assign system roles''.
#You should now see your newly created role here
#Assign the role to the required users.
#In the course(s) where you need the keyholder,enrol the relevant user from Course administration>Users>Enrolled users.


;To assign the role in a category:
;To assign the role in a category:

Revision as of 11:21, 22 April 2015


New feature
in Moodle 4.1!


The Keyholder role may be given to an organisation member so that they may provide the course enrolment key to students when required. The keyholder does not have to be the course teacher.

Creating the Keyholder role

  • As an administrator, go to Site administration>Users>Permissions>Define roles and click the 'Add a new role' button at the bottom of the screen.
  • On the next screen, select 'No role' for 'Use role or archetype' and click to continue.
  • Give the role a name, and if desired a description, and tick the "Course" context if you want your keyholder to be able to mange keys in a course, or the "Category" context if you want them only to manage keys in a category.
  • In the filter, type 'enrol/self:holdkey' to display this capabilityand set it to 'Allow':

enrolselfholdkey.png

  • Click 'Create this role'

Assigning a user the role of Keyholder

To assign the role in a course
  1. In the course(s) where you need the keyholder, enrol the relevant user from Course administration>Users>Enrolled users.
To assign the role in a category
  1. As an administrator, go to the category index page where you wish to assign this role - for example YOURMOODLESITE/course/index.php?categoryid=1
  2. In the Category administration block click Assign roles and assign the required users.

Making the keyholder appear on the enrolment page

  1. Go to Site administration>Appearance>Courses and tick the Keyholder role in 'Course contacts'

The keyholder will appear now along with any teachers when the student tries to self enrol, and their name will be linked so students may contact them if they need the key: keyholder1.png

Whether or not the keyholder has been added as a course contact, their name will also appear as the person from whom the student should have received the key: keyholder2.png