Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

Masquerade Log

Security covered Under active development 1,594 sites

Part of the Masquerade ecosystem · 7 projects

This module enhances the Masquerade module by logging the original user's details whenever a user is masquerading as someone else. This allows administrators to track who initiated an action while masquerading.

This module extends Masquerade by logging also the original user in all logger entries when the current user is masquerading.

Normally the log entry user ID is the current user. But when a user is masquerading we cannot determine the original user from the log entry. By enabling this module, a suffix will be added to the log entry message. For example, if the original username is joe, with user ID equals 1234, and he's masquerading as anna, the log entry user ID will still belong to anna, as currently happens, but the log message will end with:

[masquerading joe, uid 1234]

Loggers that are storing also variables, such as DbLog, will receive also two additional context variables:

  • @original_uid
  • @original_username

This module needs no configuration.

Project Goal

A long-term goal of this module is to have its functionality integrated into the Masquerade module itself. This would eliminate the need for a separate contrib module, making user impersonation logging a core feature of Masquerade. Until then, this module provides a standalone solution for tracking masquerade activity.

Drupal 9–11

Ask your assistant about Masquerade Log

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

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
5
Tracked since
Aug 2023
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Core PHP Release date
2.0.0 Stable 9–11 Feb 7, 2025
2.0.x-dev Dev 9–11 Feb 7, 2025
8.x-1.3 Stable 9–10 Feb 6, 2025
8.x-1.2 Stable 9–10 Aug 26, 2023
8.x-1.1 Stable 9–10 Aug 25, 2023