I have created a course and want to configure cohort sync for enroling learners of a particular cohort on that course automatically. I have set up the cohort and assigned users to it. In my admin settings (as an administrator) I have set the default role for cohort sync to be student. When I login as a trainer and go to course admin -> users ->enrolment methods I am able to select the cohort I created but the role menu is empty with no options and this is a required field so I am unable to proceed. I have installed moodle 2.2.3
any ideas what is wrong?