Skip to main content
drupalreleases
Release: Cms 2.2.3 — Update released for Drupal core (2.2.3)! Release: Easy Breadcrumb 2.0.11 — Minor update available for module easy_breadcrumb (2.0.11). Release: Bootstrap 8.x-3.42 — Minor update available for theme bootstrap (8.x-3.42). Release: Editoria11y Accessibility Checker 3.0.10 — Minor update available for module editoria11y (3.0.10). Release: Editoria11y Accessibility Checker 2.2.24 — Minor update available for module editoria11y (2.2.24). Release: Leaflet 10.4.13 — Minor update available for module leaflet (10.4.13). Release: Flag 5.1.1 — Minor update available for module flag (5.1.1). Release: Layout Paragraphs 3.0.0-beta5 — New beta version released for module layout_paragraphs (3.0.0-beta5). Module Revived: Bootstrap 8.x-3.41 — Theme bootstrap updated after 6 months of inactivity (8.x-3.41). Security Coverage: Component Library — Module component_library now has official Drupal security advisory coverage.

This module allows logged-in users with multiple custom roles to temporarily switch to a single active role for their current browser session, without altering database records or needing administrator intervention. Users can select a role from a dropdown block, and a special option quickly reverts them to all their original roles. The administrator role is always preserved, ensuring no lockout potential.

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.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
2
Tracked since
Jul 2026
Latest release
3 months ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev 10–11 Jul 6, 2026
1.0.0 Stable Jul 3, 2026