Create IP filter criteria

  • Release version: Australia
  • Updated March 12, 2026
  • 2 minutes to read
  • Define which IP addresses or IP ranges are permitted to connect to your ServiceNow instance via the SQL API ODBC or JDBC driver. By default, all incoming IPs are blocked until you configure the SQL API Authentication Policy with an IP filter and policy condition to allow access only from trusted client machines.

    Before you begin

    • Consult your network team to identify the IP address range for your ODBC or JDBC client machines. Depending on your network configuration and where the client machine is located in your network, it may be necessary to allow the external IP address rather than the internal IP address.
    • Complete the previous configuration steps: creating a Service Account and configuring Access Control Lists (ACLs).

    Role required: admin

    About this task

    This is the third and final configuration procedure for enabling SQL API access on your instance. After completing this task, your Service Account will be able to connect to ServiceNow via ODBC or JDBC from the specified IP addresses and query the tables for which access has been granted.

    By default, all incoming IP addresses are blocked for SQL API connections. You must explicitly define which IP addresses or IP ranges are permitted to connect. This ensures that only trusted client machines can access your ServiceNow data through the SQL API.

    Note:
    For additional details on IP filtering, refer to the IP filter documentation in the ServiceNow Platform Security guide.

    Procedure

    1. Navigate to the All > Adaptive Authentication > Authentication Policies > All Policies.
    2. Search for SQL API Authentication Policy and open it.
    3. From the Policy Inputs tab, select New.
      UI screen showing SQL API Authentication Policy.
    4. A screen appears asking "What kind of Policy Input (Filter Criteria) do you want to create?" Select IP Filter Criteria.
    5. Provide a Name and Description to identify this IP network or filter group.
    6. From the IP Range tab, double-click (or use the keyboard shortcut) Insert a new row.
      UI screen example showing IP filter criteria.
    7. Define the specific IP addresses or IP address ranges your ODBC/JDBC client machines that should be allowed to connect to your ServiceNow instance via the SQL API drivers.

      Enter the outbound IP address, not the internal IP address. Your IT team should be able to provide this information. BI tools and analytics platforms connect from these machines to your to ServiceNow instance.

    8. Select Submit.
    9. Go to the Policy Conditions tab and select New.
      After defining the IP filter criteria and range, add a Policy Condition to the SQL API Authentication Policy to enforce the IP restriction for ODBC or JDBC access.
    10. Provide a Name and Description of this Policy condition.
    11. Create a filter condition.
      A filter condition is a logical combination of policy inputs (filter criteria) to evaluate authentication requests. For example, choose the name of the IP Filter Criteria created earlier and give a condition as shown in the following example diagram.UI screen example showing how to create a filter condition.
    12. Select Submit.

    Result

    You have successfully configured IP filtering for SQL API access. Your ServiceNow instance will now accept SQL API connections only from the specified IP addresses or IP ranges. All other connection attempts will be blocked by default.

    Your Service Account can now connect to ServiceNow via ODBC or JDBC from the permitted client machines and query the tables for which both egress_sql and read ACLs have been configured.