Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Auto enrol mentors, parents or managers based on a custom profile field.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Type||Name||Latest commit message||Commit time|
|Failed to load latest commit information.|
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.