Loading
Secure Your Salesforce Org
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Monitor Login History

          Monitor Login History

          As an admin, you can monitor all attempts to log in to Salesforce and to your Experience Cloud sites. The Login History page shows up to 20,000 records of user logins for the past 6 months. To see more records, download the information to a CSV or GZIP file.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Contact Manager, Group, Professional, Enterprise, Performance, Unlimited, and Developer Editions
          User Permissions Needed
          To monitor logins:

          Monitor Login History

          OR

          Manage Users

          Know who logged in, at what time, and from where. To view this information, go to the Login History in Setup.

          • Authentication Method References. Monitor how your OpenID providers authenticate users that log in to your org through OpenID Connect. For example, see which users log in with multi-factor authentication (MFA).

            To show you how your OpenID provider is authenticating users, Salesforce pulls the authentication method from JSON strings in the OpenID Connect token returned by your provider. Work with your provider to define the values used in the JSON strings. To get started, you can see the values defined by the Internet Engineering Task Force. These values aren't necessarily supported by your OpenID provider. For more information on the Authentication Method References claim, see the OpenID Connect Core 1.0 standards from the OpenID Foundation.

          • HTTP Login Method–View the HTTP method used for the session login: POST, GET, or Unknown.
          • SAML Single Sign-On (SSO)–If your org uses SAML SSO identity provider certificates, view SAML SSO history.
          • My Domain–You can see when users are logging in with a My Domain URL, which is displayed in the Login URL column.
          • License Manager Users–Names in the format 033*********2@00d2********db indicate internal users who are associated with the License Management App (LMA). This app manages the number of licenses used by a subscriber org. These internal users can appear in the License Management org (LMO) and in subscriber orgs that have an AppExchange package managed by the LMA.
          • IP Tracking—The Login History provides two ways to track IP addresses.
            • The Source IP column stores the client IP address of the request that first reaches Salesforce during a login. For example, if the client redirects to a client proxy, then to a Salesforce proxy, and finally to the Salesforce app, the Source IP column stores the IP address of the client proxy.
            • The Forwarded for IP column stores the value that the client passed in the X-Forwarded-For header. This header is sometimes used to store IP addresses when the client redirects through one or more proxies. In that case, you can use this column to see the client’s origin IP address. For example, if the client redirects to a client proxy, then to a Salesforce proxy, and then to the Salesforce app, the Forwarded for IP column can store all four IP addresses—the client (origin) IP, both proxy IPs, and the Salesforce app IP.

              The maximum length is 256 characters. Longer values are truncated. This column doesn’t get populated for OAuth and single sign-on logins.

          • Logins via connected apps–View the login subtype to see logins for connected apps that use these OAuth 2.0 flows.
            • Client credentials flows
            • User-agent flows, including hybrid user-agent and user-agent with ID token flows
            • Username-password flows
            • Web-server flows, including the hybrid web-server flow
            Important
            Important For security, we recommend blocking user-agent and username-password flows.
          • Password resets—View the login subtype to see when a user resets their password.
          • Login History List Views
            You can specify filters and fields to create Login History custom list views.
          • Create Login History List Views
            To create a Login History custom list view, specify filter criteria and fields to display.
          • Download Login History
            You can download the past 6 months of user logins to Salesforce and to your Experience Cloud sites. This report includes logins through the API.
          • Login History Report Codes
            The Login History Report includes a Login Status Column that displays codes. Each code identifies a unique event that happens during login. The following list describes what each code means.

          Login History List Views

          You can specify filters and fields to create Login History custom list views.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Contact Manager, Developer, Enterprise, Group, Performance, Professional, and Unlimited Editions
          User Permissions Needed
          To monitor logins:

          Monitor Login History

          OR

          Manage Users

          You can use these filters to create custom list views.

          • Application
          • Authentication Method Reference
          • Login Subtype
          • Login Time
          • Login Type
          • Login URL
          • TLS Protocol
          • TLS Cipher Suit

          For example, you can create a view of all logins for a time range or from an application such as a mobile device. You can also define which fields to include in the custom list view. Like the default view, a custom view shows up to 20,000 records of login history during the past 6 months.

          For most apps, you can use the Application filter to view logins from a specific app. For apps with OAuth-based authentication, the Application filter works differently. To view logins from an app that uses OAuth, set the value for Application to OAuth. Then use other criteria such as the Login URL to narrow your view to OAuth-based logins from a specific app.

          You can display up to 15 fields, but they must be available in your page layout. Text area fields display up to 255 characters.

          Note
          Note Because of the nature of geolocation technology, the accuracy of geolocation fields can vary, such as for the country, city, or postal code.

          Create Login History List Views

          To create a Login History custom list view, specify filter criteria and fields to display.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Contact Manager, Developer, Enterprise, Group, Performance, Professional, and Unlimited Editions
          User Permissions Needed
          To monitor logins:

          Monitor Login History

          OR

          Manage Users

          1. On the Login History page, click Create New View.
          2. Enter a name for the view.
          3. Specify the filter criteria.
          4. Select the fields to display.

          Download Login History

          You can download the past 6 months of user logins to Salesforce and to your Experience Cloud sites. This report includes logins through the API.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Contact Manager, Developer, Enterprise, Group, Performance, Professional, and Unlimited Editions
          User Permissions Needed
          To monitor logins:

          Monitor Login History

          OR

          Manage Users

          1. From Setup, in the Quick Find box, enter Login History, and then select Login History.
          2. Select the file format to use: CSV File or GZIP File:. Because the GZIP file is compressed, it’s the preferred option for the quickest download time.
          3. Select the file contents. The All Logins option includes API access logins.
          4. Click Download Now.

          Login History Report Codes

          The Login History Report includes a Login Status Column that displays codes. Each code identifies a unique event that happens during login. The following list describes what each code means.

          Required Editions

          Available in: Salesforce Classic and Lightning Experience
          Available in: Contact Manager, Developer, Enterprise, Group, Performance, Professional, and Unlimited Editions

          Codes

          Code Meaning
          0 Successful login
          102 Username found, password invalid
          107 More than one username found
          301 Session timeout
          302 Page requires login
          303 Page requires different Salesforce login on same instance
          304 Page requires Salesforce login on different instance
          501 Cannot log in from given domain
          502 Log in at given time
          503 User must log in from org domain
          601 Offline client trial expired
          602 Offline disabled
          603 Outlook disabled
          801 Wireless client trial expired
          802 Wireless disabled
          901 Offline PDA trial expired
          902 Offline PDA disabled
          999 Unrecoverable error
          1000 Client app not accessible for the login user
          1001 Client app requires update for the login user
          1201 Invalid ID specified
          1300 Restricted login limit exceeded
          1400 Invalid login or store not available for the org
          1402 Store not available to a user
          1403 Store down or inaccessible
          20014 Password lockout in effect
          20017 Organization marked as inactive
          20018 User marked as inactive
          20020 Organization locked out
          20021 Organization closed
          20032 Organization suspended
          20037 Username found, password invalid
          20058 CSS user password lockout
          20253 User's profile doesn’t have access to this portal
          20605 Organization is in maintenance
          30001 The URL for the organization’s SSO authentication service is not a valid URL
          30002 The organization’s SSO authentication service is down (couldn't connect, timeouts, SOAP fault returned, and so on)
          30003 The organization’s SSO authentication service said that the supplied credentials are invalid
           
          Loading
          Salesforce Help | Article