Application rules
The global policy decides whether a user may sign in. Application rules decide how an allowed sign-in is served: whether MFA is asked, and what the application receives on success — RADIUS reply attributes, SAML attributes, OIDC claims or Verify API answer attributes. Application rules have no Allow or Deny.
Open an application under Access ▸ Applications and go to its Rules tab.
How they are evaluated
Section titled “How they are evaluated”- Each application has one ordered list of rules, evaluated top to bottom; the first matching rule wins.
- The list always ends with the application’s Default rule. It has no conditions and no validity, and cannot be deleted, moved or disabled — only its MFA switch, attributes and description can change. A rule list with no other rules simply means every allowed request gets the Default rule.
- Application rules are reached only after a global Allow. When the global policy denies, they are not evaluated at all.
- Disabled rules are skipped.
A new application starts with a Default rule that has MFA on and the attributes its template recommends (if any).
Conditions
Section titled “Conditions”An application rule has the same conditions as a global rule, minus Application:
| Condition | Matches when |
|---|---|
| Who | the user is in any of the selected user groups (or Any) |
| Source | the end user’s IP is in any of the selected network objects (or Any) |
| Country | the end user’s IP is located in a country of any selected country list (or Any) |
| When | the time is inside the selected time range (or Any) |
| Validity | the current time is between Valid from and Valid until |
Every condition must match; inside a condition any item matches. If the application’s device does not send the end user’s address, the Source card is locked to Any (“This device does not send the client IP — Source can only be Any.”) and a Country condition sees every request as Unknown.
A rule’s Require MFA switch decides whether users it matches complete MFA. The effective MFA is:
application Settings Require MFA AND the matched rule’s Require MFA
So the application-wide switch in the Settings tab wins: while it is off, no rule asks for MFA, and the rules’ MFA switches are shown greyed with “MFA is disabled for this application in Settings”.
Typical uses of a rule with MFA off:
- Service accounts — a monitoring account that logs in to switches over RADIUS, in its own group.
- Trusted network — staff on the internal management network skip the second factor; everyone else gets it.
Attributes
Section titled “Attributes”The Attributes block of a rule holds what is sent to the application when the sign-in succeeds. Its title follows the application’s protocol:
| Protocol | Block | Where the values go |
|---|---|---|
| RADIUS | Reply attributes | In the Access-Accept, in the order listed. The same attribute may repeat. No attributes = a plain Access-Accept. |
| SAML | SAML attributes | Added to the assertion. A name given several times = several values. A row of the application’s Settings → Attributes with the same name is replaced. |
| OIDC | Claims | Added to every id_token and the userinfo answer, whatever scopes the client asks for. A name given several times = a list. |
| Verify API | Answer attributes | Returned in the attributes object of an allow answer. A name given several times = a list. |
Use Add from the template to pick from the attributes the application’s template suggests, or Custom attribute to add any other. For RADIUS, a custom attribute comes from the RADIUS dictionary (standard attributes and vendor-specific ones), and its value is checked against the dictionary type. For SAML, OIDC and the Verify API, template attributes a rule leaves out are still sent with their template default.
Values may use the template’s placeholders, filled in when the answer is sent.
Examples:
| Device | Group | Attribute |
|---|---|---|
| FortiGate VPN | VPN admins | Fortinet-Group-Name = vpn-admins |
| Cisco IOS XE | Network admins | Cisco-AVPair = shell:priv-lvl=15 |
| MikroTik | Network admins | Mikrotik-Group = full |
| Grafana (OIDC) | DevOps | claim role = Admin |
Creating a rule
Section titled “Creating a rule”-
On the Rules tab click Add rule, or use a row’s insert actions to place it.
-
Give it a name (a suggestion is offered from the groups, sources, time range and MFA setting), an optional description, and leave it Enabled.
-
Set Require MFA on or off.
-
Under the match conditions, switch off Any where you need a condition and pick the objects.
-
Add attributes if the application needs them, then save. The rule is saved immediately from the editor.
-
Drag rows to reorder. The Default rule always stays last.
Use the policy tester to see, for a given user, address and time, which global rule allows, which application rule matches, whether MFA is asked, and exactly what would be sent to the application.
Objects in use
Section titled “Objects in use”Groups, network objects, country lists and time ranges referenced by application rules cannot be deleted; the refusal lists the rules together with their application. Deleting an application deletes its rules with it.