This article describes how to rename FortiGate(s) default admin via the FortiManager script.
FortiManager.
config system admin
rename admin to <New Username>
end
Note:
In the case of FortiGate(s) with VDOM, need to modify the script:
config global
config system admin
rename admin to <New Username>
end
Note:
The install preview will show that FortiManager is creating a new admin with the name set in the script (and with the same set of details/config set on the 'admin' account) and deleting the default 'admin'.
Note 1:
Make sure to manually change the 'admin' credentials for FortiGate in FortiManager -> Device Manager -> Device & Groups -> Managed FortiGate -> 'Right-Click a FortiGate -> Edit:
Note 2:
The script can also be run on 'Remote FortiGate Directly (via CLI)'; it will simply rename the user on the FortiGate. This change will then be updated in FortiManager as 'Auto-update' automatically.
Related articles:
Technical Tip: How to delete or rename the default 'admin' user
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 2024 Fortinet, Inc. All Rights Reserved.