How automatically unenroll a students after specific days?

Re: How automatically unenroll a students after specific days?

by Hiten Patel -
Number of replies: 1

Hello sir


Currently using moodle 3.6 version

I have setup manual enrollment method and set user enrollment for 1 days but after 1 days completed I saw that user still able to access course it is not working for me and also user not getting notification email is there any cron should missing if yes please let me know the name for this functionality.

for manual enrollment this below cron is running

Manual enrolment send expiry notifications task\enrol_manual\task\send_expiry_notificationsManual enrolmentsEdit task schedule: Manual enrolment send expiry notifications taskMonday, 21 January 2019, 4:40 PMMonday, 21 January 2019, 4:50 PM*/10****0Yes
Manual enrolment synchronise enrolments task\enrol_manual\task\sync_enrolmentsManual enrolmentsEdit task schedule: Manual enrolment synchronise enrolments taskMonday, 21 January 2019, 4:40 PMMonday, 21 January 2019, 4:50 PM*/10****0Yes


I have thousands of user who has a access of the course for example ABC and I want that user should not be access to that course after specified days from the enrollment time.

You can see screenshot what I have setup .

Attachment Enrolmnt Expiry.PNG
In reply to Hiten Patel

Re: How automatically unenroll a students after specific days?

by Colin Fraser -
Picture of Documentation writers Picture of Testers

Hi Hiten, sorry for the delay in responding, but I have not had much experience in using a cron in cpanel. The IT guys won't let me near their server environments, so I have always told them what I want and they set it up for me. There is an automated process to activate the different cron tasks at the required times, and I understand it is done via cPanel > Advanced > Cron Jobs. You can add a new task there and the cron should run using cPanel's APIs, but beyond that, I have no idea how that happens.  Sorry I cannot be of any further assistance.