Select Moodle version:

Authentication: Autoenrol Parents

auth_enrolmentor
Auto assign parents, mentors or managers a role to users based on a custom profile field.
Maintained by: Picture of Virgil Ashruf Virgil Ashruf
for Moodle
2.4, 2.5, 2.6

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.

Contributors

Picture of Virgil Ashruf
Virgil Ashruf (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Capt. Moodle
    Tue, Sep 10, 2013, 8:54 AM
    Virgil - Many thanks for sharing this plugin with the Moodle Community. I like to encourage folks to provide the source, tracker, and documentation URLs so that folks can better collaborate with you in maintaining the plugin. The plugin seems to install fine and the code looks pretty straighforward. If you could provide the requested URLs and perhaps a screenshot then I think we can get this approved. Let me know if you have any questions. Peace - Anthony
  • MD shot of me from his iphone4
    Tue, Sep 10, 2013, 2:38 PM
    Thanks for sharing this, it looks good to me. Do consider adding your code source host (eg: github) via 'Edit this Plugin' under Administration block.
  • Capt. Moodle
    Wed, Sep 11, 2013, 1:06 AM
    Virgil - I am going to go ahead and approve this. If you are using Github.com keep in mind that the recommended name of the repository would be moodle-auth_enrolmentor. You can also use the Github issue system for tracking issues and Moodle Docs for documentation. If you have no already done so, it can be helpful to browse http://docs.moodle.org/en/Development:Guidelines_for_contributed_code for some hopefully helpful hints. Please do not hesitate to let me know if there is anything I can do to be supportive of your efforts. Peace - Anthony
  • Picture of Virgil Ashruf
    Wed, Sep 11, 2013, 2:19 PM
    Thank you Anthony and Aparup. I have added the source host and have yet to decide on a location for a discussion. It feels kind of awkward to just open up a topic on the forum, or an issue in CONTRIB, and say "Let's discuss it here"
  • Picture of Juan Francisco Romero
    Sat, Feb 1, 2014, 7:57 AM
    Virgil, please help me, how to make to operate this plugin, because I installed it, but I don´t understand how should function.
    Thanks
  • Picture of Michael Milette
    Tue, Feb 11, 2014, 11:02 PM
    Hi Virgil,

    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
  • Picture of Heather Edick
    Sat, Feb 15, 2014, 6:35 PM
    Virgil,
    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?
  • Picture of Virgil Ashruf
    Tue, Feb 18, 2014, 12:19 AM
    Hello Heather,
    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.
Please login to post comments