Drupal is a registered trademark of Dries Buytaert
drupal 11.4.0 Update released for Drupal core (11.4.0)! drupal 10.6.12 Update released for Drupal core (10.6.12)! drupal 11.3.13 Update released for Drupal core (11.3.13)! drupal 10.6.11 Update released for Drupal core (10.6.11)! drupal 11.3.12 Update released for Drupal core (11.3.12)! drupal 11.2.14 Update released for Drupal core (11.2.14)! drupal 10.5.12 Update released for Drupal core (10.5.12)! cms 2.1.3 Update released for Drupal core (2.1.3)! drupal 10.5.11 Update released for Drupal core (10.5.11)! drupal 11.3.11 Update released for Drupal core (11.3.11)! drupal 11.2.13 Update released for Drupal core (11.2.13)! drupal 10.6.10 Update released for Drupal core (10.6.10)! cms 2.1.2 Update released for Drupal core (2.1.2)! drupal 11.1.10 Update released for Drupal core (11.1.10)! drupal 10.5.10 Update released for Drupal core (10.5.10)! drupal 10.4.10 Update released for Drupal core (10.4.10)! drupal 11.2.12 Update released for Drupal core (11.2.12)! drupal 11.3.10 Update released for Drupal core (11.3.10)! drupal 10.6.9 Update released for Drupal core (10.6.9)! drupal 10.6.8 Update released for Drupal core (10.6.8)!

Role Switcher lets any logged-in user who holds multiple custom roles pick which single role is active for their current browser session — without modifying the database or requiring any admin involvement.

Features

- Users can switch between their assigned custom roles from a dropdown block
- Session-based switching — no database changes, no permanent role modification
- "All my original roles" option instantly reverts to full original role set
- Administrator role is never lost — lockout-proof by design
- Block auto-placed in header on install — zero manual Block Layout setup
- Works transparently with all Drupal access checks (routing, Views, Twig, custom access checkers)
- Per-session switching — different browsers are fully independent
- Compatible with Drupal 10 and Drupal 11

Post-Installation

No configuration required. After enabling the module:
1. The "Role Switcher" block appears automatically in the header region
2. Any user with 2 or more custom roles will see an "Acting as" dropdown
3. Select a role to switch — or select "All my original roles" to revert
4. Logging out always resets to the full original role set

Additional Requirements

No additional modules or libraries required. Only Drupal core (drupal:user) is needed.

None required. Works out of the box with any Drupal 10/11 installation.

Activity

Total releases
1
First release
Jul 2026
Latest release
12 hours ago
Release cadence
Stability
100% stable

Releases

Version Type Release date
1.0.0 Stable Jul 3, 2026