function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Guilherme_MonteiroGuilherme_Monteiro 

Is there any apex class/interface that could retrieve information related to log in as a session?

I need to figure out when a session points to Login As so that I can create a transaction security policy.
RituSharmaRituSharma
I think LoginHistory is the only object that stores login information. 

https://developer.salesforce.com/docs/atlas.en-us.api.meta/api/sforce_api_objects_loginhistory.htm