# Allow easy switching between user accounts

**URL:** https://meta.discourse.org/t/allow-easy-switching-between-user-accounts/108791
**Category:** Development
**Created:** [February 10, 2019, 7:16pm UTC](https://meta.discourse.org/t/allow-easy-switching-between-user-accounts/108791 "2019-02-10T19:16:56Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![jshort](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jshort](https://meta.discourse.org/u/jshort)
#### Post date: [February 10, 2019, 7:16pm UTC](https://meta.discourse.org/t/allow-easy-switching-between-user-accounts/108791/1 "2019-02-10T19:16:57Z")

</div>

Hi there,

For the past several years, I’ve run a roleplaying forum using a PHP-based forum software. We’re currently looking at switching to Discourse because we like a lot of its built in features, especially for moderation.

One key feature that we currently have is the ability for our users to easily link together different accounts and switch between them. Users who play multiple characters will have multiple user accounts (1 per character), and being able to link those accounts allows for 1.) Easy listing of all characters of a player and 2.) Easy switching of user session without having to log out/log back in.

I’d like to know if either something like this already exists as a Discourse plugin or any advice on how to go about implementing it. It should be straight forward enough to use the custom user fields to hold a list of account names/IDs that are connected, but I’m less certain about how to go about switching the logged in user session.

Any help is greatly appreciated!

Note: This has nothing to do with the third party sign on services or trying to link accounts across different Discourse instances.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [February 11, 2019, 12:56am UTC](https://meta.discourse.org/t/allow-easy-switching-between-user-accounts/108791/2 "2019-02-11T00:56:02Z")

</div>

This is going to require some special plugin, also there are huge security implications to allowing account switching so you need to be ultra careful with the implementation. Also it gets super tricky if you want notifications to flow back up to the central account.

Probably talking a week of work to get something simple working nicely and a month or even 2 for something fancy.

We are planning on possibly building something similar for a gaming company some time in the next few years, but nothing I can think of that you can use today.

---

<div class="post-metadata">

### Author: ![jshort](https://avatars.discourse-cdn.com/v4/letter/j/dbc845/32.png) [@jshort](https://meta.discourse.org/u/jshort)
#### Post date: [February 12, 2019, 1:46am UTC](https://meta.discourse.org/t/allow-easy-switching-between-user-accounts/108791/3 "2019-02-12T01:46:35Z")

</div>

Thanks for the response! I figured I would need to develop a plugin to handle something like this. I’m not too concerned about having notifications bubbling up to a central account. It would be nice to have, but certainly not a dealbreaker.

I’m feeling good about being able to set up the process that would allow users to link their accounts together, but I’m less sure about how to implement the actual switching. Our current forum implements this by first checking permissions, and then deleting the existing user’s cookie, creates a new one, and then creates a new session.

Could you maybe provide some guidance as to where I would start/hook into creating a new user session?

---

<div class="post-metadata">

### Author: ![Yuri](https://avatars.discourse-cdn.com/v4/letter/y/71c47a/32.png) [@Yuri](https://meta.discourse.org/u/Yuri)
#### Post date: [January 29, 2020, 10:10am UTC](https://meta.discourse.org/t/allow-easy-switching-between-user-accounts/108791/4 "2020-01-29T10:10:45Z")

</div>

An easy way to switch user accounts, is to have two browser windows which work independently. In chrome this is called ‘(other) People’

---

<div class="post-metadata">

### Author: ![roke\_julian\_lockhart](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/roke_julian_lockhart/32/540179_2.png) [@roke\_julian\_lockhart](https://meta.discourse.org/u/roke_julian_lockhart)
#### Post date: [October 24, 2025, 4:10pm UTC](https://meta.discourse.org/t/allow-easy-switching-between-user-accounts/108791/5 "2025-10-24T16:10:37Z")

</div>

> [@sam](#):
>
> This is going to require some special plugin, also there are huge security implications to allowing account switching so you need to be ultra careful with the implementation.

I suppose that that exists:

> [@Fast User Switcher for Developers](https://meta.discourse.org/t/fast-user-switcher-for-developers/69362):
>
> As pointed out below, you don’t actually need a plugin to easily switch users in development: That said, this plugin might still be useful if you want easy links to switch accounts quickly. When developing Discourse, I often find it’s useful to switch between user accounts. My general workflow currently looks something like this: Open incognito window Login using the admin account credentials that I remember (most of the time) Hamburger Admin Users Pick a user Impersonate If I want to cha…

However, it’s inapplicable here. Could this thread be switched to a #Contribute > Feature post? I really want to see this in Core.

* * *

> [@Yuri](#):
>
> In Chrome, this is called ‘(other) People’.

Although Chromium provides that profile system \[1\] like Firefox does ( ~~with Firefox’s less easily accessible~~ ), \[2\] Firefox provides a significantly more convenient system, via isolated tabs. \[3\]

* * *

1. [`t/69362/4`](https://meta.discourse.org/t/fast-user-switcher-for-developers/69362/4) 

2. `Mozilla.MozillaFirefoxNightly_146.2510.1421.0_x64__jag0gd4e3s9p2` demonstrates otherwise, per:

3. [`t/69362/6`](https://meta.discourse.org/t/fast-user-switcher-for-developers/69362/6)
