Log in manager as another user

On multiple occasions, it would be really beneficial to have a functionality “log in as user” in the manager. I remember reading an article about why this is not yet implemented in MODX.

Does anyone know what article I am referencing? I would be open to implementing the feature, but if I remember correctly, it was a dealbreaker due to how session or permissions are handled.

My specific use-case is when trying to quickly debug some permissions, so you don’t have to create a new user, copy all the permissions over to them etc.

This feature exists with the following extra for the frontend:

Hi @jako - I’m aware of that one, but I’m looking for something, that would stay in the manager. Just wondering what are the limitations, because I’m sure i read about it somewhere …

I don’t think that it will work really well in the manger. LoginAs uses the current manager user to login as a different (frontend) user. You have to logout the current manager user and login a different user to the mgr context at the same time with the methods of LoginAs.

The login happens here: LoginAs/core/components/loginas/processors/mgr/user/loginas.class.php at 264a8af56bda469ac1b3b6fa373760879f6dc5ec · Jako/LoginAs · GitHub

Even if you login as a different user without a password, you have to logout the current manager user. So if you want to create an enhanced solution, you have to start there.

Maybe it is nicer to use a different browser for the second login to bypass the session of the first browser.