Drupal is a registered trademark of Dries Buytaert
Release: Leaflet 10.4.11 Minor update available for module leaflet (10.4.11). Release: Session Inspector 1.0.8 Minor update available for module session_inspector (1.0.8). Release: Migrate QA 2.0.4 Minor update available for module migrate_qa (2.0.4). Release: CKEditor Description List 3.0.0 Major update available for module ckeditor_descriptionlist (3.0.0). Release: FlowDrop 2.4.0 Minor update available for module flowdrop (2.4.0). Release: JWT Token Refresh 1.0.4 Minor update available for module jwt_token_refresh (1.0.4). Release: ConReg 1.0.0-beta1 First beta version released for module conreg (1.0.0-beta1). Release: AI Image Studio 1.0.0-beta8 New beta version released for module ai_image_studio (1.0.0-beta8). Usage Milestone: Role Theme Switcher Module role_theme_switcher crossed 1,000 active installs. Module Revived: Decoupled Router 2.0.7 Module decoupled_router updated after 11 months of inactivity (2.0.7).

Floating Mask provides a floating action button on your Drupal site for administrators to quickly switch into any user's account for testing purposes. This module is intended for development use only and should not be used on production sites.

Floating Mask adds a floating action button (FAB) to your Drupal site that lets administrators quickly switch into any user account — without logging out or needing their password. It is ideal for testing permissions, debugging user-specific issues, and verifying what your site looks like from another user's perspective. One click to switch, one click to switch back.

Warning: This module is intended for development use only. Users can elevate permissions by design — do NOT use in a production environment.

Features

  • Floating Action Button (FAB) — a fixed-position button anchored to any corner of the screen, always within reach while browsing the frontend.
  • User search — search and filter users by name with built-in debounce, so you can quickly find the account you need.
  • Instant session switching — click a user in the list to immediately switch into their account; the page reloads under their session.
  • Switch back — your original account is tracked in the session; one click returns you to where you started.
  • Re-switch while masked — switch to another user without switching back first. Your original account is preserved no matter how many times you re-switch.
  • Role-based access control — configure exactly which roles are allowed to see and use the widget.
  • Configurable position — place the FAB in any screen corner (bottom-left, bottom-right, top-left, top-right).
  • Auto-hide — optionally hide the FAB until the cursor approaches its position, keeping the interface clean.

Post-Installation

After enabling the module (drush en floating_mask), navigate to Administration → Configuration → Development → Floating Mask (/admin/config/development/floating-mask) to configure the widget.

Once configured, users with an allowed role will see the floating button on non-admin pages. Click the button to open a searchable user panel, select a user to switch into their account, and click "Switch Back" when you are done.

No additional modules are required. Floating Mask is fully self-contained and ships with its own CSS and JavaScript assets.

Similar projects

  • Masquerade - the long-established user-switching module for Drupal. Masquerade integrates into the admin toolbar and provides a block/form-based interface for switching users. Floating Mask takes a different UX approach: it provides a lightweight, always-visible floating button on the frontend, with a built-in searchable user list, multi-switch, and auto-hide support. No annoying block-placing - install & use right away; uninstall & everything is cleaned up.

Activity

Tracked releases
1
Tracked since
Mar 2026
Latest release
4 months ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Release date
1.x-dev Dev Mar 25, 2026