moodle-an-hochschulen / moodle-local_bulkenrol

Moodle plugin which provides the possibility to bulk enrol a list of users who are identified by their e-mail adresses into a course.
5 stars 17 forks source link

How to select the role during bulk enrollment ? #23

Open jasimp opened 3 years ago

jasimp commented 3 years ago

Hi How to select the role during bulk enrollment, i saw the option for grouping Is there any way top set the role similar to grouping?

Thanks

lucaboesch commented 3 years ago

I think it is declared in the docs that this tools does just work for the student role.

abias commented 3 years ago

Hi @jasimp ,

Luca is mostly right. This plugin is limited to enrolling users with one predefined role which is configured by the admin on /admin/settings.php?section=local_bulkenrol. This is the student role by default, but as admin, you can switch it to whatever role your users should normally get in courses.

It would not be impossible to extend the plugin to support more than this single role. However, I would not recommend to extend the existing syntax and support multiple roles within one single step as this might make the usage more complicated. Instead, I would prefer to add an option to the enrolment screen where the teacher simply could choose which role to use for the enrolment.

Having said that, this feature was never needed at our institution and thus there is no plan to implement it.

I will leave this issue open in case anyone steps up and wants to contribute a pull request.

Cheers, Alex