Skip to content

Rules

DEX rules allow you to create and manage testing policies for targeted user groups within your fleet. After creating a rule, you can use it to define the scope of a test to specific groups such as departments (like finance or sales), devices, and/or users. You can apply and reuse rules on your desired tests.

DEX rules are ideal for admins who want to define the scope of a test to a specific group within their fleet to allow for more precise problem detection and resolution.

Create a rule

To create a rule:

  1. In Zero Trust, go to DEX > Rules.
  2. Select Add a rule.
  3. Give your rule a name and build your desired expressions.
  4. Select Create rule to finalize your rule.

Selectors

Selectors are required categories in a DEX rule expression that define a group within a fleet. The selector(s) you have defined in a rule will determine which group a test will impact.

Review the available selectors and their scope in the following list.

SelectorDescription
User emailFor specifying user emails.
User group emailsFor specifying group emails.
User group IDsFor specifying group IDs.
User group namesFor specifying a group name.
Operating systemsFor specifying operating systems.
Operating system versionFor specifying an operating system version (use Operator in) or versions (use Operator is).
Managed networkFor specifying users accessing the network from the office (managed network) compared to those accessing remotely.
SAML attributesFor specifying a value from the SAML Attribute Assertion.
ColosFor specifying a Cloudflare data center location users are connected to.

Add a rule to a test

After you have created a rule, you can add it to a test. If you do not add a rule to a test, the test will run on your entire device fleet.

To add a rule to a test:

  1. In Zero Trust, go to DEX > Tests.
  2. Choose an existing test and select Edit, or select Add a test to make a new test.
  3. Under Select DEX rules, select the rule you would like to apply.
  4. Select Save test for an existing rule or Add rule for the new test.

To view which tests a rule is being applied to:

  1. In Zero Trust, go to DEX > Rules.
  2. Select a rule > Edit.
  3. Select the DEX tests tab and review the list of tests that include your selected rule.

Create a test using a rule

You can create a new test from the DEX test dashboard as described above or directly from the DEX rules dashboard.

To create a new test using a rule from DEX rules:

  1. In Zero Trust, go to DEX > Rules.
  2. Select a rule > Edit.
  3. Select the DEX tests tab.
  4. You will be able to review all the tests that currently include this rule. To create a new test, select Create a test using this rule.
  5. Enter all required information, making sure that the box next to your rule name is checked.
  6. Select Add test.
  • DEX HTTP test - Assess the accessibility of a web application.
  • DEX Traceroute test - Measure the network path of an IP packet from an end-user device to a server.