Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Views Bootstrap 5.5.4 — Minor update available for module views_bootstrap (5.5.4). Release: Rightup theme 1.0.3 — Minor update available for theme vartheme_bs5_rightup (1.0.3). Release: CommentOn 1.0.6 — Minor update available for module commenton (1.0.6). Release: ChatGPT Ads 1.0.3 — Minor update available for module chatgpt_ads (1.0.3). Release: Opensolr Search 5.1.3 — Minor update available for module opensolr_search (5.1.3). Release: ServiceM8 Webform Integration 1.2.1 — Minor update available for module servicem8_webform (1.2.1). Release: PostfixAdmin 1.0.0 — Initial release available for module postfix_admin (1.0.0)! Release: ip_analyser 1.0.3 — Minor update available for module ip_analyser (1.0.3). Module Revived: Swagger-PHP OpenAPI 3 documentation generator 1.0.0 — Module swagger_php updated after 10 months of inactivity (1.0.0). Security Coverage: Microsoft Azure AI — Module ai_provider_azure now has official Drupal security advisory coverage.

Automatically revoke user roles based on their content editing activity within a configurable time threshold, ensuring only active users retain their roles.

Features

The Role Revocation module automates the process of revoking user roles based on their inactivity. It uses node revision data to determine whether users have edited content within a specified time threshold.

  • Configurable time threshold: Set a specific number of days after which roles are revoked if no content edits are detected.
  • Selective role revocation: Choose which roles should be subject to revocation.
  • Privileged roles: Define roles that are exempt from revocation, ensuring key users retain their access.
  • Cron integration: Option to enable the revocation process to run automatically via cron.

Post-Installation

  1. Access configuration: Navigate to `Configuration -> People -> Role revocation settings`.
  2. Enable cron: Check the box to enable the revocation process via cron.
  3. Set roles to revoke: Select the roles that should be revoked if the user is inactive.
  4. Define privileged roles: Select roles that should always retain their assigned roles.
  5. Set expiration threshold: Enter the number of days of inactivity after which roles should be revoked.

Once configured, the module will use the defined settings to check for inactive users and revoke roles as necessary. You can also manually trigger the process by running the Drush command role_revocation:revoke.

Additional requirements

  • Revocation is based on node revision data. Therefore it's required to have node revisioning on.
  • This module utilises custom table for determining when the role assignment was done. This timestamp is taken into account not to revoke recently assigned roles. All assignments get set to current time on install making this module active only after the time threshold has passed.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Jul 2024
Latest release
2 years ago
Releases (12 mo)
0
Maintenance
Dormant

Releases

Version Type Core Release date
1.0.x-dev Dev Jul 30, 2024