Add 'stop impersonating' link to user avatar dropdown when impersonating

(Dave McClure) #1

As far as I’m aware, there is currently no way to ‘stop impersonating’ a user. In order to do this now, you have to log out, and then log back in as yourself.

It’d be nice if there were a link to ‘stop impersonating’ the user in the user avatar dropdown menu:

22 Likes

Impersonating a user should allow me to go back to my user
(Sam Saffron) #2

We would need to start tracking that you are impersonating for that to work :slight_smile:

2 Likes

Impersonate shouldn't clear notifications
(Sander Datema) #3

Well, wouldn’t mind that Discourse would track that. :smile:

https://meta.discourse.org/t/don-t-change-last-seen-when-impersonating-a-user/5764?source_topic_id=13806
2 Likes

(Sam Saffron) #4

Totally for fixing this, its just a bit hairy.

4 Likes

(Jeff Atwood) #5

Are you really impersonating users so much that this is a problem? Seems like a lot of work for little benefit.

1 Like

(Dave McClure) #6

No, its a very minor issue. Consider this documentation for the workaround until such a time its deemed worthy of attention.

2 Likes

(Erlend Sogge Heggen) #7

Ran into this myself right now. Still corner-case, but it is rather annoying when it does happen, just for the record ^^

Even a “secret” URL shortcut to get you back would be a great first step. I could be made aware of such a trick via the admin guide.

5 Likes

(Dave McClure) #8

Would the mechanics for switching out of anonymous mode be applicable to this feature?

0 Likes

(Sam Saffron) #9

I can implement it, but I don’t want to gold plate impersonation, logging when someone impersonates has to come first

4 Likes

(Lisa Wess) #10

Looking forward to having this option. I end up impersonating folks quite a lot as we develop features/test things out and it is a huge hassle to get out of it since I have to go through multiple screens to re-login (due to SSO).

4 Likes

(Robby O'Connor) #11

Was this ever implemented?

0 Likes

(Sam Saffron) #12

Nope, did not happen, I feel odd adding more polish around impersonation

0 Likes

(Robby O'Connor) #13

I’d prefer it be removed if there isn’t a way go get out…I had to
invalidate all login sessions to stop getting push notifications…may be a
separate issue…

–Rob

0 Likes

(Jeff Atwood) #14

Stop using the intensely alpha push notifications plugin?

4 Likes

(Robby O'Connor) #15

It’s still good – it does the job :slight_smile: The solution is to never Impersonate a user again.

1 Like

(Christoph) #16

So what is the workaround?

0 Likes

#17

I think he was referring to this:

3 Likes

#18

@Sam Sorry for reviving this old post but since impersonations are now logged could this feature be built in the future or is it in your list of things to work on?

3 Likes

(Sam Saffron) #19

Still not tracked per auth token, we would need a new column for that.

Over the years I have had so little motivation to do anything here short of adding tracking, I feel like impersonation is simply something to be avoided, the friction here can be seen as a feature.

4 Likes

#20

Though I understand your reticence to improve it, I hardly think trapping people in a mode you want them to avoid makes sense as a feature. It has legitimate uses, which is why it was added and why I use it.

I don’t really mind being forced to logout to quit impersonating though. The problem is that I can’t figure out how to logout without clearing their notification count (because I have to click on their profile menu to get to the logout menu item.) This is confusing and unhelpful for the user being helped via impersonation.

Is there a url I can visit to logout directly? Or is there some other way to avoid this problem?

0 Likes