User Restore
- Moodle 1.9–5.1
- 更新 2025-12-09
The Sebsoft User Restore Plugin offers you the possibility to restore user accounts
that were deleted from moodle.
SEBSOFT USERRESTORE PLUGIN
The Sebsoft User Restore Plugin offers you the possibility to restore user accounts
that were deleted from moodle.
When the plugin has been installed, you can select a number of user accounts to restore and optionally
send an email informing them their accounts have been restored.
This plugin takes the following into account:
Users to be restored are checked on e-mail:
if an e-mail address already exists for an active account, this user will not be restored.
Users to be restored are checked on username:
if an username already exists for an active account, this user will not be restored.
Users to be restored are checked on MNET host:
if the MNET host of the account to be restored is not the locally configured one, this user will not be restored.
Version 4.0.0
Version 4 onwards brings a new strategy. Where version 3 used a cache which was extracted from the logstore,
version 4 uses it’s own table to store restorable user data. The main (and really, only) reason for this change
is that the logstore is incredibly slow on MariaDB/MySQL when the dataset is “large”.
Version 4 therefore hooks into the user_deleted events to store restorable data.
Version 4 also fetches it’s initial data from the logstore (using a background task).