A course we setup for some staff development was set to unenrol after 120 days inactivity (they were added using self enrolment). We only realised this was an issue, when staff development noticed that one export of activity completion was much smaller - because they'd been on the page months before that.
We changed the setting to stop future auto-unenrolments, but have been asked to try and roll back the unenrolments.
I checked the Logs report, and with some filtering got it to just list the users who had been unenrolled - so I can get a list. Is there a way of feeding that list into moodle to re-enrol them (whilst preserving their completion data from the course)?