--- title: Specify lockout for failed login attempts description: The system provides inactive script actions that enable you to specify the number of failed login attempts before a user account is locked and to reset the count after a successful login. locale: en-US canonical_url: https://www.servicenow.com/docs/r/australia/platform-security/authentication/t\_LockoutForFailedLogins.html release: australia product: Authentication classification: authentication topic_type: task last_updated: "2026-03-12" reading_time_minutes: 1 breadcrumb: [Define login scenarios, Local authentication, Authentication, Access Management] --- # Specify lockout for failed login attempts The system provides inactive script actions that enable you to specify the number of failed login attempts before a user account is locked and to reset the count after a successful login. ## Before you begin Role required: password\_reset\_admin ## Procedure 1. Navigate to **All** > **System Policy** > **Script Actions** to view or activate the scripts. **Note:** Starting with the Kingston release, following a zBoot, the script actions **SNC User Lockout Check with Auto Unlock** and **SNC User Clear** are activated. To learn more about properties that affect failed login attempts, see [Managing failed login attempts \(instance security hardening\)](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-security/instance-security-hardening-settings/sc-managing-failed-login-attempts.md) in the Instance Security Hardening Settings.
| Script action | Description |
|---|---|
| SNC User Lockout Check with Auto Unlock | - Uses the value of the glide.user.max\_unlock\_attempts property to set the limit for failed login attempts. - Unlocks the user account after the time period that is specified for the glide.user.unlock\_timeout\_in\_mins property. If no value is specified, then the system unlocks the user account after the default period of 15 minutes. |
| SNC User Lockout Check | Tracks the number of failed login attempts and locks the user account after a specified number of failed login attempts \(default: 5\). |
| SNC User Clear | Updates the user record after a successful login: Resets the number of failed login attempts and updates the date of the last login. |