Zum Inhalt springen

Policy tester

The policy tester answers “what would happen if this user signed in to this application, from this address, at this time?” — without anyone signing in. It runs the very same decision code as a real sign-in and shows every step: which global rule matched and why the ones above it did not, which application rule applied, whether MFA is asked and with which method, and exactly what the application would receive.

Open Access ▸ Policies ▸ Policy Tester (or Policy Tester on the policy table). An application’s page also links to it.

  1. Username — the account to test. Local and directory accounts both work.

  2. Application — the application the sign-in is for. Disabled applications are listed too, marked as such.

  3. Client IP (end user) — optional. The end user’s address as the application reports it: for RADIUS the Calling-Station-Id, for single sign-on the browser’s address, for the Verify API the client_ip your server sends. Leave it empty to test a request without an address — then only rules with Any source can match, and the country is Unknown.

  4. Simulated time — optional. Used for the When condition and for validity periods, in the system time zone. Empty = the current server time.

  5. Last MFA (minutes ago) — offered when the application can remember a recent MFA (an MFA cache, or a single sign-on session). Leave it empty for “no earlier MFA”.

  6. Approval IP (simulate) — optional. The address a push of this sign-in would be approved from; the tester applies the approving-device country check to it.

  7. Click Run Test.

The headline gives the decision — Allow, Allow after MFA or Deny — and the rule that decided it, with a link to open that rule.

Authentication Details shows the MFA side: whether MFA is on for this application and why (on, off by the application’s Settings, or off by a named application rule), the user’s enrolled provider and when it was enrolled, and whether that method is usable here:

StatusMeaning
UsableEnabled by the administrator and supported by this application.
Provider disabledThe administrator turned this provider off.
Not supported hereThis application’s template can’t deliver it.
Not enrolledThe user has no MFA method yet.

Resolved Context shows what the decision was made with: the user and their groups, the application and how it reports the client address, the client IP and the time used. For the client IP it shows the country and network located by GeoIP, which database answered, and whether a Country condition actually needed it.

Evaluation Trace lists every global rule in order, with each condition marked pass or fail:

MarkMeaning
MatchAll conditions passed — this rule decided.
SkipA condition failed (validity, application, time, group, source or country); the failing one is marked.
DisabledThe rule is switched off.
Not reachedA rule above already decided.

The trace names the objects that made a condition pass — for example the network object holding the IP, or the country list holding the country.

Application Rules shows the same trace for the application’s rules. When the global policy denies, it says the application rules were not evaluated.

Sent to application ends the result: what the application would receive for this user if the sign-in succeeds, computed by the protocol’s own code:

  • RADIUS — the reply attributes of the matched rule, in order, or Plain Access-Accept — no reply attributes.
  • SAML — the NameID and the attribute statement, each value with its source (application rule, template default, user field, groups…). A NameID the user has no value for is flagged: that sign-in would be refused.
  • OIDC — the id_token’s claims, including those set when the token is issued.

Nothing is shown here when access is not granted.

  • Before publishing a rule change — test the users who should and should not be affected.
  • When a user is refused — copy the address and time from the Access log and see which rule refused them. Remember that the tester evaluates the policy as it is now.
  • When a device gets the wrong privilege level — check the Sent to application block.
  • Before switching on a Country rule — test a few real addresses from the logs to see how they locate.

Running the tester needs the View permission of the Access policy section; choosing an application also needs View on Applications.