Resetting a course for a single student

Resetting a course for a single student

by Paula Burns -
Number of replies: 3

Is there a way to remove activity completion data for a single student within a course, without jeopardizing other students' activity completion reports? We're talking SCORM packages and certificate generation. 

In essence, is it possible to reset the course for one student--so that the student can start "from scratch" in the course--no activity completion records and no grades?



Average of ratings: -
In reply to Paula Burns

Re: Resetting a course for a single student

by Leah Hemeon -
Picture of Testers

Simply put, we haven't found a way, no. You can remove a person's attempts on a SCORM package but you can't reset the entire course for that person as far as we can find. 

I'm happy to be proven wrong on this one because it's a feature we desperately need. Our example is, someone takes a corporate mandatory course (e.g. Respect in the Workplace). They complete it successfully. That same user is involved in an "incident" down the road. Part of the required actions this person needs to take is to re-take the course (in addition to other things). Unfortuately, we don't have a way for them to do this. We do it manually for the most part. So we have them go in and retake the course (new attempt) and then our admin manually records that they've redone it and reports back to HR... not an elegant solution at all!


Our other use case is annual certifications... we have a number of corporate courses that users need to take annually. We end up creating new Moodle courses each year so that all users can retake it. Again, cumbersome and not at all elegant.


Here's hoping we can find something better!

In reply to Leah Hemeon

Re: Resetting a course for a single student

by Dan Marsden -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators
you might be interested in seeing a plugin I've been working on:
https://moodle.org/plugins/local_recompletion


it doesn't currently provide a way to find a specific user and remove their completion records, but it does have some initial functionality to facilitate annual recompletions etc.

Average of ratings: Useful (1)
In reply to Paula Burns

Re: Resetting a course for a single student

by Melanie Scott -
Picture of Particularly helpful Moodlers

You can...but it isn't pretty.  Or very safe.  One wrong click...

If you have Adminer...and you have the student id and course id and maybe activity ID.  And you delete quiz, scorm, lesson, etc attempts.  You can go to the mdl_course_modules_completion and the mdl_course_completions and delete those completion entries within the database.  It is pretty detailed and complicated...and dangerous.  You can easily delete the wrong thing and mess stuff up. 

It can be done.  Doesn't mean it should be done.  If  you're just putting up a new version for re-completion, I'd make a copy, add the updates and enroll them in the new version--this keeps your data intact, if that's a concern.  I'm kind of fanatical about keeping records (we have a retention policy that requires at least 5 years records retention, so deleting data is generally a poor choice for us).

Average of ratings: Useful (1)