Skip to main content
fpadron
Staff
Staff
Oct 31, 2017 5:58 PM UTC

Technical Tip: How to set a maximum number of logged-in administrators

  • Sep 23, 2026 8:35 AM UTC
  • 0 replies
  • 11081 views
  • Translate All

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:

 

Screenshot 2024-12-24 133005.png

 

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


admin-max.JPG

 

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:

  1. 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

 

  1. 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:


e8e57225.png


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

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024