Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: OpenID Connect / OAuth client 3.0.0-alpha9 New alpha version released for module openid_connect (3.0.0-alpha9). Release: Opensolr Search 4.5.0 Minor update available for module opensolr_search (4.5.0). Release: Timelinr 1.0.1 Minor update available for module timelinr (1.0.1). Release: Video.js (HTML5 Video Player) 10.0.0-alpha1 First alpha version released for module videojs (10.0.0-alpha1). Usage Milestone: Simplify Module simplify crossed 10,000 active installs. Usage Milestone: Views Reference Filter Module entityreference_filter crossed 10,000 active installs. Usage Milestone: Dropdown Language Module dropdown_language crossed 10,000 active installs. Usage Milestone: Paragraphs Browser Module paragraphs_browser crossed 10,000 active installs. Usage Milestone: OpenAPI Module openapi crossed 10,000 active installs. Module Revived: Entityqueue Buttons 1.1.2 Module entityqueue_buttons updated after 8 months of inactivity (1.1.2).

User Expire

2,909 sites Security covered Drupal 10–11
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.

Depends on

Dependencies of the latest stable release

  • user Drupal core

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
6
Tracked since
Dec 2024
Latest release
2 weeks ago
Releases (12 mo)
1 ▼ from 5
Maintenance
Active

Release Timeline

Releases

Version Type Core Release date
2.1.3 Stable 10–11 Aug 16, 2026
2.1.2 Stable 10–11 Jul 31, 2025
2.1.1 Stable 10–11 Jul 17, 2025
2.1.0 Stable 10–11 Jan 14, 2025
2.0.1 Stable 10–11 Dec 16, 2024
2.x-dev Dev 10–11 Dec 4, 2024