Hello, Is there a way to give permission to manually enroll students, but only be able to choose students from their cohort and not have sitewide access to all students? I'm using Moodle 3.6.
Hi, thought I'd try to answer this one for you while I'm patiently (not-so-patiently) waiting for some help with my posted issue....
You should be able to assign a group of students to a cohort based on a specific category. So you could limit the capability for adding manual enrolments within the category itself?
I have the students in a category cohort with a manager assigned to that category, but when I give the manager permission to Manual Enroll, the manager can (and does) enroll students from the entire site, not just their category cohort.
Change the permissions for that Manager role so that they cannot manually enrol users. Only allow them to add and remove cohorts (this capability is on by default).
Instead of "Manually enrolling" students or cohorts the Manager can choose to create a new enrolment method (Cohort sync) and will only be able to access those cohorts you have created in that category context.
Note: you must first activate the enrolment plugin for cohort sync.
BTW I'm basing this on what is available in moodle v.3.5
Yes, I know. I need the category managers to have the ability to manual enrol students into courses without having access to sitewide students.
Unless there is a plug-in, you will manually need to build what your organization needs. This is not uncommon. I do 400 clicks for one course revision, because I used Learning Plans and competencies. If I would have known at the time how time consuming this process was, I would have lobbied to change out internal business rules on course revision.
You already have your cohorts for the desired student population.
Add one cohort to a Group
Add the Group to a Course.
Add the Group to another Course.
See if that provides the access your Managers require.
Failing that ... this looks like an interesting hack that might work!?
I'm not sure how the functionality will act when it comes time to "manually enrol" users in these different hidden categories.
I haven't tried this myself but you can try playing around with the view participants capability as I think that is essentially what you are looking for? I'm not sure how that would work, if at all, at the category level.
Thanks for sharing this link.
I have also been looking into this matter, but the thread you are referring to works in case you make different categories for different cohorts.
I guess that if you have a small organization and client base, this may work for you.
However, if you're talking about thousands of clients, your Moodle may become too large to manage thousands of categories.
The only solution I have found so far, is that the administrator uploads the users through a CSV-file with the order:
username, password, firstname, lastname, email, role1, group1, cohort1 and then enrolls the cohort for the specific course.
Or: You change the CSV-file format to:
username, firstname, lastname, email, course1, group1, role1, enrolperiod1 (optional), enrolstatus1 (optional), course2, group2, enrolperiod2, enrolstatus2., etc.
You could either enrol the cohort to the course, in which you could leave the course1 en course2 columns out of the CSV-file. and use cohort sync at course level. But it seems to me that you save yourself a lot of work if you add these fields from the beginning and skip the cohorts.