No Results
Search Tips:
- Please consider misspellings
- Try different search keywords
Newer Version Available
LoginHistory
Represents the login history for all successful and failed login attempts for organizations and enabled portals.
Supported Calls
describeSObjects(), query(), retrieve()
Fields
Usage
Not all fields are filterable. You can only filter on the following fields:
- Id
- UserId
- LoginTime
- LoginType
- LoginUrl
The API allows you to do many powerful queries. A few examples are:
| Sample Query | Query String |
|---|---|
| Simple query showing UserId & LoginTime for each user | SELECT UserId, LoginTime from LoginHistory; |
| Query showing logins only after a specified date and time | SELECT UserId, LoginTime from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z; |
| Query showing logins for a specific time interval | SELECT UserId, LoginTime from LoginHistory WHERE LoginTime > 2010-09-20T22:16:30.000Z AND LoginTime < 2010-09-21T22:16:30.000Z; |