User Restore

Maintained by Sebsoft BV, Rogier van Dongen
The Sebsoft User Restore Plugin offers you the possibility to restore user accounts that were deleted from moodle.
Price option: Free

Supports Moodle 2.7-5.1 See all versions
Latest release: 8 months ago
Installations: 327
Downloads (last 90 days): 105

Frankenstyle name: tool_userrestore
Administration tools

Comments

Product ratings and reviews are coming to Moodle Marketplace. Until then, existing comments remain available to read, but new posts have been disabled.

Hi Jarrod,
This seems to be the query to detect who deleted the user. It might be wiser to disable that field if the tables are too big...
Did it work in the end?
After attempting to load the restore.php page in admin tools in Moodle 2.9.1, it's hung (even after 30 minutes of waiting).
Seems to be continually cycling through
SELECT CONCAT(firstname, ' ', lastname) AS deletedby, u.id AS deletedbyid, l.timecreated AS timedeletedby FROM mdl_logstore_standard_log l JOIN mdl_user u ON l.userid=u.id WHERE component = 'core' AND action= 'deleted' AND l.target = 'user' AND l.objectid = 'XXXX' ORDER BY l.timecreated DESC LIMIT 1
as well another query. There are almost 7000 users on the Moodle.
I just used this tool, and it seems to have performed flawlessly. Thank you!
Hello Santiago,
I'm unable to reproduce your issue on a clean Moodle2.9.1 environment running MySQL.
However I sent you a personal message on how to contact us with more information and possibly, screenshots.
Cheers!
Hello, thanks for the plugin
After installation the plugin hands and never loads the page, im using moodle 2.9 and a mysql database
New version includes fix as reported by David: upon restore, "suspended" state is always set to 0 so behavior is more as expected. As mentioned, this fix will now make sure the restored user receives any email sent (if applicable)
Hello David, thanks for noticing our bugtrackers still being private, I've made them public.
I will check into the unexpected behavior soon and update plugin accordingly to see the more expected behavior of undoing any suspension states when restoring the account so moodle will send the notification email accordingly. Thanks for clearance!
Cheers

Oh, only now I realized I am getting "Access denied" when trying to access your bugtracker at Bitbucket. Can you please check the permissions to make sure that the community is able to report issues for you there? Same applies to your User suspension tool, too.

What I was going to report was: When a user is deleted after being suspended for a while (as a result of the User suspension tool's action) and then is restored via this tool, it is restored in the suspended state. I don't think that is the expected behaviour. I guess the admin wants to see the account enabled after being restored. Also, Moodle does not send any messages to suspended accounts. So the restored user is not notified about his account being available again.

Thanks for sharing this plugin with the community and for your patience with the review and approval process. It looks good now to be approved. You are cleared to land, welcome to the Plugins directory. I am now going to remove the previous implementation of the plugin (block_userrestore).