Table des matières
User Delegation block - User management delegation: User guide
Rendering on the device
The user management interfaces (See my users)
The course viewing interface (See my courses)
Implementing the delegation
To delegate the right to create users to people who are not Moodle administrators, the following conditions must be met:
- Have a user administration delegation block on a screen accessible to the users who must be able to create. For example, it is a good idea to add such a block to the “My” page. In any case, without usage rights on this block, it will be completely hidden from the interface.
- Have in this context the capabilities needed for delegated creation or delegated import of users: Be designated with the courseowner role on a course, a course category or at system level.
The creation of a site-level specific role is implemented when using the block on the dashboard page or on a course. The role with the capabilities mentioned in the technical documentation is therefore to be assigned to the rightful users in the courses concerned.
Effect of the delegation
Through delegation, an authorised user will be able to create their users and a role exchange will be made between the delegate and their enrolled users. By default, the delegate will become “Teacher” of their enrolled users and the enrolled users will become “Students” of the delegate. This can be observed in the role assignments at the user profile level.
Manual creation of a user
People with sufficient rights can add a user through a simple or advanced form. Manual creation activates the effect of the delegation and does not enrol the new user anywhere. You must therefore then carry out the necessary enrolments.
if the user's profile already exists (created by another delegate) then the existing profile is unchanged and the new delegate is added to the list of teachers responsible for this student.
Mass import of users
People with the necessary rights can use a CSV file to import a set of people massively. The CSV file format is:
Mandatory fields
| Field | Format | Information |
|---|---|---|
| username | STRING(100) lowercase | Identifier. Must not already exist in Moodle |
| firstname | STRING(100) | First name |
| lastname | STRING(100) | Last name |
| Valid email |
Password
The password is not required unless you request password creation when submitting the file. If so, the enrolled users will receive their password directly by email (the only way for them to know it). The password length cannot exceed 32 characters.
Optional fields
| Field | Format | Information | Default |
|---|---|---|---|
| mnethostid | INT | Origin host (network operation) | mnet_localhost_id |
| country | CHAR{2} | Country | Platform default country code (uppercase) |
| city | STRING(20) | City | platform default city if defined, empty otherwise |
| institution | STRING(40) | Institution | empty |
| department | STRING(30) | Department | empty |
| lang | char{2} | Language code (lowercase) | Platform default language |
Enrolment during import: Block configuration
Click gear wheel/configure the block in edit mode
Allow enrolments by delegation: This checkbox, if enabled, in addition to being able to import users, lets delegates enrol them directly in the courses they manage “under delegation” and assign them to the group of their choice.
Customer case story
The request: A person in charge of delegation must not be able to modify a few identified courses where they manage the learners. They must however be able to assign users to existing groups or create one in the course concerned.
The solution: A non-editing teacher must be able to be designated as a delegate. A specific role overriding the non editingteacher role is implemented, coupled with the plugin's central setting to fit the use case. The plugin is modified to handle groups. The user delegation block is placed on the courses concerned.
Credits
- 2016 Valéry Frémaux (valery@activeprolearn.com) - Development - Group support - Interface modifications
- 2016 Florence Labord (florence@activeprolearn.com) - Tests and Documentation
Back to the component index- Back to plugins index - Back to catalogue

