Admin tools: Inactive User Cleanup

tool_inactive_user_cleanup
Maintained by Picture of Arindam Ghosh Arindam Ghosh, Picture of DualCube Team DualCube Team
This plugin deletes inactive user accounts. This cleanup process runs with Moodle cron job.
100 sites
98 downloads
26 fans

In the first step admin user of the site setup days of inactivity and drafting notification mail for all users from the Site administration > Reports > Inactive User Cleanup

If an inactive user is found he/she gets a notification mail.

In second step if the user still has not accessed the moodle site within the time span which is mentioned in the notification mail. Then the deletion process starts. The particular inactive     user account entry is removed with next run of this cleanup process which is automatically or manually run by cron process.

Using

Some setting is require for this cleanup process.

Setting Panel

Days of Inactivity is set by the admin user.

Days Before Deletion is set with zero when admin just wants to notify the inactive user for access the site i.e. in first step. After that when user wants to run cleanup process then Days Before Deletion will set by the admin user.

Email setting

Admin user must set the subject and body text of the email.

Cron process

Admin user run cron job manually from http://<moodlename>/admin/cron.php

Uninstall

Admin can uninstall this admin tool from Site administration > Plugins > Admin tools > Manage Admin Tools


Contributors

Screenshots

Screenshot #0

Contributors

Picture of Arindam Ghosh
Arindam Ghosh (Lead maintainer)
Picture of DualCube Team
DualCube Team: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Priyasha Paul
    Sat, 26 Mar 2016, 5:58 PM
    Hola Newton ,

    Para evitar su confusión acerca de los usuarios , eliminando que nunca han iniciado sesión con independencia de días que han pasado desde su creación - en realidad nuestro plugin ha sido desarrollado para comprobar este mecanismo que después de registrarse Si un usuario que nunca han conectado entonces su / su último acceso haría ser cero , es decir la función por defecto de moodle . En caso de que un usuario no activa durante los siguientes 365 días posteriores a la firma a continuación, en los días 366o el trabajo de maíz comenzará a enviar una notificación a ese usuario inactivo durante los próximos 10 días y después de 10 días de que el usuario se eliminará de moodle por ser inactivo.

    Gracias , Priyasha .
  • Picture of Mile Medjedovic
    Wed, 6 Apr 2016, 10:46 AM
    Hi,

    I also installed this plugin and it immediately started sending out emails at a 15 minute interval.

    Deleted it 5 minutes later.
  • Picture of Priyasha Paul
    Wed, 6 Apr 2016, 8:42 PM
    Hello Mile,

    Kindly check your email, I have responded over mail. Please let me know if we can help you with anything else.

    Thanks & Regards,
    Priyasha.
  • Picture of Dillon Esterhuizen
    Thu, 26 May 2016, 6:02 PM
    Hello

    I installed your plugin but my site doesn't pick up your settings page so I can't edit the settings. It installed as any other plugin would install and the settings.php file, index.php, and all the other files etc is there in the plugin folder, but the Moodle site does not see it so I can't get to it. Any idea what could be causing this?
  • Picture of Dave Emsley
    Mon, 11 Jul 2016, 8:37 PM
    Does it have to install on the site home page? Ours is customised within the theme therefore I cannot install this block at all - or so it seems.
  • Picture of DualCube Team
    Tue, 12 Jul 2016, 5:25 PM
    Hi Dave,

    Thanks for reaching out! You need to unzip and then copy the "inactive_user_cleanup" folder to the path your_moodle_folder/admin/tool and then go to Site administration ► Notifications and install the plugin.

    Or you can install from the site map:- Site administration ► Plugins ► Install plugins

    Let me know if this helps.

    Thanks and Regards,
    Arindam
  • Picture of Ratko Bucic
    Sun, 4 Dec 2016, 6:29 PM
    Hi,
    I'm trying to make this plugin to work for a month already, and seems it not working ok...

    In cron log it report this:
    > Processing cron function for tool_inactive_user_cleanup...
    > ... started 15:05:16. Current memory use 13.1MB.
    > Hey, admin tool inactive user cleanup is running
    > done. (599 dbqueries, 0.53 seconds

    but it never delete any user.
    Moodle version used: Moodle 2.9.8+ (Build: 20160915)
  • Picture of Arindam Ghosh
    Mon, 20 Feb 2017, 6:24 PM
    Hi Ratko,

    Please download our latest version of this plugin and set up background server cron.
    Useful link :- https://docs.moodle.org/32/en/Cron

    Let me know if this helps!

    Thanks and Regards,
    Arindam
  • Picture of Yoel FV
    Mon, 9 Oct 2017, 9:28 PM
    Hi:

    Im having an issue with this plugin. When it runs in the cron job it reports a very large amount of "days before delete" for the inactive users and of course, it never deletes them. Why is that happening?
    This is a sample of the report I get:

    Processing cron function for tool_inactive_user_cleanup...
    ... started 08:30:49. Current memory use 32.9MB.
    Hey, admin tool inactive user cleanup is running
    days before delete864000
    days before delete864000
    days before delete864000
    days before delete864000
    days before delete864000
    done. (2166 dbqueries, 1.43 seconds)

    Thanks
    Yoel FV
  • Picture of DualCube Team
    Thu, 12 Oct 2017, 2:13 PM
    Please visit this link: https://moodle.org/plugins/pluginversions.php?plugin=tool_inactive_user_cleanup
    Download the latest version then go to "Your moodle directory"/admin/tool folder and your old "inactive_user_cleanup" folder; replace with the new one.
    Then clear all the caches.

    Let us know if your issue still exists!
  • Picture of Yoel FV
    Thu, 12 Oct 2017, 10:50 PM
    Thanks for your answer DualCube Team. I did what you suggested but the result is exactly the same. Any other ideas?
  • Picture of DualCube Team
    Fri, 8 Dec 2017, 2:30 PM
    Hi! Yoel,
    Please install the latest version of the plugin and clear the cache.
    Thank you.
  • Picture of Nermin Elkasovic
    Thu, 15 Mar 2018, 6:30 PM
    This has been reported a few times already. I am wondering why the plugin is still sending out emails immediately after installation without ability to control that? We have thousends of users and now we got a lot complaints. I deleted the plugin immediately too.
  • Picture of DualCube Team
    Fri, 16 Mar 2018, 9:04 PM
    Hi!! Nermin,
    Thanks for reaching out to us.
    We are sorry for the inconvenience that you experienced.
    This cleanup process runs with Moodle cron job. And the email sent to the Inactive user depends on of your time interval of cron job of your server.

    Please go to Site administration / ► Reports / ► Inactive User Cleanup / ►set the "Days Of Inactivity" and "Days Before Deletion" fields as per your requirement.

    For more details: https://github.com/dualcube/moodle-tool_inactive_user_cleanup/blob/master/Readme.txt

    Hope it helps!
    Thank you.
  • Picture of Olli Savolainen
    Thu, 6 Sep 2018, 11:01 PM
    It is quite easy to modify the source code such that this plugin does not send any emails but only deletes users after a period of inactivity. The relevant lines are in lib.php:52-60 and if you want to remove the email related form fields, they are in email_form.php:40-49.
1 2 3

Commenting temporarily disabled