---
schema_version: "1"
id: 7d482f005e7b57e9bddfb403dfd283016234da61537af80cb592b09fa2cb06c2
title: LoginIp
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/object_reference/sforce_api_objects_loginip.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.object_reference.meta/object_reference/sforce_api_objects_loginip.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 84e10a6b6afa0ab5320d4cd3c3476b9c724a2018070353b8b55a8215e5b42c25
description: Represents a validated IP address. This object is available in version 28.0 and later.
---
# LoginIp

Represents a validated IP address. This object is available in version 28.0 and later.

## Supported Calls

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

## Fields

| Field | Details |
| --- | --- |
| ChallengeMethod | 
Type

picklist

Properties

Filter, Group, Nillable, Restricted picklist, Sort

Description

The challenge method used to confirm the user’s identity. Possible values include the following.

- Email
- SMS
- TOTP\_CHOICE: The user chooses multi-factor authentication.
- TOTP\_ONLY: The user is required to use multi-factor authentication.





 |
| ChallengeSentDate | 

Type

dateTime

Properties

Filter, Nillable, Sort

Description

The date and time that the user was authenticated.



 |
| IsAuthenticated | 

Type

boolean

Properties

Defaulted on create, Filter, Group, Sort

Description

If true, the user has already been authenticated.



 |
| SourceIp | 

Type

string

Properties

Filter, Group, Nillable, Sort

Description

The IP address the user logged in from.



 |
| UsersId | 

Type

reference

Properties

Filter, Group, Sort

Description

The ID of the user associated with this item.

This is a relationship field.

Relationship Name

Users

Relationship Type

Lookup

Refers To

User



 |

## Usage

At every login, the IP address of the login request is checked against the validated IP addresses using LoginIp. A match means the login IP address is a known IP address. If there’s no match, the address is unknown, and the user is asked to confirm their identity.