Cohort Sync in Moodle 2.9 and loss of user grades

Re: Cohort Sync in Moodle 2.9 and loss of user grades

by Melanie Scott -
Number of replies: 2
Picture of Particularly helpful Moodlers

My experience with groups is this...if you have someone in a group and you unenroll them, regardless of method, they are removed from the group and the grades disappear.  If you re-enroll them and convince it to restore grades, the group is not reinstated.

In reply to Melanie Scott

Re: Cohort Sync in Moodle 2.9 and loss of user grades

by s w -

I saw in cohort documentation that students could be assigned to cohorts through user upload process https://docs.moodle.org/29/en/Upload_users and this works great. What we need to do in our organization is programmatically remove user from one cohort and add to another cohort.

For example our cohorts are defined for departments and  if an user changes departments - move from HR department to Accounting department , he will need to be added to all the courses where he was enrolled through cohort sync with HR cohort (to still have his grades available for reporting etc, ) and then need to be added to accounting cohort. Is there an utility to do this or would this be achieved only through sql table inserts/updates.


Thanks