---
sourceDocument: Brazil Platform security
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-security

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform security

ft:clusterId :

    - psec

bundleId :

    - psec

workflow :

    - Platform


---

# Pre authentication context

# Pre authentication context {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Pre Authentication Context

The Pre Authentication Context in ServiceNow defines how and when a policy is enforced during the login process, specifically before users see the login screen.
This context allows you to control access to the instance by applying policies that execute immediately upon user access, enabling you to allow or deny entry before any login credentials are entered.
Show full answer Show less  

## Key Features

* **Policy Execution Timing:** Policies in this context run before the login screen appears, ensuring early access control.
* **Access Control:** You can configure the context to either allow or deny access by default, depending on the policy conditions.
* **Policy Types:** The context supports only specific policy filters: IP Filter, Trusted Mobile App Filter, and Location Filter.
* **Default Behavior Fields:**
  * **Default Policy:** Determines if the system allows or denies access by default.
  * **Allow Policy or Deny Policy:** Based on the default policy, you select the corresponding policy that defines conditions to override the default.
* **Policy Inputs and Conditions Tabs:** Display the inputs and conditions of the selected policy for reference but cannot be modified here; modifications must be done directly in the policy record.

## Important Considerations

* Only IP, Location, and Trusted Mobile App filters are valid criteria for policies in this context.
* Policies cannot evaluate user-specific attributes like roles or groups since they run before login.
* All policy inputs must be validated carefully to avoid locking out administrators or users. For example, misconfigured IP filters can block administrators if their current session IP is outside allowed ranges.
* If a policy contains non-absolute or unsupported conditions, an error will prevent configuration, ensuring only valid criteria are applied.

## Practical Implications for ServiceNow Customers

Using the Pre Authentication Context, ServiceNow administrators can enforce early access controls based on network, location, or trusted device criteria, enhancing security by restricting unauthorized access before login. Proper validation of policy inputs is critical to avoid administrative lockout and ensure smooth access management. This feature enables proactive access control aligned with organizational security policies.  
The pre authentication policy context defines how and when a policy is enforced during the login process. The policy used in this context executes before your users see a login screen.

## Pre authentication context record {#pre-auth-context__section_rqw_y2r_2qb}

Policies in the pre authentication context execute when a user first accesses the instance, before they see a login screen.

You can use the pre authentication context to allow or deny access before your users are prompted for login credentials based on your selected policy. Because these policies evaluate before a user enters any information, those
policies can't take criteria such as a user's roles or groups into account.

Use the fields in the Pre Authentication policy context record to define how your instance uses your policy.  
{#pre-auth-context__table_otz_ngr_2qb__entry__2}

| Field | Description |
|-|-|
| Name | Name of the policy context. This field is static and can't be changed. |
| Description | Description of the context |
| Default Policy | Default behavior of this context when evaluating the policy. Available options: Allow Policy :   Denies access to all users by default, and only allows access when the conditions the policy selected in the Allow Policy field evaluate to true. Deny Policy :   Allows access to all users by default, and only denies access when the conditions the policy selected in the Deny Policy field evaluate to true. |
| Allow Policy | The policy that this context uses. This field appears only when the Default Policy field is set to Allow Policy. |
| Deny Policy | The policy that this context uses. This field appears only when the Default Policy field is set to Deny Policy. |
[Table 1. Pre authentication context form]

{#pre-auth-context__table_otz_ngr_2qb}  
Note:  
You can only use the IP Filter, Trusted Mobile App Filter, and Location Filter criteria in the Pre Authentication Policy Context.

## Policy inputs and conditions {#pre-auth-context__section_uw4_vhr_2qb}

The Policy Input and Policy Conditions tabs display the inputs and conditions of the policy selected in the Allow Policy or Deny Policy
field. These tabs serve as a reference, but can't be used to change the policy inputs or conditions. To modify your policy, navigate to the policy using the reference icon (![Reference icon]()) next to the Allow Policy or Deny Policy field.  
This example shows a pre authentication policy context record configured to deny access by default. The context uses a policy called Deny access policy. That policy has a set of inputs and conditions that are displayed in the Policy Input and Policy Condition tabs.  
Note:  
* Only IP-Based filters, Location based filters, or Trusted Mobile App filter can be used in the pre authentication policy context.
* Whenever there's a pre authentication set with non absolute conditions or filter criteria, you're displayed with an error message stating that the policy or context can't be configured. Validate all the inputs for the pre authentication context before executing it to the instance. For example: If the administrator is outside the trusted network and configures pre authentication context with IP ranges, if the IP
  ranges are mismatched with the current session of the admin, the admin is blocked.

{#pre-auth-context__ul_ufh_hdr_12c}
Figure 1. Pre authentication policy context form

