

<strong>Users list</strong> – Switch To link next to each user row.
WindCodex SwitchGuard is a secure, free user switching plugin for WordPress and WooCommerce. Switch into any lower-privilege user account in one click – no passwords, no account resets, no security risk.
Whether you are a support agent reproducing a customer bug, a WooCommerce store owner checking an order as the buyer, or a developer testing member-only content – SwitchGuard gives you instant access to any user account and brings you straight back when you are done.
Security-first design. Every switch is nonce-verified, role-hierarchy-enforced, and recorded in a signed session cookie. You cannot accidentally switch into an equal-or-higher privilege account.
One-Click User Switching
* Switch from the Users list with a single click – no page reloads
* Switch from any user profile edit screen
* Switch from WooCommerce order screens – jump straight into the customer’s account to reproduce checkout or order issues
* Admin bar quick search – find any user by name or email and switch instantly from any page
Access Control
* Switching is enabled by default – you opt out deliberately when you are ready
* Restrict switching to specific WordPress roles (e.g., only Shop Managers or Editors)
* Automatically blocks switching into administrator accounts
* Equal-or-higher privilege accounts are always blocked – no configuration needed
* Configurable session duration from 1 to 168 hours (default 48 hours)
Security & Audit
* Every switch action protected by WordPress nonces – full CSRF protection
* Switch sessions stored in a signed, HTTPOnly cookie – tamper-proof and replay-resistant
* Every switch action is recorded – who switched, when, from which IP, and for how long. A full audit log dashboard is available in SwitchGuard Pro
* No passwords stored, logged, or transmitted – ever
* Full WordPress multisite support
Switch Back
* Prominent Switch Back button always visible in the admin bar during any active switch session
* Switch Off to end the session permanently and return to your original account
* Session expires automatically when the configured cookie TTL is reached
Most user-switching plugins simply swap the WordPress session with no additional safeguards – leaving you exposed to privilege escalation and session fixation. SwitchGuard is built with security as the core requirement:
Need IP allowlists, locked accounts, scheduled switching windows, email alerts, and a full audit log dashboard?
SwitchGuard Pro is available at windcodex.com
SwitchGuard Pro adds advanced controls for agencies, enterprise teams, and high-security environments: