# Fast User Switcher for Developers

**URL:** <https://meta.discourse.org/t/fast-user-switcher-for-developers/69362>\
**Category:** Plugin\
**Created:** [5 Settembre 2017, 1:19am UTC](https://meta.discourse.org/t/fast-user-switcher-for-developers/69362 "2017-09-05T01:19:37Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [5 Settembre 2017, 1:19am UTC](https://meta.discourse.org/t/fast-user-switcher-for-developers/69362/1 "2017-09-05T01:19:37Z")

</div>

As pointed out below, you don’t actually need a plugin to easily switch users in development:

> [@eviltrout](#):
>
> In development mode, visit session/USERNAME/become with a GET request and you will impersonate that user.

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 change to another user, or inevitably close the incognito window by accident, I repeat that process again. Gets tedious very quickly.

When experimenting with various chat systems for `discourse-chat-integration`, I installed the development version of Zulip. I really liked the way they handle authentication when running in development mode: you just click a username and you’re in!

 ![image](https://global.discourse-cdn.com/meta/original/3X/4/2/42e4919919e22ec1dc4cb767f45dd91bca41ef05.png)

So, stealing that concept, this plugin replicates that functionality in Discourse. It adds a box to the footer, containing a list of every user (max. 50) on your development instance. All you do to login is click the username 🎉. The implementation is identical to the admin “impersonate” feature, but without all the safety features.

The footer is visible on every page, so you can switch users without even logging out!

![52](https://global.discourse-cdn.com/meta/original/3X/5/0/5010a640f0e9d3c09bc071afc66fe269392eb7b4.png)

The repository is available at [https://github.com/davidtaylorhq/discourse-dev-login](https://github.com/davidtaylorhq/discourse-dev-login)

---

_[View the full topic](https://meta.discourse.org/t/fast-user-switcher-for-developers/69362)._
