Skip to content

Auto enrol mentors, parents or managers based on a custom profile field.

Notifications You must be signed in to change notification settings

moonami/moodle-auth_enrolmentor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Auto enrol mentors, parents or managers based on a custom profile field.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%