On this page

Configure a user identification policy

This guide describes how to use the Policies API (opens new window) to manage user identification policies in your org. Use a System Log query to monitor policy evaluation events.

Notes:


What you need


About user identification policies

A user identification policy controls the pre-identification experience on the Sign-In Widget for an app. It applies before a user enters their username. The policy controls whether the Sign in with Okta FastPass and Sign in with a passkey buttons appear on the Sign-In Widget.

Previously, both buttons were org-wide authenticator settings. The user identification policy moves this control to a per-app policy, so that you can show or hide each button for each app.

Relationship to app sign-in policies

Each user identification policy maps one-to-one to an app sign-in policy. Okta creates, maps, clones, and removes the user identification policy automatically with its app sign-in policy. You can't create, activate, update, deactivate, remove, map, or clone a user identification policy directly.

If you call one of those operations directly, Okta returns the following error: This operation isn't supported in the user identification policy.

You manage only the rules on the policy. You can create, update, and delete rules, but you can't deactivate or remove the default rule.

To apply different button settings to different apps, create separate sign-in policies and assign apps to each one. Each sign-in policy automatically gets its own user identification policy with its own default rule. See Configure app sign-in policies.

Note: The user identification policy is closely related to the device signal collection policy, which also works as part of your app sign-in policies.

Rule conditions and settings

User identification policy rules support platform (opens new window) and network (opens new window) conditions only.

Each rule uses the following properties in actions.userIdentification.settings.securityMethods to show or hide each button:

  • fastpass.showSignInButton: Controls the Sign in with Okta FastPass button.
  • passkey.showSignInButton: Controls the Sign in with a passkey button.

Set each property to one of the following values:

  • ALWAYS: Show the button on the Sign-In Widget.
  • NEVER: Hide the button on the Sign-In Widget.

Keep the following restrictions in mind when you set these properties:

  • You can only set fastpass.showSignInButton to ALWAYS when Okta Verify is configured and Okta FastPass is enabled. Otherwise, Okta returns the following error: This rule can't be saved. Okta FastPass isn't enabled for this org. To save this rule, enable Okta FastPass in the Okta Verify authenticator.
  • You can only set passkey.showSignInButton to ALWAYS when the Passkey (FIDO2 WebAuthn) authenticator is active.
  • While any rule has passkey.showSignInButton set to ALWAYS, you can't set the Passkey (FIDO2 WebAuthn) authenticator method settings.residentKeyRequirement to DISCOURAGED.

How user identification works at sign-in

The following diagram shows how Okta evaluates the user identification policy to decide whether to show a sign-in button, such as Sign in with Okta FastPass or Sign in with a passkey.

Sequence diagram showing Okta resolve the app sign-in policy, find the linked user identification policy, and evaluate its rules against platform and network conditions. Okta then checks the global gate against the configured authenticator and returns the sign-in button decision to the Sign-In Widget.

How to configure a user identification policy

To configure a user identification policy in your org, follow these steps:

  1. Find the user identification policy for your app sign-in policy.
  2. Create a user identification policy rule to show or hide the button.
  3. Update a user identification policy rule when you need to change the setting.
  4. Review the System Log to confirm that the policy is evaluated.

Find the user identification policy

Use the List all policies (opens new window) endpoint to find the user identification policy for your app.

  1. Set the type query parameter to USER_IDENTIFICATION.
  2. Send the GET /api/v1/policies?type=USER_IDENTIFICATION request.
  3. In the response, find the policy for your app and copy its id into a text editor.

List user identification policies response example

[
    {
        "type": "USER_IDENTIFICATION",
        "id": "policyId",
        "status": "ACTIVE",
        "name": "Policy name",
        "description": "Policy description",
        "priority": 1,
        "system": false,
        "conditions": null,
        "created": "2025-04-25T17:35:02.000Z",
        "lastUpdated": "2025-04-25T17:35:02.000Z",
        "_links": {
            "self": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}",
                "hints": {
                    "allow": [
                        "GET"
                    ]
                }
            },
            "rules": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/rules",
                "hints": {
                    "allow": [
                        "GET",
                        "POST"
                    ]
                }
            },
            "mappings": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/mappings",
                "hints": {
                    "allow": [
                        "GET"
                    ]
                }
            }
        }
    }
]

Find the policy from its app sign-in policy

You can also find a user identification policy from its mapped app sign-in policy. Each app sign-in policy (ACCESS_POLICY) includes a userIdentificationPolicy link to its linked user identification policy.

  1. Set the type query parameter to ACCESS_POLICY.
  2. Send the GET /api/v1/policies?type=ACCESS_POLICY request.
  3. In the response, find the app sign-in policy for your app.
  4. Follow the _links.userIdentificationPolicy.href to the linked user identification policy.

