Jump to content

Switch User Account


Pete
 Share

Recommended Posts

This module allows the default admin - and other users you specify - to login as any other user as defined in the module config. This could be useful for reproducing errors your users can see on websites or during testing, but I would suggest it is used wisely as there are some obvious snooping abilities in using this.

Once installed, you can configure the module to be usable by various members of staff other than the default admin account, as well as define which roles or individual users you will be able to login as.

After saving the config settings, you will find a page under the Setup menu in the admin called "Switch User". Selecting a user from the list checks via AJAX whether the user has admin access (this is a basic check for the page-edit permission as by default the admin homepage requires page-edit to load the page tree) and will either allow you to redirect to the homepage or back to the admin depending on that check.

Download Here

Version History

  • 0.0.6 - Initial release
  • Like 14
Link to comment
Share on other sites

  • 4 weeks later...
  • 1 month later...

Hey @Pete,

Thanks for this module. Really great to test and a real time-saver. Can I suggest an improvement? I've worked with it for a while and one idea keeps coming back. Whenever I switch accounts I lose my own session. It would be cool if there was a message whenever I switched user and a possibility to log out and go back to the original session. For example:

Screen Shot 2016-11-01 at 10.43.55.png

Thanks for considering.

Link to comment
Share on other sites

1 hour ago, arjen said:

It would be cool if there was a message whenever I switched user and a possibility to log out and go back to the original session.

@arjen - check out the User Switcher in Tracy or ALIF - both of these do what you are looking for. 

Btw, not dissing what Pete has done here - his is the most secure option, but I think the other two manage the security implications.

 

  • Like 1
Link to comment
Share on other sites

@adrian, thanks, forgot to remember! Once again Tracy to the rescue ;) at least for us as engineers of the projects.

I would also like to give our client access to login as another user, but I don't want to give him access to Tracy. I believe a module like "Switch User Account" has potential on it's own.

For now I'll open the User Switch panel with Tracy.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...