Newer Version Available

This content describes an older version of this product. View Latest

AuthSession

The AuthSession object represents an individual user session in your organization. This object is available in versions 29.0 and later.

Supported Calls

delete()describeSObjects()query()retrieve()

Fields

Field Name Details
LoginType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of login, for example, Application.
NumSecondsValid
Type
int
Properties
Filter, Group, Sort
Description
The number of seconds before the session expires, starting from the last update time.
SessionSecurityLevel
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
Standard or High, depending upon the authentication method used.
SessionType
Type
picklist
Properties
Filter, Group, Nillable, Restricted picklist, Sort
Description
The type of session. Common ones are UI, Content, API, and Visualforce.
SourceIp
Type
string
Properties
Filter, Group, Sort
Description
IP address of the end user’s device from which the session started. This can be an IPv4 or IPv6 address.
UserType
Type
picklist
Properties
Filter, Group, Restricted picklist, Sort
Description
The kind of user for this session. Types include Standard, Partner, Customer Portal Manager, High Volume Portal, and CSN Only.
UsersId
Type
reference
Properties
Filter, Group, Nillable, Sort
Description
The user’s Salesforce user ID.

Usage

The AuthSession object exposes session data and enables read and delete operations on that data. For example, use this object to create a report showing who is signed in to your organization, or to create a tool to delete a session, ending that user’s session. For a user, only their own sessions are available, while administrators can see all sessions.

You can’t change user sessions with this object; only read and delete them.