Zetect Admin Guide Back to zetect.inSwitch portal ⇄

Managing Authentication Rules

Decide how each person signs in, based on who they are and how risky the sign-in looks. Each rule picks the provider that checks the first factor and, optionally, the second factors to ask for. Rules are checked from top to bottom, and the first match wins.

Prerequisite

The providers and MFA factors you want to use. See Configuring Authentication Providers and Managing MFA Factors.

Required permission

Auth Rules – View in an administrator group to see rules, and Auth Rules – Add, Edit or Delete to change them.

Adding an auth rule

Auth Rules page

To add an auth rule:

  1. Go to Authentication → Auth Rules.
  2. Select Add Rule.
  3. Enter a Rule Name.
  4. Under IF Conditions, add a condition group and pick a condition type: Attribute, Group or Risk Level.
  5. Complete the condition:
    • Attribute – choose the attribute, an operator and a value.
    • Group – pick a group.
    • Risk Level – pick a level.
  6. Optionally, select add condition (OR) to add an alternative inside the group, or Add Group to join another group with AND or OR. Leave the conditions empty to match all users.
  7. Under THEN, choose the 1st Factor provider.
  8. Optionally, choose one or more 2nd Factor MFA factors.
  9. Select Add Rule.

The rule is added above the Fallback rule and shown as a plain sentence, for example "If Source equals AD → sign in with Corporate AD, then confirm with Authenticator". It applies from the next sign-in.

Auth rule fields

FieldDescription
Rule NameA name for the rule, for example "Admin MFA Rule".
AttributeTests an identity attribute with an operator: equals, does not equal, contains, does not contain, starts with or does not start with. Case is ignored.
GroupMatches members of the chosen group.
Risk LevelMatches when the sign-in risk is the chosen level: LOW, MEDIUM, HIGH or CRITICAL, as scored by Behaviour Risk.
Condition groupsConditions within a group are OR'd: the group matches if any condition is true. Groups are joined with AND or OR.
1st FactorThe authentication provider that checks the first factor: Zetect Store, an LDAP directory or an external IdP. If none is selected, the user signs in with username plus a one-time code from the 2nd Factor.
2nd FactorThe MFA factors to ask for after the first factor. Only factors turned on under MFA Factors are offered. At sign-in, the user chooses one of the factors they have enrolled.
FallbackThe built-in rule that always sits last and applies to everyone not matched above. It can't be moved or deleted, and it can't be turned off.

Ordering and turning rules on or off

To change the order or turn a rule off:

  1. Go to Authentication → Auth Rules.
  2. Drag a row by its handle to move it. The first matching rule wins, so put specific rules above general ones.
  3. Use the switch on a row to turn a rule on or off. A disabled rule is dimmed and skipped.

Editing and deleting a rule

To edit or delete a rule:

  1. Go to Authentication → Auth Rules.
  2. To change a rule, select Edit on its row, make your changes and select Save changes.
  3. To delete a rule, open its row menu, select Delete rule and confirm with Delete.

After a rule is deleted, the people it matched fall through to the next matching rule, or to the Fallback rule.

Example — Directory users

Rule NameAD Auth Rule
ConditionAttribute · Source equals AD
1st FactorCorporate AD
2nd FactorAuthenticator