Skip to main content

7 docs tagged with "expression"

View all tags

Ensure unique email addresses

By default, authentik does not require email addresses to be unique. If you want to enforce uniqueness, use an expression policy during enrollment or profile-edit flows.

Ensure unique usernames regardless of case

By default, authentik compares usernames case-sensitively when checking whether a username is already taken, so user1 and User1 can exist as two separate users. The Identification stage matches identifiers case-insensitively by default, so when both users exist, entering either username finds only one of them.

Expression Policies

Expression policies let you write custom Python for cases where the built-in policy types are not enough.

Managing flow context keys

Flow context can be read and updated from an Expression policy through context"flow_plan"].context. For more information about the active plan, see [Flow Planner.