Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By wexylwoxyl on
Like the title says I would like an easy way to remove access to accounts that have not logged into the drupal website in a set amount of time. Is there any module that does this itself, a way for the rules module to take care of this function, or any other advice for this kind of issue? Thank you.
Comments
=-=
I'd investigate the rules.module and views_bulk_operations.module
Something like
Something along the lines of:
1) Install rules and https://www.drupal.org/project/views_rules
2) Create a view similar to this which you can tweak slightly
3) Create a rule like this (Note This deletes User Entities so don't use on production site)
This will load the view loop through users and delete on cron event
That should get you most of the way there
Peter J Lord
http://peterjlord.co.uk