Saturday, July 27, 2019

How to query Salesforce Logged in Users information Using SOQL

This simple SOQL query returns the User Information and logged information in salesforce.
It returns the type of sessions user have a logged-in system.

SOQL Query
Select Id, UsersId, Users.Name, UserType, SourceIp, SessionType, SessionSecurityLevel, ParentId, LoginType, LastModifiedDate, CreatedDate From AuthSession
Result

Resource
AuthSession SOAP API

No comments:

Post a Comment