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