Unenroll a user after completion criteria is met

Unenroll a user after completion criteria is met

by Richard Bergemann -
Number of replies: 2

Hello,

I am trying to have my courses set up in such a way that once a user has completed all required activities, a set of events trigger:

1. The user is given all competencies linked to the course

2. The user is marked as completed

3. The user is unenrolled from the course


I have the first two events working perfectly but I am unable to find any way to do the third.

The un-enrollment is meant to allow for a less cluttered view for course managers when they are looking at their enrolled students, as well as to unclutter the student's home page, only showing courses they still need to do.  Is there any way to do this either through core moodle functionality or a plugin?


I am using Moodle version 3.7

Average of ratings: -
In reply to Richard Bergemann

Re: Unenroll a user after completion criteria is met

by Shirley Gregorczyk -
Picture of Particularly helpful Moodlers
if the Student's "Home" (Dashboard) view is the Course Overview page using the Courses tab will only show their In Progress (not complete) courses. Completed courses "move: to the Past tab.
In reply to Shirley Gregorczyk

Re: Unenroll a user after completion criteria is met

by Richard Bergemann -
I saw that as a possible fix, but I cannot make the in progress tab default. Is there a way to do that?