Admin tools: User Suspension

Maintained by Picture of Sebsoft PluginsSebsoft Plugins, Picture of Rogier van DongenRogier van Dongen
The Sebsoft User Suspension Plugin offers you the possibility to automate the process of suspending users and/or removing user accounts (using moodle's default methods to delete users).
175 sites
23 fans
Current versions available: 4

The Sebsoft User Suspension Plugin offers you the possibility to automate the process of suspending users and/or removing user accounts (using moodle's default methods to delete users).

Suspending users is provided in three different ways:

  • Using a folder
  • Using a file upload
  • Manually through a status table

Deleting users is, if configured to be enabled, provided by comparing the date of suspending to the configured period before removal. Once the configured interval has past and the user is deemed suspended for the configured period, the useraccount will be removed using moodle's standard methods.

Furthermore, there's extensive settings that can be configured to turn every feature on or off, as well as disabling the whole tool's features.

This tool also provides a way of excluding users to be suspended or processed in case of automated processing. There are two methods provided at the moment: single user exclusion and cohort exclusion. During all three different ways of automated suspending / deleting users, only users that have NOT been configured to be excluded, either by cohort or by single user, will be processed.

Important note

Site administrators and the default guest account are completely left out of this tool. For safety measures, it is not recommended to put any form of automation on suspending or deleting administrator accounts or the default guest account, hence the decision to exclude them in any processing.


Screenshot #0
Screenshot #1
Screenshot #2
Screenshot #3
Screenshot #4
Screenshot #5
Screenshot #6
Screenshot #7
Screenshot #8


Picture of Sebsoft Plugins
Sebsoft Plugins (Lead maintainer)
Picture of Rogier van Dongen
Rogier van Dongen: Project leader
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of David Mudrák
    Mon, May 25, 2015, 5:13 PM

    I am getting "Access denied" when trying to access your bugtracker at Bitbucket. Please fix the permissions in your tracker.

  • Picture of David Mudrák
    Mon, May 25, 2015, 5:50 PM

    Thanks for sharing this plugin with the community and for the patience with the review and approval process. This tool looks good now. You are cleared to land, welcome to the Plugins directory!

    I am now going to delete the previous implementation of the tool (block_usersuspension) that was extensively reviewed by Dan Marsden.

  • Picture of Sebsoft Plugins
    Mon, May 25, 2015, 6:31 PM
    Hello David, thanks for noticing our bugtrackers still being private, I've made them public.
    Thanks for clearance!
  • Picture of Jonathan G
    Thu, May 4, 2017, 11:31 PM
    The icons do not load on v3.2
    Is this something you are still maintaining?
    Thank you.
  • Picture of Rogier van Dongen
    Fri, May 5, 2017, 8:54 PM
    Hallo Jonathan,

    COuld you point me in the direction which icons you mean? I validated/verified a fresh installation on a Moodle 3.2 environment and can tell you at least the icons on the main tabs are in fact loaded.
    If this isn't that case for you, could you try clearing the caches and verify all icon files are present? There should be 20 items in the /admin/tool/usersuspension/pix folder in total.
    I know this may be a long shot, but otherwise I can't find anything to reproduce your problem.
  • Picture of Rogier van Dongen
    Thu, May 11, 2017, 10:55 PM
    New version is here!

    No real changes, just a few modifications to comply to Moodle Coding Standards.
    Minimum required Moodle version: 3.0

  • Picture of Travis Mitchell
    Fri, Aug 11, 2017, 1:45 AM
    FYI - In settings.php on lines 36 & 38 pix_url needs to be changed to image_url. pix_url is deprecated and now uses image_url for images and pix_icon for icons.
  • Picture of Rogier van Dongen
    Mon, Nov 6, 2017, 8:18 PM
    New version!
    deprecated pix_url is now replaced by image_url()
    Minimum required Moodle version: 3.3

  • Picture of António Correia
    Sat, Sep 15, 2018, 12:10 AM
    I need to change the text of the suspended e-mail message. Is there any way to do this?
  • Picture of Greg Rudl
    Fri, Jan 10, 2020, 4:31 AM
    How do you change the email wording?
  • Logo Sebsoft
    Mon, Jan 13, 2020, 4:26 AM
    Hi António & Greg,
    To make changes to the mail the plugin sends out, please edit the language translation.
    When you open up your language pack, locate the file tool_usersuspention.php in the correct language. The relevant translations starts with 'email:user:'.

    Kind regards,
Please login to post comments