General plugins (Local): makeanonymous

Maintained by Picture of Matthias Schwabe Matthias Schwabe
This plugin anonymizes data of deleted users, optionally with a delay time.
21 sites
1 fans

After deleting a user his data will become anonymous.
Firstname, surname, city, country and auth method of anonymized users can be set up.
Anonymized usernames will be a hash value of old username and deleting time with prefix 'deletedUser_'.

Anonymized e-mail addresses will be the new username with surfix '@delet.ed'.

You can also delay the anonymization by setting up a delay time.

Since version 0.4 you can also anonymize users which you have deleted in the past (before using the plugin).

Moodle 2.4, 2.5, 2.6, 2.7 or 2.8

The zip-archive includes the same directory hierarchy as moodle.
So you only have to copy the files to the correspondent place.
Copy the folder eledia_makeanonymous to moodle/local/eledia_makeanonymous.
The langfiles normaly can be left into the folder moodle/local/eledia_makeanonymous/lang.
All languages should be encoded with utf8.

After it you have to run the admin-page of moodle (http://your-moodle-site/admin)
in your browser. You have to loged in as admin before.
The installation process will be displayed on the screen.
That's all.

You can setup the plugin by going to
Site administration --> Plugins --> Local plugins --> makeanonymous.

Version control

0.5 (2014121200)
- the plugin now uses the new task and event apis

0.4 (2014082802)
- you can now anonymize users which you have deleted in the past (before using the plugin)

0.3 (2013082800)
- set timestamps to 0
- added anonymization of remaining database fields
- added option to edit auth method of anonymized users

0.2 (2013070202)
- added option to enable/disable the plugin

0.1 (2013032800)
- first release


Screenshot #0


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

Comments RSS

Show comments
  • MD shot of me from his iphone4
    Thu, 16 May 2013, 5:45 PM
    Matthias, thanks for this. it installs fine here smile
    This should actually be an admin tool. have you looked at how to create admin tools?
    Some docs would be useful here too.
  • MD shot of me from his iphone4
    Fri, 17 May 2013, 10:47 AM
    This works great!
    It would be nice to enable and disable this plugin too. (instead of uninstalling it)
  • Picture of Matthias Schwabe
    Tue, 2 Jul 2013, 8:10 PM
    I added this option to the new version, thanks for the advice!
  • Ralf Krause - Germany
    Mon, 12 Aug 2013, 12:39 AM
    Hi Matthias,

    this is a very useful tool but you could make it better!

    You must delete the content of really all user profile fields. If you do not then a user will not become anonymous. Your tool writes new anonymous names but all the profile fields (description, image_alt, icq, skype, aim, phone, idnumber, institution, department and address) will not be changed. Also you have to look for additional user fields in a Moodle side where an admin can write some code.

    What do you think about the time stamps ... the best thing would be to set the time stamps to 0.

  • Picture of Matthias Schwabe
    Wed, 28 Aug 2013, 5:58 PM
    Hi Ralf,

    thanks for your notes.
    The aim was to anonymize user details which are visible in Moodle.
    The plugin now anonymizes also the remaining database fields, the time stamps will be set to 0.

    Additional user fields will be deleted by Moodle already.
Please login to post comments