Use Identity Provider Attribute as Filter Criteria for SAML

  • Release version: Australia
  • Updated March 12, 2026
  • 2 minutes to read
  • Use the Identity Provider (IDP) attribute from the Security Assertion Markup Language (SAML) response as a filter criteria for authentication policy.

    Before you begin

    Role required: adaptive_auth_admin

    You can create session access policy using policy context (Pre-Authentication, Post Authentication, multi-factor authentication) and filter criteria (Role, Group, IP, Location) with policy inputs and conditions.

    The following procedure shows steps to configure the IdP attribute from the SAML response as a policy input to control authentication in the Post Authentication Context, Multi-factor authentication (MFA) Context, and Zero Trust - Policy based session access.

    The Okta IDP attributes are as displayed in the following screenshot. You should set the Use in Adaptive Authentication as true to use it in the Post Authentication Context, Multi-factor authentication (MFA) Context, and Zero Trust - Policy based session access policies.

    Okta Idp attributes
    Note:
    Policies in the post-authorization, MFA, Zero Trust - Policy based session access execute after the users enter the credentials or SSO response.

    Procedure

    1. Use of IDP attribute in Post Authentication Policy Context.
      Example: Configuring to enable logins from the Okta IDP attributes if the device is trusted.
      1. Navigate to All > Adaptive Authentication > Auth Policy Contexts > Post Authentication Policy Context..
      2. Select Allow Policy and open the policy record.
      3. In the Policy Input, create the Policy Input and Policy Condition.
        • Policy Input: Add device_trusted-okta.

          Allow Policy - Post authentication

        • Policy Conditions: device_trusted-okta is trusted and Identity Provider is okta.

          Policy input condition

        Based on this configuration, when the device is trusted from the Okta (IdP), then the user is authenticated to the instance.

        For more information on how to create Post Authentication Context with Policy and Condition, see Post-authentication context.

    2. Use of IDP attribute in MFA Policy Context.
      Example: Configuring to enable MFA from the Okta IDP attributes if the device isn’t trusted.
      1. Navigate to All > Adaptive Authentication > Auth Policy Contexts > MFA Authentication Policy Context..
      2. In the Policy Input, create the Policy Input and Policy Condition.
        • Policy Input: Add device_trusted-okta.

          Policy input

        • Policy Conditions: device_trusted-okta is not_trusted and Identity Provider is okta.

          MFA IDP Filter condition

        Based on this configuration, when the device is not-trusted from the Okta (IdP), then the user shown a second factor authentication to log in to the instance.

        For more information on how to create MFA Context with Policy and Condition, see Multi-factor Authentication context.

    3. Use of IDP attribute in Zero Trust - Policy based session access.
      Example: Configuring to reduce the privilege of Itil role from Okta IDP attributes if the device isn’t trusted.
      1. Navigate to All > Zero Trust Access > Session Access Role Configurations.
      2. Create a Session Access role configuration.
      3. In the Policy Input, create the Policy Input and Policy Condition.
        • Policy Input: Add device_trusted-okta and has itil role.

          Session Access - IDP Filter

        • Policy Conditions: device_trusted-okta is not_trusted, Identity Provider is okta, and has itil role is true.

          Session Access - IDP condition

        Based on this configuration, when the itil user using a device that is not-trusted from the Okta (IdP), then the user's privileges are reduced for the logged in session.

        For more information on how to create Zero Trust - Policy based session access with Policy and Condition, see Zero Trust Access (ZTA).