Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Role Revocation

No security coverage Under active development

This module automatically revokes user roles if they haven't edited content within a configurable period. You can specify which roles to revoke, which roles are exempt, and the inactivity threshold in days.

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.

Ask your assistant about Role Revocation

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

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 PHP Release date
1.0.x-dev Dev 10–11 Jul 30, 2024