Conditional Access

Updated at:

This topic describes the concepts, configuration, and common use cases of conditional access.

Introduction

Conditional access evaluates the context of an access request and produces an access decision. Conditional access policies let you enforce different decisions for different access scenarios. For example, different applications can require different two-factor authentication methods.

Custom policies are available only after you purchase them separately (Conditional Access billing). Default policies are free of charge.

Terms

Term

Description

Custom policy

Lets you define conditions such as the visitor, accessible object, and restrictions. You must purchase the conditional access module separately before you can use this policy.

Default policy

A system policy that your IDaaS EIAM instance provides by default. You can adjust it on the Two-factor authentication page, but you cannot customize its conditions.

Access condition

Conditions such as the accessible object, visitor, and restrictions. An access decision is triggered only when the access context meets all conditions of the policy. Otherwise, the system automatically evaluates the policy with the next lower priority.

Access decision

The decision made after all access conditions are met: allow access, deny access, or require two-factor authentication.

Add a custom conditional access policy

Click Login > Conditional Access Policy > Add Policy to start adding a policy. You can add up to 10 custom policies.

The default policy section of the page already contains a default policy. Its access decision is allow access with two-factor authentication required, its visitors are all accounts/all organizations/all groups, its priority is 1001, and it is enabled.

Step 1: Basic information

  • Policy Name: Enter a name for the policy. The name is displayed only in the console and is not visible to end users.

  • Priority: Each access request triggers only one conditional access policy. Set priorities for flexible access control. Enter a value from 1 to 100. A smaller value indicates a higher priority.

Step 2: Accessible object

The accessible object is the application protected by the policy. You can select All Applications or Specific Application.

  • All Applications: This condition is met when any application is accessed.

  • Specific Application: This condition is met only when the specified application is accessed. You can select the IDaaS Application Portal or any application that you created in the instance.

Step 3: Visitor

The visitor is the account that initiates the access request. You can select All Accounts, All Groups, or Specific Account.

  • All Accounts: Any account meets this condition.

  • All Groups: This condition is met as long as the account belongs to any group.

  • Specific Account: Only the specified accounts meet this condition. You can select accounts directly, or by organization or group.

In addition, you can use Exclude Visitors to specify excluded accounts that do not meet this condition, so they do not trigger this policy.

Click Set to configure exclusion rules. You can exclude accounts directly, or by organization or group. When you exclude an organization, none of its accounts can trigger the policy, even if they are individually specified in the visitor scope above.

Step 4: Restrictions

A network scope is an entity that you can specify separately. It lets you adjust IP addresses dynamically without changing other configurations. Specify network scopes on the Network scope page. You can select No network scope restrictions or Specific network scope.

  • No network scope restrictions: The visitor meets this condition from any network scope (IP address).

  • Specific network scope: This condition is met only when the access request comes from a specified network scope (IP address).

Step 5: Access decision

When an access request from an account meets all conditions of a policy, the policy is triggered. IDaaS then enforces the access decision for the request: allow access, deny access, or require two-factor authentication.

  • Allow access: IDaaS allows the access request when the policy is triggered. You can then use more flexible settings to further improve the security or convenience of access:

    • Select Two-Factor Authentication Mode: Controls whether two-factor authentication is still required.

      • Do Not Require Two-Factor Authentication: The account does not need to complete two-factor authentication again and can access the application directly.

      • Custom Two-Factor Authentication: The account must complete two-factor authentication with a specified method. For example, you can require a stricter method for highly sensitive applications.

    • Select Two-Factor Authentication Methods: Select the two-factor authentication methods that the account can use. You can select multiple methods, and the account must complete two-factor authentication with one of them.

    • Automatic Two-Factor Authentication Pass-Through: If an account is already logged on and the current session meets the conditional access policy for this request, the account can skip two-factor authentication. For example, Applications A and B share the same conditional access policy that requires an SMS verification code. After the account accesses Application A, it can access Application B without authenticating again.

    • Automatic Two-Factor Authentication Pass-Through Validity Period: Set a validity period for this feature so that it is not misused and access security is protected.

  • Deny access: IDaaS denies the access request when the policy is triggered.

Important

When Access Policy is set to deny access, an account that triggers the policy cannot access the application. If you set the IDaaS Application Portal to deny access, users cannot log on to the IDaaS Application Portal. Proceed with caution. After you add or modify a policy, the policy takes about 3 minutes to take effect.

Delete a custom conditional access policy

You can manually delete a custom conditional access policy. Before you delete a policy, disable it. To avoid affecting normal user access, monitor user access after you disable the policy and delete it only after you confirm that no issues occur. Deleted policies cannot be recovered.

Default conditional access policy

The default conditional access policy has the lowest priority. It permanently applies to all accounts and applications, and you cannot adjust its scope or restrictions. To enable or disable two-factor authentication, or to change the authentication methods, go to the Two-factor authentication page.

Use cases

Scenario

Conditional access policy

Policy configuration

Description

Allow logon to IDaaS (or an application) only from office IP addresses

Policy 1

  • Priority: 1

  • Application scope: All

  • Visitor scope: All

  • Client network scope: Your office IP

  • Access decision: Allow access

Higher priority. Access is allowed when the IP condition is met.

Policy 2

  • Priority: 2

  • Application scope: All

  • Visitor scope: All

  • Client network scope: No restrictions

  • Access decision: Deny access

Lower priority. Access is denied when Policy 1 is not triggered.

A specific application requires Advanced: secure sign-in with WebAuthn for two-factor authentication

Policy 3

  • Priority: 1

  • Application scope: Specify the application to protect

  • Visitor scope: All

  • Client network scope: No restrictions

  • Access decision: Allow access

    • Select Two-Factor Authentication Mode: Custom Two-Factor Authentication, select WebAuthn

    • Automatic Two-Factor Authentication Pass-Through: Either option

When the specified application is accessed, the user must complete two-factor authentication with WebAuthn (such as a local fingerprint or face recognition).

Require two-factor authentication for every access to a highly sensitive application

Policy 4

  • Priority: 1

  • Application scope: Specify the application to protect

  • Visitor scope: All

  • Client network scope: No restrictions

  • Access decision: Allow access

    • Select Two-Factor Authentication Mode: Custom Two-Factor Authentication

    • Automatic Two-Factor Authentication Pass-Through: Off

Two-factor authentication is required for every single sign-on to the application.

Different access requirements for accounts in group A and group B

Policy 5

  • Priority: 1

  • Application scope: All

  • Visitor scope: group A

  • Client network scope: No restrictions

  • Access decision: Allow access

The conditional access policy for group A.

Policy 6

  • Priority: 1

  • Application scope: All

  • Visitor scope: group B

  • Client network scope: No restrictions

  • Access decision: Allow access

    • Select Two-Factor Authentication Mode: Custom Two-Factor Authentication

The conditional access policy for group B.