Impersonating Users

Vanguard - Advanced PHP Login and User Management Vanguard - Advanced PHP Login and User Management / Usage Last updated on Updated  Jan 16, 2019

All Vanguard users with users.manage permission can impersonate other system users. This is a very handy feature when your users report some bugs and when you need to see the application exactly how they can see it. Instead of asking them for their credentials you can simply impersonate them.

How to impersonate a user?

One way to impersonate a user is from a user list page, as displayed on the image below:

kvcTgLHN3knwfMSv7z32gvepvMkQhek76pPN9740.png

Users can also be impersonated from their profile page:

pTeolwM5dGByZfRbOxxQ7oS1PTVdu4GRk3yUtSyD.png

Stop Impersonating

While you are impersonating a user, you can do everything that the user can do himself. Once you are done and you want to return to your account and stop impersonating the user, just click on the "Stop Impersonating" button inside the header.

6d66v1s034bON872PgqUeMEx9Z0YWOv92P3Sn3Jz.png

Changing Permissions

If you want to customize who can impersonate other users or which users can be impersonated, you can do that by updating appropriate methods inside app/Support/CanImpersonateUsers.php file.