Unenroll (rather than suspend) via flat file

Unenroll (rather than suspend) via flat file

by Charlie MacFadyen -
Number of replies: 2

Using Moodle 2.5  I need to unenroll students from a course that was enrolled via flat file.  I took the file that enrolled the students, changed "add" to "del" and re-ran.  What happens is that the students are suspended, but not completely unenrolled.  In Moodle 1.9, "del" unenrolled.  How is this done in 2.5?

Thanks in advance for any assistance!

Average of ratings: -
In reply to Charlie MacFadyen

Re: Unenroll (rather than suspend) via flat file

by Michael E -
Picture of Core developers Picture of Testers

Hi Charlie,

This is just a new setting which got introduced in 2.5.

You can change the default operation for a flatfile "del" in the flatfile settings (Site Administration -> Plugins -> Enrollments -> Flat file (CSV)). Change "External unenroll action" to "Unenroll user from course".

Hope that helps.