I created a role called AddUser with which a user can manually create a user on Moodle, then manually enroll that user on one specific course. This role must also allow for upload via CSV file. The user role must otherwise be similar to that of Student, with no other admin or editing permissions. I have:
Site Administration -> Users -> Permissions -> Define roles -> Add a new role:
Role archetype: Student
Context types where this role may be assigned: System, Course
Allow role assignments: student
Alloow role overrides: nothing selected
Allow role switches: nothing selected
Capability: The only Permissions set as "Allow" are:
Upload new users from filemoodle/site:uploadusers = allow
Create usersmoodle/user:create = allow
Manage user enrolments manuallyenrol/flatfile:manage = allow
(not sure what the implication here is)
Enrol usersenrol/manual:enrol = allow
Manage user enrolmentsenrol/manual:manage = allow
(again not sure what the implication here is)
Assign roles to usersmoodle/role:assign = allow
Then on the Allow roll assignments tab, this role can assign student.
Then on Site administration, Users, Permissions, Assign system roles, I have select somebody from the "Potential users" list on the right and added the name to the left panel.
When I log in as that user, the user can assign somebody to the course, but not first create the user on the system neither load users via a CSV file.
What am I missing? Any ideas would be welcome.