FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
Umer221
Staff
Staff
Article Id 408787
Description This article describes the reason and solution when a local super admin user cannot be deleted on a FortiGate, despite having no visible references in the GUI or configuration.
Scope FortiGate.
Solution

An attempt to delete a local super-admin user from the FortiGate GUI or CLI fails with the error 'Failed to delete'.

 

02.png

Attempting to delete a local super_admin user results in a 'Failed to delete' error in the GUI. No visible references to the user in the configuration or interface.

 

Deletion fails despite the user not being used in any admin profile, VDOM assignment, or custom configuration. Here are the currently configured user accounts, and trying to delete the admin account 'daniel' for demonstration:

 

01.png

  1. Check if the user is still referenced under the config system federated-upgrade section:

 

config system federated-upgrade
show

 

config system federated-upgrade
    set status disabled
    set initial-version 7-6-2-3462
    set starter-admin "daniel"
end

 

  1. The starter-admin field under the federated-upgrade configuration acts as a reference for the super_admin who initialized the federated upgrade. FortiOS does not allow deletion of an admin account still referenced in this context.

 

Attempting to manually modify the starter-admin using:

 

set starter-admin admin

 

Federated upgrade cannot be configured directly.
object set operator error, -39 discard the setting
Command fail. Return code -39

 

03.png

 

It confirms that the config cannot be altered directly and must be handled through federated upgrade commands.

 

Solution:

  1. Run the following CLI command to cancel the federated upgrade session:

 

execute federated-upgrade cancel

 

  1. Re-check the federated-upgrade section:

 

show system federated-upgrade

 

Ensure starter-admin and initial-version are removed or reset.

 

  1. Try to delete the user:
  • Via GUI: Navigate to System -> Administrators, select the user, and select 'Delete'.

  • Or via CLI:

 

config system admin
delete daniel
end

 

To check if there are any other references, run the following command and search for the user name:

 

show full-configuration | grep -f daniel