Populating Moodle Groups
After a discussion on twitter this afternoon with @daibarnes and @moodlefairy abut how to best maintain enrolments in moodle – See ETRU Point 6 http://edtechroundup.wikispaces.com/07.06.09 for the original question…
Anyway this led me to thinking about the various options on how we could use groups to separate users within a single course. But as moodle currently has no option for sitewide groups (on the roadmap for 2.0) so groups must be manually created for each course which is a significant amount of work!! There are some options to create an populate a course for each class within your MIS, or hacks like the CLEO SIMS hack which enables you to use SIMS groups.
However outside of these there seemed to be no obvious solution. Then I rememebered that the bulk upload user system can be used to enrol students in groups and wondered if it could also be used to populate the grouping of students and it turns out you can!
If you create a csv file in the following format:
username, course1, group1, course2, group2, etc user1, TestCourse, GroupA, AnotherCourse, GroupB user2, TestCourse, GroupA, AnotherCourse, GroupC user3, TestCourse, GroupB, AnotherCourse, GroupA
etc...
Where user1 is the students username, TestCourse is the shortname for the course and groupA is whatever you want to call the course.
Then when you go to the bulk upload user tool, change the setting to ‘update user’ rather than ‘create new user’ and away you go!
You can use this method to either create new users and enrol, enrol users in a course and group, create a new groups and add new users, or just add already enrolled users in a pre-existing group. If a student is already in the group then it will just leave them there…
Note: This will not remove any enrolments or groups students are already in (even if they are already in a group on that course) so you may end up with students in multiple groups. As a result I would probably suggest you use this to do your initial enrolments at the start of the year, but then manually adjust during the year…
Anyone know a better way?