witty-noon-28853
07/31/2025, 8:42 AMbrief-egg-61061
07/31/2025, 8:42 AMbrief-egg-61061
07/31/2025, 8:42 AMselfservice.flows.settings.required_aal
or session.whoami.required_aal
to highest_available
or aal2
in your configuration file or through the Console. This is where you control whether and when 2FA is enforced—not in the identity schema itself [Step-up authentication](https://www.ory.sh/docs/kratos/mfa/step-up-authentication) [Configure multi-factor authentication in Ory Kratos](https://www.ory.sh/docs/kratos/self-hosted/mfa). The identity schema only tells Ory which traits to use for authentication, recovery, or verification, but does not enforce the use of 2FA. Enforcement is always a configuration-level concern.