Documentation
SwitchGuard Pro
Allowed Switcher Roles

Allowed Switcher Roles

Restrict which WordPress roles are allowed to start a switch session.

Navigate to SwitchGuard → Settings → Access Control → Allowed Switcher Roles.

This setting is available in both the free and Pro versions of SwitchGuard. It works alongside Pro-specific access controls such as IP Allowlist, Locked Users, and User Grants.

Settings

SettingDefaultDescription
Allowed Switcher Roles(none selected)Only users whose role matches one of the checked options can start a switch session.

Default Behaviour (No Roles Selected)

When no roles are checked, SwitchGuard falls back to WordPress default behaviour: any user with the edit_users capability can initiate switching. On a standard WordPress install this means Administrators only.

Role-Based Restriction

When one or more roles are selected:

  • Only users whose WordPress role matches a checked role can switch.
  • The edit_users capability check is replaced by the role membership check.
  • The role-hierarchy guard (actor must outrank target in level) still applies regardless.
  • All other Pro access controls (IP allowlist, locked users, scheduled window, per-user grants) continue to apply on top of this check.
⚠️

Checking a role that does not normally hold edit_users (e.g. Editor or Shop Manager) grants those users the ability to start switching sessions. Only check roles you fully trust with user access.

Interaction with Pro Controls

ControlRelationship
IP AllowlistApplied in addition — role check AND IP check must both pass
Scheduled WindowApplied in addition — role check AND window check must both pass
Locked UsersTarget lock is checked after the role check passes
User GrantsPer-user grants are a separate mechanism — they allow switching for a specific actor/target pair regardless of role settings
Re-AuthenticationStill triggered for privileged targets when enabled

Common Configurations

Use CaseConfiguration
Admin-only switching (default)Leave all unchecked
Allow Shop Managers to assist customersCheck Shop Manager
Allow Admins and EditorsCheck Administrator and Editor
💡

For team workflows requiring non-admin switching, User Grants offers more granular control — granting a specific actor permission to switch to specific target users, without broadly opening an entire role.