I know you can use the global USER variable to get information based on who is currently logged in, but how can i get information on the ADMIN who is "logged in as" a user? I'm doing some custom development and we have a situation where our admins might need to log in as a user and perform some actions on their behalf, and i need to record which admin is performing the task when i insert the record of action in the db.
I'm assuming this information is available considering when you log in as another user, it shows both user account names in the upper right user menu, i'm just not sure how i should access it.
Thanks for your help!!