Enrolment: Course completed enrolment

Maintained by RenaatRenaat Debleu
Enrol users upon completion of a course.
1066 sites
63 fans
Current versions available: 5

With this plugin it is possible to create a chain of courses. After completion of a course, the student is automatically enrolled in one or more other courses. But it is also possible to give a user another role in the same course when he/she completes the course.


As a teacher go to the course in which students will be enrolled in the future.  Navigate to Course Administration > Users > Enrollment Methods and add the Course Completed Enrollment method. Fill in the role - duration - start date - end date, and search for the course that needs to be completed.  Save your changes and do an extra check if course completion is enabled and working in the required course.

Course completion is something else than doing all activities, read the docs on https://docs.moodle.org/38/en/Using_Course_completion first!

Sample use

  • If you want to enroll users in course2 after they complete course1, you have to add the enrolment method to course2 and choose course1 as the course parameter.
  • If you want to enroll users in course2 and course3 after they complete course1, you have to add the enrolment method to course2 and course3, with course1 as the course parameter.
  • If you want to enroll users in course3 after they complete course1 OR course2,  you have to add 2 instances to course3, one with course1 as requirement, one with course2 as requirement.
  • If you want to enroll users in course 3 after they complete course1 AND course2,  you can add the enrolment method to course3 and choose course2 as the course parameter. Add in course2 the completion of course1 (course completion - Condition: Completion of other courses) as a course completion requirement.
  • If you want to give a user a new role in a course1, add the enrolment method to course1, choose course1 as the course parameter and pick the new role for the participant.


  •  When a user is part of a group in the first course, the user can also be part of the group with the same name in the second course.


  • copy the content of the package into the enrol/coursecompleted directory under the root of Moodle.
  • log in as administrator and complete the installation
  • enable the plugin under Settings, Site administration, Plugins, Enrolments
  • configure the default settings for this enrolment method when it is added to a course

Read the Plugin installation guide for complete steps about installing a new plugin in Moodle.

travis Coverage Status


Screenshot #0
Screenshot #1
Screenshot #2


Renaat Debleu (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Renaat
    Thu, Apr 9, 2020, 3:54 PM
    Course completion info can be viewed by managers, teachers and non-editing teachers (and any other users with the capability report/completion:view) in Administration> Course administration > Course completion or via a link in the Course completion status block.
  • Picture of Marco Gregorin
    Thu, Apr 9, 2020, 6:45 PM
    Hi Renaat,
    I don't see a page containing a Course completion report and I can't find the Course completion form.
    in the other post I sent you the screenshot of course A below you will find links for course B
    I realized that I can no longer delete the "Condition: Completion of other courses" field, I can only replace it with another course.
  • Renaat
    Thu, Apr 9, 2020, 7:01 PM
    Hi Marco,

    Sorry, but I do not provide personal help to users who do not even read the Moodle help links. Your problem is not that my plugin is not working, but that you cannot configure course completion. Read the docs or hire a Moodle specialist to do this job for you.

  • Picture of Marco Gregorin
    Fri, Apr 10, 2020, 3:35 AM
    thanks for your answers, I solved the problem I did not understand how the Course completion settings work.
    Hi Renaat,
    In the first course (course A) I had not set the Course completion because I thought it was sufficient to set Administrator -> Quiz administration -> Edit Settings -> Activity completion
    I was wrong
    Thanks again, Great plugin
  • Picture of Marco Gregorin
    Fri, Apr 10, 2020, 3:57 AM
    However, I want to report that my version 3.8 of moodle has the same problem as the previous versions reported here https://tracker.moodle.org/browse/MDL-60480
    This is probably not a plugin problem, but I wanted to report it
  • Renaat
    Fri, Apr 10, 2020, 4:36 PM
    Hello Marco,

    glad to hear you solved the problem.

    MDL-60480 and MDL-64151 were fixed, so this problem should not occur. Read https://moodle.org/mod/forum/discuss.php?d=364021 to find a possible way to unselect your course.

  • Picture of Ezra Zhiri Kolo
    Tue, Apr 14, 2020, 5:58 PM
    Hi all, I will like for automatically enrolled users to get a welcome to course enrollment email as we have in self-registration method. Is this possible using this plugin?
  • Renaat
    Wed, Apr 15, 2020, 2:21 AM
    Hello Ezra,

    file a request in the bug tracker, collect some votes and/or create a pull request with your changes. Personally I do not see a huge benefit with another plugin sending messages nobody reads. Especially because the course completion and this enrolment almost always happen when the student is logged in, and busy on the platform... So instead of an email, I search more in the direction of a screen notification.

    But proof me wrong.

  • Picture of Nancy Cotton
    Tue, May 5, 2020, 1:39 AM
    Using this plugin and could use some help. Plugin installed by my Moodle Partner and all settings are done and complete. My issue is that when user completes a course, I have to confirm the user before they are enrolled into the next course and I was under impression the enrollment would occur automatically. Is there a setting that would not require me to have to confirm the enrollment because will not be watching when each user completes the course?
  • Renaat
    Tue, May 5, 2020, 4:50 AM
    Hi Nancy,

    Can you share with me the course completion report to prove that the student completed the course? One only has to confirm if you opt for confirmation by manager and/or teacher in the course completion configuration. Otherwist, the enrolment happens 100% automatic.

    Read the docs on https://docs.moodle.org/38/en/Using_Course_completion first!


  • Picture of wat een kutsite
    Mon, Jun 15, 2020, 5:41 PM
    Hi Renaat,

    We use your plugin for our courses, but the latest version has a strange issue.
    When the option Display learning path (enrol_coursecompleted | svglearnpath) is checked, a user that is not enrolled in the course and will only get a white screen.
    Fix: As soon as we disable the "Display learning path" option from your plugins settings it instantly starts working .
    This only happens when the course has an instance of this plugin.
    Other courses without such an instance just display "You cannot Enrol yourself".

    Moodle version 3.8.3+
    PHP 7.3
    Apache 2.4.6

    Kind Regards,
  • Picture of wat een kutsite
    Tue, Jun 16, 2020, 4:12 PM
    Hi Renaat,

    You have nailed it. Respect and an A+ for speed.

  • Picture of Craig Theunissen
    Mon, Oct 5, 2020, 5:42 PM
    Hi Renaat

    Can this plugin be used in conjunction with enrolment keys?
    i.e. for a course X with an enrolment key requirement, also require course Y completion as additional requirement?

  • Renaat
    Mon, Oct 5, 2020, 8:57 PM
    Hi Craig,

    in the world of enrolments there is no such thing as a AND condition, it is always OR: if you have a ticket you get in, there is never someone who checks if you have 2 or more tickets at the door. A student can access a course: because he/she completed another course OR he/she received an enrolment key OR he/she paid OR he/she was manually enrolled OR ....

    Why not create a resource that shows the enrolment key of the next course under certain conditions (completed the course AND grade > 80 AND part of group C )?

  • Picture of Craig Theunissen
    Tue, Oct 6, 2020, 2:45 PM
    Hi Renaat

    Thanks for the suggestion, will take a look at that.

1 2 3 4 5
Please login to post comments