Team Mode
Understand FastGPT single-team, multi-team, and sync modes, and configure team mode by version for V4.18.0+ and V4.17.x.
Overview
Currently supported team modes:
- Single-team mode (default, one global team)
- Multi-team mode
- Member sync mode (all members synced from an external directory; requires a Commercial Edition license with SSO capabilities and an external user system service URL)
Team Mode | SMS/Email Registration | Admin Direct Add | SSO Registration | |||
|---|---|---|---|---|---|---|
| Creates Default Team | Joins Root Team | Creates Default Team | Joins Root Team | Creates Default Team | Joins Root Team | |
| Single-team Mode | â | â | â | â | â | â |
| Multi-team Mode | â | â | â | â | â | â |
| Sync Mode | â | â | â | â | â | â |
Multi-team Mode
In multi-team mode, a default team owned by the user is automatically created when each user is created.
Single-team Mode
Single-team mode simplifies enterprise member and resource management by adding all new users directly to the root user's team.
Sync Mode
When a Commercial Edition license and SSO service URL are configured and sync mode is enabled, members from external member systems are automatically synced to FastGPT.
For specific sync methods and rules, see SSO & External Member Sync.
Configuration
Team mode configuration changed starting in V4.18.0:
- V4.18.0 and later: Community Edition always runs in single-team mode. Commercial Edition controls team mode via the
TEAM_MODEenvironment variable on thefastgpt-proservice; the Admin panel selector has been removed and database overrides no longer apply. - V4.17.x and earlier: Configure and save team mode directly in the Admin panel under Admin â System Configuration â User Configuration.
V4.18.0 and later (environment variable)
- Community Edition: Deployments without
fastgpt-pro(PRO_URLunset) always usesingle(single-team mode) and cannot switch to multi-team or sync mode. - Commercial Edition (
fastgpt-pro): SetTEAM_MODE(required) in thefastgpt-procontainer environment variables and restartfastgpt-profor changes to take effect:TEAM_MODE=single: Single-team modeTEAM_MODE=multi: Multi-team modeTEAM_MODE=sync: Member sync mode (requires a Commercial Edition license with SSO support and must also setEXTERNAL_USER_SYSTEM_BASE_URL;fastgpt-profails startup validation ifTEAM_MODE=syncwithoutEXTERNAL_USER_SYSTEM_BASE_URL, and the main App falls back tosingleif the external user system is unavailable)
# Example environment variables for fastgpt-pro
environment:
- TEAM_MODE=single # Options: single | multi | sync; restart fastgpt-pro after changes
# Required when TEAM_MODE=sync:
# - EXTERNAL_USER_SYSTEM_BASE_URL=http://fastgpt-sso:3000When upgrading from V4.17.x or earlier to V4.18.0+, the legacy team mode stored in the database is no longer read, and the Admin UI/API no longer accepts team mode updates. Before starting V4.18.0+, explicitly set TEAM_MODE (multi or sync) on fastgpt-pro if your deployment did not use single-team mode. See Environment variables (V4.18.0+) for details.
V4.17.x and earlier (Admin panel)
In V4.17.x and earlier, sign in as root and go to Admin â System Configuration â User Configuration to choose the mode under Team mode settings and save (selecting Sync mode requires a Commercial Edition license with SSO support and a configured external user system URL).

Last updated