| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/cloudflare-one/insights/dex/rules/ | [Back] [Original] |
DEX rules allow you to create and manage testing policies for targeted user groups within your fleet (all devices with the Cloudflare One Client installed and connected to your Zero Trust organization). 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.
Use DEX rules to scope a test to a specific group within your fleet for more precise problem detection and resolution.
To create a rule:
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.
| Selector | Description |
|---|---|
| User email | For specifying user emails. |
| User group emails | For specifying group emails. |
| User group IDs | For specifying group IDs. |
| User group names | For specifying a group name. |
| Operating systems | For specifying operating systems. |
| Operating system version | For specifying an operating system version (use Operator in) or versions (use Operator is). |
| Managed network | For specifying users accessing the network from the office (managed network) compared to those accessing remotely. |
| SAML attributes | For specifying a value from the SAML Attribute Assertion. |
| Colos | For specifying a Cloudflare data center (colocation) that users are connected to. |
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:
Note
It may take up to 10 minutes for newly updated settings to propagate to devices.
To view which tests a rule is being applied to:
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:
| Web Proxy Viewer | New URL | Original Page |