Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

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.

Activity

Total releases
3
First release
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 3
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
2.0.0 Stable Feb 7, 2025
2.0.x-dev Dev Feb 7, 2025
8.x-1.3 Stable Feb 6, 2025