Description

With this tool you can assign/unassign several roles (of the same type) to one single user.
For example you can enrol one student in twelve courses.
Note that that is also a way to view all the different roles (of the same type) of one single user.

Elaine Blakeman
added a comment - 05/Nov/10 12:17 AM I would like an export feature too. We need one to export all role settings to excel to make pivot tables so that we can do diffs on the roles and see how they are similar and how they aren't.

Martin Dougiamas
added a comment - 04/Apr/11 5:49 PM I would love to see this as part of the user profile, some page showing an overview of all role assignments that user has on the site, and allowing an "admin" to delete/add these there.

Hello,
My name is Liam Cline, and I am somewhat interesting in resolving this as a 2011 GSoC project.
I'm fairly new to the dev side of moodle, although my school (University of Victoria) has been using it for some time.
As such, I'm a little confused as to how the roles and courses interact within the database. Are there different role tables set up within each course? Which is the parent, course or role?
It seems to me that this issue would be best implemented fully within SQL, if for no reason other than security.
I guess what I'm saying is that, if roles are indeed created within the scope of individual courses, adding, say, 12 courses would require 12 separate foreign keys, would it not? This might complicate any sort of tabular batch-assignment setup.

Liam Cline
added a comment - 09/Apr/11 4:01 AM Hello,
My name is Liam Cline, and I am somewhat interesting in resolving this as a 2011 GSoC project.
I'm fairly new to the dev side of moodle, although my school (University of Victoria) has been using it for some time.
As such, I'm a little confused as to how the roles and courses interact within the database. Are there different role tables set up within each course? Which is the parent, course or role?
It seems to me that this issue would be best implemented fully within SQL, if for no reason other than security.
I guess what I'm saying is that, if roles are indeed created within the scope of individual courses, adding, say, 12 courses would require 12 separate foreign keys, would it not? This might complicate any sort of tabular batch-assignment setup.

A good use case for this might be in the user context, where a personal tutor or learning support assistant wants to assign themselves to multiple learners across different courses. Currently this requires going into the profile of each learner individually and assigning roles from there which is counter-intuitive to the work-flow and may be difficult to navigate.

Liam, a course (mdl_course) relates to a context (mdl_context) and a role (mdl_role) is assigned (mdl_role_assignments) to this context. Other contexts include category (mdl_course_categories), user (mdl_user), activity module (mdl_course_modules) and system.

James Ballard
added a comment - 13/Apr/11 1:00 AM A good use case for this might be in the user context, where a personal tutor or learning support assistant wants to assign themselves to multiple learners across different courses. Currently this requires going into the profile of each learner individually and assigning roles from there which is counter-intuitive to the work-flow and may be difficult to navigate.
Liam, a course (mdl_course) relates to a context (mdl_context) and a role (mdl_role) is assigned (mdl_role_assignments) to this context. Other contexts include category (mdl_course_categories), user (mdl_user), activity module (mdl_course_modules) and system.