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

Unenrolment: Difference between revisions

From MoodleDocs
No edit summary
 
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
To unenrol from a course, a student needs to:
Unenrolment is the process of not allowing a student to return to a course. Usually this process does not purge student information, just access.  
# Go to the course.
# In the Administration block, click on the “Unenrol me from …” link (if visible) to unenrol from the current course.


However, by default, this link is visible only to those whose roles are "teacher" or above. There is a good reason for this: Normally, to unenrol, a student is supposed to talk to a teacher or administrator.
==Site and course settings for unenrolment==


If this student self-unenrolment feature is needed, the administrator needs to:
Unenrolment can be controlled by the following:
# Go to ► Administration ► Users ► Permissions ► Define roles.
* The ''longtimenosee'' [[Variables|variable]] in ''[[Administration block|Administration]] > Server > Cleanup''  specifies the time limit a user (teacher or student) will be unenrolled from a course if they have not logged into the course.
# Edit Student permissions.
* The ''Enrolment duration'' in the [[Course_settings|course settings]], which unenrols students after the specified time has elapsed.
# Set Unassign own roles moodle/role:unassignself to "Allow".
* An [[Enrolment plugins]] may decide that the enrolment has expired. For example, a user name  for a course is not present in an [[LDAP enrolment|LDAP]] database, or if a [[Flat file]] is processed by Cron.
* The capability [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]], which allows a user to unassign themself from a role in the given context (see below).


NOTE: The administrator can do this for the whole site or just for particular courses by using the roles links in each context. For example, in a course, by clicking on the Override Roles tab and changing the respective settings.
==Student unenrolment==
 
By default, students are unable to unenrol themselves from courses.
 
To enable students to unenrol themselves from any course on the site that they are enrolled on:
#Access ''Administration > Users > Permissions > Define roles''.
#Click the edit icon opposite the student role.
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from not set to allow.
#Click the "Save changes" button at the bottom of the page.
 
To enable students to unenrol themselves from a particular course:[[Image:Course admin block showing unenrol link.png|frame|Course administration block for a student, showing unenrol link]]
#Follow the Assign roles link in the course administration block.
#Follow the "Override roles" link. (In Moodle 1.9 onwards, click the "Override permissions" tab.)
#Select the Student role.
#Set the capability [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] to allow.
#Click the "Save changes" button at the bottom of the page.
 
Note: By default, only administrators are able to override permissions. Instructions on enabling teachers to override permissions can be found in [[Override permissions]].
 
The role change will take effect immediately in Moodle 1.9, or when students next login in Moodle 1.7 and 1.8. Students will have an "Unenrol me from the course" link in the course administration block and an "Unenrol me from the course" button on their profile page.
 
==Teacher unenrolment==
 
By default, teachers may unenrol themselves from courses in which they are assigned the role of teacher.
 
To prevent teachers from unenrolling themselves by mistake:
 
#Access ''Administration > Users > Permissions > Define roles''.
#Click the edit icon opposite the teacher role.
#Change the [[Capabilities/moodle/role:unassignself|moodle/role:unassignself]] capability from allow to not set.
#Click the "Save changes" button at the bottom of the page.


==See also==
==See also==
[[Category:Student]]
 
*[[Enrolment plugins]]
*[[Enrolment FAQ]]
 
[[Category:Enrolment]]
 
[[eu:Desmatrikulatzea]]
[[fr:Désinscription]]

Latest revision as of 13:33, 25 January 2010

Unenrolment is the process of not allowing a student to return to a course. Usually this process does not purge student information, just access.

Site and course settings for unenrolment

Unenrolment can be controlled by the following:

  • The longtimenosee variable in Administration > Server > Cleanup specifies the time limit a user (teacher or student) will be unenrolled from a course if they have not logged into the course.
  • The Enrolment duration in the course settings, which unenrols students after the specified time has elapsed.
  • An Enrolment plugins may decide that the enrolment has expired. For example, a user name for a course is not present in an LDAP database, or if a Flat file is processed by Cron.
  • The capability moodle/role:unassignself, which allows a user to unassign themself from a role in the given context (see below).

Student unenrolment

By default, students are unable to unenrol themselves from courses.

To enable students to unenrol themselves from any course on the site that they are enrolled on:

  1. Access Administration > Users > Permissions > Define roles.
  2. Click the edit icon opposite the student role.
  3. Change the moodle/role:unassignself capability from not set to allow.
  4. Click the "Save changes" button at the bottom of the page.

To enable students to unenrol themselves from a particular course:

Course administration block for a student, showing unenrol link
  1. Follow the Assign roles link in the course administration block.
  2. Follow the "Override roles" link. (In Moodle 1.9 onwards, click the "Override permissions" tab.)
  3. Select the Student role.
  4. Set the capability moodle/role:unassignself to allow.
  5. Click the "Save changes" button at the bottom of the page.

Note: By default, only administrators are able to override permissions. Instructions on enabling teachers to override permissions can be found in Override permissions.

The role change will take effect immediately in Moodle 1.9, or when students next login in Moodle 1.7 and 1.8. Students will have an "Unenrol me from the course" link in the course administration block and an "Unenrol me from the course" button on their profile page.

Teacher unenrolment

By default, teachers may unenrol themselves from courses in which they are assigned the role of teacher.

To prevent teachers from unenrolling themselves by mistake:

  1. Access Administration > Users > Permissions > Define roles.
  2. Click the edit icon opposite the teacher role.
  3. Change the moodle/role:unassignself capability from allow to not set.
  4. Click the "Save changes" button at the bottom of the page.

See also