Check if the admin has been logged in as a user and do something
Do or show something if the admin has been logged in as a user, by using the Login as User WordPress Plugin.
For example, when you need to display some data that only the admin can see in the user's page.
You can the below code anywhere at the frontend, inside your theme or a plugin.