ndunand / moodle-enrol_attributes

This plugin allows users to be enrolled according to any value stored in their user profile.
https://moodle.org/plugins/enrol_attributes
18 stars 22 forks source link

Modification to assign parent role of children based on values in profile fields #22

Open spinozarabel opened 6 years ago

spinozarabel commented 6 years ago

I am interested in a plugin (very similar to this one) except that enrollment is not in any course. A user's profile fields are examined. If a certain profile field is set to a value "Parent" then other profile fields are looked for to identify children of this parent. For these children under context user, the parent is assigned to these children (associative role assignment). This is possible to do manually but no automated bulk way such as CSV, etc., exists. If you can suggest modifications and the code locations, I would be happy to try it out.