Account Lockdown
authentik: 2026.2.0+Enterprise
Account Lockdown is a security feature that allows administrators to quickly secure a user account during emergencies, such as suspected compromise or unauthorized access. Users can also lock down their own account if they believe it has been compromised.
What Account Lockdown does
When triggered, Account Lockdown performs the following actions (all configurable):
- Deactivates the user account: The user can no longer log in
- Sets an unusable password: Invalidates the user's password
- Terminates all active sessions: Immediately logs the user out of all devices and applications
- Revokes all tokens: Invalidates API, app password, recovery, and verification tokens
- Creates an audit event: Records the lockdown with the provided reason (can trigger notifications)
Account Lockdown cannot be triggered on the anonymous user or internal service accounts.
Prerequisites
- A Lockdown Flow must be configured on your Brand (System > Brands)
- The flow must contain an Account Lockdown Stage (Enterprise)
- For self-service lockdown, configure a Completion Flow on the stage or customize the self-service message
The default lockdown flow
authentik includes a default lockdown flow (default-account-lockdown) with:
| Order | Stage | Purpose |
|---|---|---|
| 0 | Prompt Stage | Warning message and reason input |
| 10 | Account Lockdown Stage | Executes lockdown actions |
| 20 | Prompt Stage (admin only) | Shows results |
A separate completion flow (default-account-lockdown-complete) displays a message after self-service lockdowns.
Use the default flow
- Navigate to System > Brands.
- Edit your brand and set Lockdown flow to
default-account-lockdown.
Create a custom flow
- Navigate to Flows and Stages > Flows and create a flow with:
- Designation: Stage Configuration
- Authentication: Require authenticated user
- Add a Prompt Stage for warnings and reason collection
- Add an Account Lockdown Stage
- Optionally add a results Prompt Stage (with policy to hide for self-service)
- Set this flow as Lockdown flow on your Brand
For stage configuration details, see the Account Lockdown Stage documentation.
Trigger an Account Lockdown
From the Users list
- Navigate to Directory > Users.
- Select one or more users using the checkboxes.
- Click Account Lockdown.
- Review the warning, enter a reason (recorded in the audit log), and click Continue.
- The results screen shows success or failure for each user.
If the bulk selection includes your own account and the stage deletes sessions, your current session is terminated as part of lockdown. In that case, authentik redirects to the self-service completion flow/message and the admin results stage is skipped.
From a User's detail page
- Navigate to Directory > Users and click on a user.
- Click Account Lockdown.
- Review the warning, enter a reason (recorded in the audit log), and click Continue.
- The results screen shows the lockdown status.
Self-service Account Lockdown
Users can lock their own account from the User interface:
- Navigate to Settings.
- In the Account Lockdown section, click Lock my account.
- Enter a reason and click Continue.
After lockdown, the user can be redirected to a completion page (if configured) or see the stage's self-service message. They cannot log back in until an administrator restores access.
Configure the completion message
Since the user's session is deleted, the stage can either show a built-in message or redirect to a separate unauthenticated flow:
- Create a flow with Authentication set to No authentication required
- Add a Prompt Stage with an alert field containing your message
- On your Account Lockdown Stage, set Completion flow to this flow (optional if using the stage message)
Configure notifications
Use Notification Rules to alert when lockdowns occur:
- Navigate to Customization > Policies and create an Event Matcher Policy
- Set Action to Account Lockdown Triggered
- Navigate to Events > Notification Rules and create a rule
- Bind the Event Matcher Policy to the rule
Restore access after lockdown
- Navigate to Directory > Users and find the locked user (shown as inactive).
- Click Activate to re-enable the account.
- Use Set password or Create Recovery Link to set a new password.
- Advise the user to re-enroll MFA devices.
Troubleshooting
| Issue | Solution |
|---|---|
| "No lockdown flow configured" | Set a lockdown flow on your Brand (System > Brands) |
| Self-service shows login page | Configure a Completion flow on the stage with No authentication required |
| Warning message not showing | Ensure Initial value expression is enabled and field type is an alert type |
| Bulk lockdown not working | Ensure expressions handle lockdown_target_users (list), not just lockdown_target_user |
| Bulk including self skips results | Expected when Delete sessions is enabled; your session is terminated and self-service completion is shown |