Skip to main content
rmreddy
Staff
Staff
March 8, 2021

Technical Tip: How to limit number of users created for guest group

  • March 8, 2021
  • 0 replies
  • 3941 views

Description

 

This article describes how to limit number of users created for the guest group.

 

Scope:

 

FortiGate.

 

Solution

 

From the CLI:

Execute the following commands to configure the maximum accounts and limit the number of users created for a specific guest group.

 

config user group
    edit <guest_group_name>
        set max-accounts <integer value>
    end

 

If max accounts is set to 0, there will be no limit.

 

config user group
    edit <guest_group_name>
        set max-accounts 0
    end

 

Limiting the maximum accounts from GUI.

 
If maximum accounts is set to 2, more than 2 users cannot be created.
 
 
If maximum accounts is disabled from GUI, then there will be no limitation.
 
 
 
Note:
Guest user account creation remains constrained by the internal .user.group:guest table size, which is a hardcoded system limit based on platform and FortiOS version.
When the table limit is reached, additional guest user creation fails with an 'undefined' error in the GUI and a 'Too many entries in table of .user.group.guest' error in the CLI.
 
CLIerror.png

 

Related articles:
Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!