LoginEvent Policies
Login event policies track login activity and enforce your login requirements.
Required Editions
| Available in both Salesforce Classic (not available in all orgs) and Lightning Experience. |
Available in: Enterprise, Unlimited, and Developer Editions Requires Salesforce Shield or Salesforce Event Monitoring add-on subscriptions. |
Policy at a Glance
| Object | Conditions Available in Condition Builder | Actions | Considerations |
|---|---|---|---|
| LoginEvent | API Type, API Version, Application, Authentication Method Reference, Browser, Country, Login Subtype, Login Type, Login URL, Platform, Session Level, Source IP, TLS Protocol, User ID, User Type, Username | Block, Notifications, Multi-Factor Authentication (for UI logins) |
|
What You Can Do With It
You can target specific login behaviors that reduce performance or pose a security risk. Create a policy that can:
- Block users who log in from certain locations
- Require multi-factor authentication for users logging in from unsupported browsers
- Monitor logins from specific applications
How Does LoginEvent Compare to Login Log Lines and Login History?
| Feature | LoginEvent | Login Log Lines | Login History |
|---|---|---|---|
| Standard Object or File | LoginEvent | EventLogFile (Login event type) | LoginHistory |
| Data Duration Until Deleted | 6 months | 30 days | 6 months |
| Access | API | API download, Event Monitoring Analytics app | Setup UI, API |
| Permissions | View Real-Time Event Monitoring Data | View Event Log Files | Manage Users |
| Extensibility | Yes, using the AdditionalInfo field | No | No |
| Availability | Included with Event Monitoring add-on or Real-Time Event Monitoring | Included with Event Monitoring add-on | Included with all orgs |
Did this article solve your issue?
Let us know so we can improve!

