I am using enrolment keys for teachers and students, and want them to be made members of groups automatically.
- I used two enrolment key plug-ins, one with the role set for Teachers, the other for Students,
- I selected Use group enrolment keys in both plug-ins, and set the enrolment keys/passwords
- I created two groups, Teachers and Students, and set their enrolment keys to the same as in their plug-ins (1)
- I selected "Visible groups", "No" on Force group mode and "None" on Default grouping in Course settings (I guess those ones really don't matter anyway?)
When an un-enroled user logs in and goes to the course both the enrolment alternatives are shown as they should. If the user select to enrol as a teacher, and writes the enrolment key I set for the Teachers plug-in and the Teachers group, he gets enrolled in the course as a teacher, but does not get added to the Teachers group. Same thing if he enrols as at Student; he gets enrolled as a student but not added to the Students group.
What might it be tha I do wrong, anyone?
I use Moodle 2.2+ (Build: 20111209)