Created on
12-31-2024
02:33 AM
Edited on
01-14-2026
02:28 AM
By
Jean-Philippe_P
| Description | This article describes how to reset admin credentials after locking the account using SQL queries. |
| Scope | FortiSIEM v7.1.x, v7.2.1. |
| Solution |
This script will help to add a new test user when the existing add-super-admin.sql script does not add a new test user.
Step 1. Log in to FortiSIEM through SSH using admin user access. Create a file with the name reset-admin-password.sql:
vim /opt/phoenix/deployment/add-super-test-admin.sql
Step 2. Enter below SQL queries below in the file and save the file.
INSERT INTO ph_user VALUES (nextval ('ph_global_gen'), 1283889301935, 1, 0, 1283889301935, 0, true, NULL, NULL, NULL, NULL, NULL, NULL, NULL, 'test', 'test', true, NULL, (select id from ph_rbac_profile where name='Full Admin'));
Step 3. Run the command below:
psql -d phoenixdb -U phoenix -f /opt/phoenix/deployment/add-super-test-admin.sql
This will reset admin credentials, and the script will work. Now, try to log in using the credentials below.
Username:- test Password:- Test*123
Admin password can be reset from the GUI.
Related articles: Technical Tip: Reset root credentials on rocky Linux machine in FortiSIEM Technical Tip: Reset root credentials on rocky Linux machine in FortiSIEM |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2026 Fortinet, Inc. All Rights Reserved.