{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":20003,"path":"impact/recover-from-account-lockout.md","title":"Recover from account lockout","bundle":null,"doc_type":null,"release":"australia","body":"\n# Recover from account lockout\n\nUnlock the integration user account and clear the password reset flag after repeated failed validation attempts trigger the account lockout policy.\n\n## Before you begin\n\nRole required: admin\n\n## About this task\n\nRepeated failed connection validation attempts can lock the integration user account. Two fields must be cleared to restore access — `locked_out` and `password_needs_reset`. Clearing only one field is insufficient; `password_needs_reset` can independently block authentication even when `locked_out` is false.\n\n## Procedure\n\n1.  Navigate to **ALL** &gt; **System Definition** &gt; **Scripts - Background**.\n\n2.  Run the following script, replacing `scan_engine_integration` with your integration user's user name if different.\n\n    ```\n    var gr = new GlideRecord('sys_user');\n    gr.get('user_name', 'scan_engine_integration');\n    gr.setValue('locked_out', false);\n    gr.setValue('password_needs_reset', false);\n    gr.update();\n    ```\n\n\n## Result\n\nThe integration user account is unlocked and the password reset flag is cleared.\n\n## What to do next\n\nBefore retrying validation, resolve the root cause of the failed attempts. See [Validate your instance connection](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/impact/validate-instance-connection.md) for the full validation troubleshooting checklist.\n\n**Parent Topic:**[Register your instance](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/impact/register-your-instance.md)\n\n"}}