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:
40 sites
8 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.

Screenshots

Screenshot #0

Contributors

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

Comments RSS

顯示評論
  • Juan Francisco Romero
    2014年02月1日(週六) 07:57
    Virgil, please help me, how to make to operate this plugin, because I installed it, but I don´t understand how should function.
    Thanks
  • Michael Milette
    2014年02月11日(週二) 23:02
    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
  • Heather Edick
    2014年02月15日(週六) 18:35
    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?
  • Virgil Ashruf
    2014年02月18日(週二) 00:19
    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.
  • Lael ...
    2014年11月13日(週四) 08:45
    Looks promising.
    Is this compatible with 2.7/2.8? Thanks!
  • Virgil Ashruf
    2014年11月13日(週四) 16:47
    Hi Lael, yes. This should be compatible with 2.7 and 2.8. As it does not contain any code that is affected by any changes. Please let me know if you find out otherwise.
  • Mukarram Syed
    2015年02月27日(週五) 00:07
    Hi Virgil,

    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
    2015年06月18日(週四) 14:35
    Works perfectly, thanks! Is there any way to all TWO parents to be enrolled?

    William Michael, Director
    Classical Liberal Arts Academy
  • Virgil Ashruf
    2015年06月23日(週二) 17:56
    Hello William,

    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!
  • William Michael
    2015年06月24日(週三) 11:00
    Problem has arisen...please help me understand this.

    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

  • Virgil Ashruf
    2015年10月13日(週二) 15:25
    Hello William, the only reason I can imagine that users are disconnected would be that the profile field containing the connecting info was somehow altered. The plug-in checks the current enrolled children, and the children in which the parent should be enrolled. Then compares these lists. Only when the parent is enrolled in more children than he/she is supposed to, will the plugin unenrol. For instance when there are no matches.
  • Natalie .
    2019年07月30日(週二) 21:29
    Hi, is there a new version of this plugin for moodle 3.5 and higher?
  • Virgil Ashruf
    2019年07月31日(週三) 17:36
    Hi Natalie, this version is not yet supported for Moodle 3.5. I haven't yet planned any time to update the plug-in. Can I advise you to look into adapting https://docs.moodle.org/35/en/Cohorts#Assigning_user-context_roles_to_all_cohort_members?
  • Natalie .
    2019年09月10日(週二) 22:08
    Hi Virgil,

    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.
  • AHS TT
    2020年03月2日(週一) 18:22
    I am also finding some way to add student,parent relation in bulk than adding seperately in parent role for each student. if there is any way to do bulk linking of student and mentee please let me know
1 2
Please login to post comments