You need to sign in to do that
Don't have an account?
MJ Kahn / OpFocus
Get a list of users currently logged into my org
I need to get a list of all users who are currently logged into my org.
This idea (https://success.salesforce.com/ideaView?id=08730000000BpPOAA0) explains that, as of a few months ago, this is possible. It explains where to find this information via the browser (Setup | Security Controls | Session Management), and also says that it's available through the API. Can anyone point me to documentation that explains how to get it via the API?
Thanks!
This idea (https://success.salesforce.com/ideaView?id=08730000000BpPOAA0) explains that, as of a few months ago, this is possible. It explains where to find this information via the browser (Setup | Security Controls | Session Management), and also says that it's available through the API. Can anyone point me to documentation that explains how to get it via the API?
Thanks!
Select a.UsersId, a.UserType, a.SourceIp, a.SessionType, a.SessionSecurityLevel, a.ParentId, a.NumSecondsValid, a.LoginType, a.LastModifiedDate, a.Id, a.CreatedDate From AuthSession a
All Answers
Select a.UsersId, a.UserType, a.SourceIp, a.SessionType, a.SessionSecurityLevel, a.ParentId, a.NumSecondsValid, a.LoginType, a.LastModifiedDate, a.Id, a.CreatedDate From AuthSession a
Are you getting your error at compile-time or at run-time? If at compile-time, what's the API version of your class/trigger? AuthSession is supported starting in version 29.0.
Thanks again.
1) Create a VF page to query AuthSession
2) Create a custom object to copy data from AuthSession. Then create report type on that custom object
Any other suggestion?