Moodle plugins directory: Merge user accounts | Moodle.org
Merge user accounts
Administration tool ::: tool_mergeusers
Maintained by Jordi Pujol-Ahulló, Nicolas Dunand
This administration tool will merge two Moodle user accounts into one.
Latest release:
2610 sites
3k downloads
89 fans
Current versions available: 6
The intent is to assign all activity & records from user A to user B. This will give the effect of user B seeming to have done everything both users have ever done in Moodle.
This tool replaces the old report_mergeusers, which is now obsolete.
Help us
We do not give support in the comments section below. For any issue on the plugin, please, refer to GitHub and:
- Check if a related issue is already created with the exact detail or similar to the failure you're facing. Add your own experience too. Or
- Build a new issue clicking on https://github.com/jpahullo/moodle-tool_mergeusers/issues/new and add the necessary detail to replay the failure or the trace to help you out, and/or
- Contribute to the plugin with a PR addressing the problem you're solving.
Help us manage this plugin in a more comfortable way in our spare time by using GitHub. Thanks in advance!
Useful links
Contributors
Jordi Pujol-Ahulló (Lead maintainer): author
Nicolas Dunand: author
Please login to view contributors details and/or to contact them
I suppose you are referring to handle database tables for custom or third party plugins on Moodle. If you already know how they work and the compound indexes exist they have, you just need to create a MERGEUSERS/config/config.local.php file (as README states) and specify your local configuration. Just it.
I hope I had answered your questions.
Saludos,
Jordi
We are proud to announce last updates on this Moodle tool for merging users. This tool is very helpful when several users may appear in your Moodle instance when referring to the same person. Why is it useful? This tool allows you to unify user data from Moodle to one of them, so that the person sees as all his/her activity had been done with the remaining user. Interesting, isn't it!
Last version recently published is 1.10, from July 2014, and includes all these major features:
1. Now, you can force that merging users will be only proceed if your database supports transactions. A plugin setting allows you to make it less restrictive and force merging users in any case.
2. Events are triggered when users are merged. This can be helpful to address specific actions from other Moodle plugins.
3. There are a list of database tables that are, by default, omitted and not processed by this tool. However, because of the community petition, you can force their process by this tool by selecting them in the plugin settings.
4. We present, thanks to John Hoopes contribution, a new user interface, which displays a wizard to search for users to merge and, finally, confirm the users to merge. Thanks John Hoopes!!!
5. Thanks to community, Tim Hunt and Luis de Vasconcelos [1], we have addressed correctly the merging of quiz attempts. After sharing opinions with the community, we have included 4 different options in the way quiz attempts can be merged. See README for more details.
Among others, this plugin considers other compound indexes not detected before, thanks to the community too!
From a developer viewpoint, this last version presents a lot of code refactoring, apart from all these features. In addition, this plugin is available in Catalan, Spanish, French and English.
All your comments, bug reporting, patch and code contribution, as well as feature proposals are welcome.
Thanks to all the people who contributed with comments, activity on github, forums and tool page on moodle.org. Special thanks to Luis de Vasconcelos and Tim Hunt to throw light on the correct way of merging quiz attempts.
Saludos,
Jordi
[1] https://moodle.org/mod/forum/discuss.php?d=258979
In your Moodle's main config.php file, you should set $CFG->dbtype = 'mysqli' (i.e., 'mysqli' instead of 'mysql').
I tried digging around to see if I could find an answer somewhere, but wasn't able to find anything that alleviated my concerns. I found this, but it didn't help: https://github.com/ndunand/moodle-tool_mergeusers/issues/51
When downloading the plugin, you should get a folder named "mergeusers". Simply upload this folder to your Moodle's /admin/tool directory, and then visit Moodle's notifications page to install.
Well done Jordi and Nicolas!
Thanks a lot!