List app sign-in policies response example

[
    {
        "type": "ACCESS_POLICY",
        "id": "appSignOnPolicyId",
        "status": "ACTIVE",
        "name": "App sign-in policy",
        "description": "App sign-in policy description",
        "priority": 1,
        "system": false,
        "conditions": null,
        "created": "2025-04-25T17:35:02.000Z",
        "lastUpdated": "2025-04-25T17:35:02.000Z",
        "_links": {
            "self": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{appSignOnPolicyId}",
                "hints": {
                    "allow": [
                        "GET",
                        "PUT",
                        "DELETE"
                    ]
                }
            },
            "rules": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{appSignOnPolicyId}/rules",
                "hints": {
                    "allow": [
                        "GET",
                        "POST"
                    ]
                }
            },
            "mappings": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{appSignOnPolicyId}/mappings",
                "hints": {
                    "allow": [
                        "GET",
                        "POST"
                    ]
                }
            },
            "userIdentificationPolicy": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}",
                "hints": {
                    "allow": [
                        "GET"
                    ]
                }
            },
            "deactivate": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{appSignOnPolicyId}/lifecycle/deactivate",
                "hints": {
                    "allow": [
                        "POST"
                    ]
                }
            }
        },
        "_embedded": {
            "resourceType": "APP"
        }
    }
]

Review the default rule

Each user identification policy includes a default rule. This is a system rule (system: true) with the lowest priority and no conditions, so it matches any request that no other rule matches. Until you set a value, actions.userIdentification.settings is empty and Okta hides the buttons, the same as showSignInButton: NEVER. You can update the default rule, but you can't deactivate or remove it. Use the List all policy rules (opens new window) endpoint to review it.

  1. In the path parameters, set the user identification policy id as the policyId.
  2. Send the GET /api/v1/policies/{policyId}/rules request.

List user identification policy rules response example

[
    {
        "id": "ruleId",
        "status": "ACTIVE",
        "name": "Catch-all Rule",
        "priority": 99,
        "created": "2025-04-25T17:35:02.000Z",
        "lastUpdated": "2025-04-25T17:35:02.000Z",
        "system": true,
        "conditions": null,
        "actions": {
            "userIdentification": {
                "settings": {}
            }
        },
        "type": "USER_IDENTIFICATION",
        "_links": {
            "self": {
                "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/rules/{ruleId}",
                "hints": {
                    "allow": [
                        "GET",
                        "PUT"
                    ]
                }
            }
        }
    }
]

Create a user identification policy rule

In this example, create a rule that shows the Sign in with Okta FastPass and Sign in with a passkey buttons for users on the WINDOWS desktop platform from any network.

Use the Create a policy rule (opens new window) endpoint to create a user identification policy rule.

Create your own POST request body or copy the example request and input your values.

  1. In the path parameters, set the user identification policy id as the policyId.
  2. Set the following request body parameters:
    • Enter a value for name.
    • Set the type as USER_IDENTIFICATION.
    • Set conditions.network.connection as ANYWHERE.
    • Include WINDOWS as a DESKTOP platform condition.
    • Set actions.userIdentification.settings.securityMethods.fastpass.showSignInButton as ALWAYS.
    • Set actions.userIdentification.settings.securityMethods.passkey.showSignInButton as ALWAYS.
  3. Send the POST /api/v1/policies/{policyId}/rules request.

Create a user identification policy rule request example

{
    "name": "User Identification Rule",
    "conditions": {
        "network": {
            "connection": "ANYWHERE"
        },
        "platform": {
            "include": [
                {
                    "type": "DESKTOP",
                    "os": {
                        "type": "WINDOWS"
                    }
                }
            ]
        }
    },
    "actions": {
        "userIdentification": {
            "settings": {
                "securityMethods": {
                    "fastpass": {
                        "showSignInButton": "ALWAYS"
                    },
                    "passkey": {
                        "showSignInButton": "ALWAYS"
                    }
                }
            }
        }
    },
    "type": "USER_IDENTIFICATION"
}

Create a user identification policy rule response example

