Technical Tip: How to set a maximum number of logged-in administrators
Description
Â
This article describes how to set the maximum number of concurrent administrators that can be logged into a FortiGate.
Â
Scope
Â
FortiGate.
Solution
Â
The maximum number of concurrent administrators that can log in at the same time is 100 by default. The following steps can be used to configure the maximum number of concurrent administrator logins.
Â
In this example, a maximum of 5 concurrent administrator logins will be able to manage the unit at the same time.
FGT# config system global
FGT(global) # set admin-login-max
   please input integer value (1-100)
FGT(global) # set admin-login-max 5Â
FGT(global) # endÂ
The user will receive the following message when the maximum number of concurrent sessions has been reached:
Â

Â
If logging in via SSH when the maximum limit is reached, an option to log out an active session is provided:

Â
To list the active admin sessions, execute the following commands:
Â
get system admin list
get system info admin statusÂ
To terminate the active session:
Â
execute disconnect-admin-session <index_number>
Example:
Check the index number of the admin session:
silicon-esx54 # exe disconnect-admin-session ?
<integer> Index of admin to be disconnected
Currently connected admins:
INDEX USERNAME TYPE VDOM PROFILE FROM TIME
0 admin https root super_admin 172.30.160.117 Mon Feb 16 22:22:58 2026
1 admin jsconsole root super_admin 172.30.160.117 Mon Feb 16 22:53:55 2026Â
To disconnect the HTTPS session initiated by the user admin from 172.30.160.117:
Â
execute disconnect-admin-session 0Â
Note:
Configuring admin-login-max to 1 will prevent the admin user from running commands from the CLI console opened from the GUI with the following prompt:

This is because opening the CLI console creates a new admin session with type jconsole. Increase the number of admin-login-max to open multiple CLI console windows while logged in to the FortiGate GUI.
Related documents:
Technical Tip: Control various 'admin' users logging in at the same time
Technical Tip: Restricting multiple admin sessions from the same admin user.
Technical Tip : List active admin session of Firewall and disconnect the session via Command Line
