Moodle plugins directory: Autoenrol Parents: Versions: 1.0 | Moodle.org
Autoenrol Parents
Authentication ::: auth_enrolmentor
Maintained by Virgil Ashruf
Auto assign parents, mentors or managers a role to users based on a custom profile field.
Autoenrol Parents 1.0
Moodle 2.5, 2.6, 2.7, 2.8, 2.9
Released: Tuesday, 13 October 2015, 3:46 PM
Within a big organisation we will work with managers who need an overview of learner progress. They will be assigned a parent role inside the user context. Sadly current mass role assignment plugins do not offer us the exact functionality we require to operationalise the intended business process.
Therefore I have stripped apart auth_mcae and enrol_mentor to form auth_enrolmentor. This plugin hooks into the user_authenticated event and then checks who the user is managing. The plugin then assigns the logged in user to his employees using the role as defined in the settings. Logic in the plugin is based on comparing a value of a custom profile field to either username, email or id. This is configurable inside the settings.
Installation:
- Unzip the plugin to yourmoodle/auth and follow installation instructions on ./admin/index.php
- If not already present, create a custom profile field that is going to contain either the username, email address or id of the parent/mentor/manager.
- Fill your profile fields using your preferred method. For instance: CSV.
- Enable the plugin. When users log in and they are a manager in someone's profile, they will be automatically enrolled.
Therefore I have stripped apart auth_mcae and enrol_mentor to form auth_enrolmentor. This plugin hooks into the user_authenticated event and then checks who the user is managing. The plugin then assigns the logged in user to his employees using the role as defined in the settings. Logic in the plugin is based on comparing a value of a custom profile field to either username, email or id. This is configurable inside the settings.
Installation:
- Unzip the plugin to yourmoodle/auth and follow installation instructions on ./admin/index.php
- If not already present, create a custom profile field that is going to contain either the username, email address or id of the parent/mentor/manager.
- Fill your profile fields using your preferred method. For instance: CSV.
- Enable the plugin. When users log in and they are a manager in someone's profile, they will be automatically enrolled.
Version information
- Version build number
- 2015101310
- Version release name
- 1.0
- Maturity
- Stable version
- MD5 Sum
- 9724cd9b295efdf9a9be78cad5ac98d9
- Supported software
- Moodle 2.5, Moodle 2.6, Moodle 2.7, Moodle 2.8, Moodle 2.9
- Latest release for Moodle 2.5
- Latest release for Moodle 2.6
- Latest release for Moodle 2.7
- Latest release for Moodle 2.8
- Latest release for Moodle 2.9
Version control information
- Version control system (VCS)
- GIT
- VCS repository URL
Default installation instructions for plugins of the type Authentication
- Make sure you have all the required versions.
- Download and unpack the module.
- Place the folder (eg "myauth") in the "auth" subdirectory.
- Visit http://yoursite.com/admin to finish the installation