{
    "id": "ruleId",
    "status": "ACTIVE",
    "name": "User Identification Rule",
    "priority": 0,
    "created": "2025-04-25T17:35:02.000Z",
    "lastUpdated": "2025-04-25T17:35:02.000Z",
    "system": false,
    "conditions": {
        "network": {
            "connection": "ANYWHERE"
        },
        "platform": {
            "include": [
                {
                    "type": "DESKTOP",
                    "os": {
                        "type": "WINDOWS"
                    }
                }
            ]
        }
    },
    "actions": {
        "userIdentification": {
            "settings": {
                "securityMethods": {
                    "fastpass": {
                        "showSignInButton": "ALWAYS"
                    },
                    "passkey": {
                        "showSignInButton": "ALWAYS"
                    }
                }
            }
        }
    },
    "type": "USER_IDENTIFICATION",
    "_links": {
        "self": {
            "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/rules/{ruleId}",
            "hints": {
                "allow": [
                    "GET",
                    "PUT",
                    "DELETE"
                ]
            }
        },
        "deactivate": {
            "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate",
            "hints": {
                "allow": [
                    "POST"
                ]
            }
        }
    }
}

Update a user identification policy rule

To change a rule, update it with the Replace a policy rule (opens new window) endpoint. In this example, update the rule to hide the Sign in with Okta FastPass and Sign in with a passkey buttons.

Create your own PUT request body or copy the example request and input your values.

  1. In the path parameters, set the user identification policy id as the policyId and the rule id as the ruleId.
  2. Set actions.userIdentification.settings.securityMethods.fastpass.showSignInButton as NEVER.
  3. Set actions.userIdentification.settings.securityMethods.passkey.showSignInButton as NEVER.
  4. Send the PUT /api/v1/policies/{policyId}/rules/{ruleId} request.

Update a user identification policy rule request example

{
    "name": "User Identification Rule",
    "conditions": {
        "network": {
            "connection": "ANYWHERE"
        },
        "platform": {
            "include": [
                {
                    "type": "DESKTOP",
                    "os": {
                        "type": "WINDOWS"
                    }
                }
            ]
        }
    },
    "actions": {
        "userIdentification": {
            "settings": {
                "securityMethods": {
                    "fastpass": {
                        "showSignInButton": "NEVER"
                    },
                    "passkey": {
                        "showSignInButton": "NEVER"
                    }
                }
            }
        }
    },
    "type": "USER_IDENTIFICATION"
}

Update a user identification policy rule response example

{
    "id": "ruleId",
    "status": "ACTIVE",
    "name": "User Identification Rule",
    "priority": 0,
    "created": "2025-04-25T17:35:02.000Z",
    "lastUpdated": "2025-04-25T17:35:02.000Z",
    "system": false,
    "conditions": {
        "network": {
            "connection": "ANYWHERE"
        },
        "platform": {
            "include": [
                {
                    "type": "DESKTOP",
                    "os": {
                        "type": "WINDOWS"
                    }
                }
            ]
        }
    },
    "actions": {
        "userIdentification": {
            "settings": {
                "securityMethods": {
                    "fastpass": {
                        "showSignInButton": "NEVER"
                    },
                    "passkey": {
                        "showSignInButton": "NEVER"
                    }
                }
            }
        }
    },
    "type": "USER_IDENTIFICATION",
    "_links": {
        "self": {
            "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/rules/{ruleId}",
            "hints": {
                "allow": [
                    "GET",
                    "PUT",
                    "DELETE"
                ]
            }
        },
        "deactivate": {
            "href": "https://{yourOktaDomain}/api/v1/policies/{policyId}/rules/{ruleId}/lifecycle/deactivate",
            "hints": {
                "allow": [
                    "POST"
                ]
            }
        }
    }
}

Review the System Log

Review your System Log events to confirm that your user identification policy is evaluated correctly. Okta includes the rule as a target of the policy.evaluate_sign_on event type. See System Log query and Event Types.

Test your policy with a policy simulation

You can use the policy simulation endpoint to test how your user identification policy rules evaluate for a given user and device context. Do this before you go live. Policy simulation returns the matched rule and the resulting showSignInButton values. See Test your policies with access simulations.

Next steps

  • Configure app sign-in policies: Create more sign-in policies and assign apps to each one. Each sign-in policy automatically gets its own user identification policy. This lets you control the Sign in with Okta FastPass and Sign in with a passkey buttons independently per app or group of apps.
  • Multibrand architecture: If you're building a multibrand experience, assign each app to its own sign-in policy to control the sign-in buttons per brand independently.
  • Device signal collection policies: A closely related policy that also works with app sign-in policies to control the pre-identification experience on the Sign-In Widget.
  • Customize the Sign-In Widget: Further customize the sign-in experience for your app.
  • System Log query: Query System Log events to monitor user identification policy evaluation in production.