5

In the CP there is a button which allows you to log in as a specific user. Can this be called from the Frontend/plugin or is it strictly a CP function?

5

You can call it from the front-end, but it requires the currently logged in user to be an administrator.

Just point the form's hidden action input to users/impersonate and have it submit a 'userId' input of the person you want to log in as.

| improve this answer | |
  • Hi Brad, But do you have to be admin? Is there a way to use this feature for non-root admins? I want them to login as another user, but when I give them all user altering rights, the dropdown with the cog doesn't show me the option to take over another account. Thanks in advance. – Martijn La Feber Nov 12 '18 at 14:56
  • You have to be an admin to impersonate another user. – Brad Bell Nov 12 '18 at 22:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.