Moodle plugins directory: Autoenrol Parents | 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.
Latest release:
44 sites
17 downloads
23 fans
Current versions available: 2
Many parents, mentors or managers want to have easy access to the learner progress of their peers and relations. And we want to be able to easily give them this access. Based on a piece of information in a custom profile field in the learners profile, their parents, mentors or managers can easily be assigned automatically.
There is a basic configuration screen that let's you select the role to assign, and which information you want to compare against.
This plugin is a work in progress. Currently it is able to automatically assign a role to a user but not unassign this role.
This plug-in is not maintained and therefore does not support the latest Moodle versions.
There is a possibility to use cohorts for large scale mentor assignments since Moodle 3.8.
Useful links
Contributors
Virgil Ashruf (Lead maintainer)
Please login to view contributors details and/or to contact them
Thanks
Thank you for making this plugin available to the Moodle community. I really appreciate all your efforts in developing this plugin.
I just installed the plugin in Moodle 2.6. Haven't done much with it other than activating it however, when I login with debugging set to developer mode and debugging display turned on, I get the following notice message each time I login:
Notice: Undefined property: stdClass::$profile_field in /auth/enrolmentor/auth.php on line 199.
I've reported the issue on GitHub:
https://github.com/eSrem/moodle-auth_enrolmentor/issues/1
Please let me know if you have any questions and when a fix will be available for me to test.
Best regards,
Michael Milette
Thanks for this plugin. It looks promising, but I'm not sure where to go after installing it and adding the user profile field. What happens next?
The plug-in works autonomously once you've installed and configured the plugin/profile fields. When a user logs in, the plugin checks whether this user is a manager in someone else's profile. If so, the user is enrolled in that profile.
The plugin now also checks whether or not the user is no longer a parent of someone, in that case the plugin automatically unenrols the user.
Is this compatible with 2.7/2.8? Thanks!
I am facing an error with this plugin on 2.7.5. There are some user who are just not able to login to the site. They get invalid user error. If I disable your plugin they are able to, I have no clue why this is happening. Everything is ok for these users in their profiles, the database and even the profile fields are all normal. I am not a developer and I don't know what in your code is causing this.
William Michael, Director
Classical Liberal Arts Academy
Thank you for your interest! Sadly there is no functionality available yet in the plug-in that allows for two parents to be enrolled automatically. As only one unique identifier for an account is actively looked for. I am putting this on the feature request list on my GitHub!
We use Google OAuth 2.0 so that our students can login to Moodle with their Google Apps accounts. When I first installed the "AutoEnrol Parents" block, it seems that it worked. However, It now seems that the parents and students have been disconnected throughout our system. Fortunately, we're on summer break, so it's no major crisis.
Any idea why this would happen and what I should do?
Thank you,
William Michael
that's too bad. I am sure there are several institutions who might need this plugin. But nevertheless, I have looked into the documentation you have linked above and this will help us, too for the time being.
Here's what I've done:
We have a custom profile field, where we enter the name of a user's mentor. I'd have to select the mentees or children by filtering the users according to that field and put them in a cohort (https://docs.moodle.org/35/en/Cohorts#Adding_users_to_a_cohort_in_bulk). Then I can assign the mentor role on the user context level to all the users of my cohort (https://docs.moodle.org/35/en/Cohorts#Assigning_user-context_roles_to_all_cohort_members).
This still requires some manual work (create cohorts, assign the role, update if there are changes) but still, it will save us some of the work. So thank you
I still hope, that the plugin will be updated eventually.