Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Download tar.gz
19.61 KB
MD5: 425c3566620da96b7e93d6e601ceb033
SHA-1: 3d02ff3af56b2aa4a03e6dabd38b6d3fc1c06db2
SHA-256: c00b9af3beca035a96a10bac6f73439c560f5c8bdda1cca2794c8264c19fb4ba
Download zip
33.69 KB
MD5: ce515d819897becb075b67ac9de6a0e5
SHA-1: af6424bfbf4d3d91ff7e161f1d379611c553ae9c
SHA-256: b84d2e8945dd0303bcbe8d4769c61748e663cc424545f2716c335667ca9e1466
Release notes
Initial stable release of the Permission Change Audit Log module for Drupal 10 and 11.
The Permission Change Audit Log module provides an append-only audit trail tracking role permission modifications across your Drupal site. Whenever a user role entity is saved, the module compares its permissions before and after the change and logs a granular record for each individual permission added or removed.
Key Features
-
Granular Permission Tracking:
- Automatically detects permission differences whenever roles are created or updated.
- Records one immutable row per permission: role machine name, permission machine name, action (
addedorremoved), timestamp, and the acting user ID. - Handles non-web and automated contexts (e.g., Drush, automated tasks) cleanly as System/unknown (UID 0), and gracefully displays deleted user accounts.
-
Administrative Audit Report UI:
- Paginated report accessible at Administration » Reports » Permission change audit log (
/admin/reports/permission-change-audit-log). -
Comprehensive filtering capabilities:
- Role: Filter by a specific role.
- Permission: Partial string search on permission machine name.
- Action: Filter by Added or Removed.
- Changed by: Filter by acting user ID.
- Date range: Filter by From and To dates (inclusive).
- Bookmarkable and shareable search queries via URL query parameters.
- Paginated report accessible at Administration » Reports » Permission change audit log (
-
Dedicated Access Control:
- Dedicated permission
View permission change audit logto restrict report access to authorized administrative roles.
- Dedicated permission
-
Developer API & Services:
- Service
permission_change_audit_log.last_changed(LastChangedLookupInterface) to programmatically query the most recent change for a role and/or permission. - Clean service-oriented architecture with decoupled storage, recorder, and lookup components.
- Service
Requirements
- Drupal Core: ^10 || ^11
- PHP: >= 8.3
- Core Dependencies:
drupal:user
Installation
-
Install via Composer:
composer require 'drupal/permission_change_audit_log:^1.0' -
Enable the module:
drush pm:install permission_change_audit_log
Please report bugs and feature requests in the issue queue.