Pete Posted July 26, 2016 Posted July 26, 2016 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 14
Pete Posted July 26, 2016 Author Posted July 26, 2016 Thought it was high time I released this one into the wild after sitting on it for a year or more - oops! 3
alan Posted August 5, 2016 Posted August 5, 2016 Immediately useful to me, thank you very much for sharing Pete 1
choppingblock Posted August 27, 2016 Posted August 27, 2016 Very useful and works like a charm. Thanks!
wet Posted September 2, 2016 Posted September 2, 2016 @pete, I think you might consider pulling this PR for security reasons: https://github.com/Notanotherdotcom/ProcessSwitchUser/pull/1
arjen Posted November 1, 2016 Posted November 1, 2016 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: Thanks for considering.
adrian Posted November 1, 2016 Posted November 1, 2016 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. 1
arjen Posted November 1, 2016 Posted November 1, 2016 @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.
creativejay Posted March 9, 2022 Posted March 9, 2022 I'm finding that non-superusers cannot access this module, even if they are selected through the module setup. Is this intentional? The two users in question need to handle all the user errors that are reported but don't want or need full superuser access.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now