Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). UI Patterns (SDC in Drupal UI) 2.0.18 Minor update available for module ui_patterns (2.0.18). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

User Expire

2,577 sites Security covered
View on drupal.org

This module allows administrators to set expiration dates for individual user accounts or disable accounts of a specific role after a period of inactivity. It helps manage user access for temporary staff, testing, and compliance requirements.

This module allows an administrator to define a date on which to expire a specific user account or to define a period at a role level where inactive accounts will be locked.

You need this module if:

  • A user (such as contractors or short-term employee) are only active for a set period of time until their Drupal account should be disabled
  • You want to lock accounts if a user is inactive for a period of days, (e.g., 90 days for PCI Compliance)
  • You want to give someone access to a site for a brief period to test it out and then revoke their access after a specific number of days
  • This module is helpful to achieve compliance with PCI DSS requirement 8.1.4: Remove/disable inactive user accounts within 90 days

This module currently has automated tests for all of the key features. The code meets the Drupal coding standards. There is a stable release, so you can be confident that any security issues will be handled by the security advisory process.

Follow Drupal Documentation for unblocking a user manually.

Drupal 11 Users

Drupal 11 users who had previously updated to 8.x-1.2 should update to a 2.1.x version for full compatibility.

Upgrade guides

Similar modules

  • Role expire - for expiring (removing) a role from a user after a set period.

Activity

Total releases
3
First release
Dec 2024
Latest release
11 months ago
Releases (12 mo)
1 ▼ from 2
Maintenance
Slowing

Release Timeline

Releases

Version Type Release date
2.1.2 Stable Jul 31, 2025
2.1.1 Stable Jul 17, 2025
2.x-dev Dev Dec 4, 2024