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

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

CC BY-SA 4.0
2018-11-12T14:56:51.917Z
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
CC BY-SA 4.0
2018-11-12T22:39:55.783Z
You have to be an admin to impersonate another user.
Brad Bell
CC BY-SA 3.0
2014-10-24T21:16:44.730Z
2014-10-24T21:16:44.730Z
Brad Bell
<p>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?</p>

<login><frontend>
Login As User from Frontend
# Login As User from Frontend

(Asked by: username_0 on 2014-10-24)

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?

**Tags:** login, frontend

---

## 1 answers

### Answer by username_1 on 2014-10-24. Score: 5 | Accepted answer

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.

> **Comments:**
> **username_2**: 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.  
> **username_1**: You have to be an admin to impersonate another user.  

---

