I am wondering whether we have an option/ functionality in Salesforce to store the details of the user who logs as a different user.
Use Case
I am a System Admin (User X) to a Salesforce instance where I can log in to the system as any of the existing Users if this option has enabled in the org. But if something happened in the org when the User X login as User Y, the changes are logged on behalf of User Y. How we can verify/ confirm that these changes happened because of the User X?
Is there any cross-reference between the current logged in user (User Y -> Logged in as User X) with the original user (User X)
Can we check this in the login history?