FastGPTFastGPT

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:

  1. Single-team mode (default, one global team)
  2. Multi-team mode
  3. 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 TeamJoins Root TeamCreates Default TeamJoins Root TeamCreates Default TeamJoins 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_MODE environment variable on the fastgpt-pro service; 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_URL unset) always use single (single-team mode) and cannot switch to multi-team or sync mode.
  • Commercial Edition (fastgpt-pro): Set TEAM_MODE (required) in the fastgpt-pro container environment variables and restart fastgpt-pro for changes to take effect:
    • TEAM_MODE=single: Single-team mode
    • TEAM_MODE=multi: Multi-team mode
    • TEAM_MODE=sync: Member sync mode (requires a Commercial Edition license with SSO support and must also set EXTERNAL_USER_SYSTEM_BASE_URL; fastgpt-pro fails startup validation if TEAM_MODE=sync without EXTERNAL_USER_SYSTEM_BASE_URL, and the main App falls back to single if 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:3000

When 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).

Legacy Admin panel team mode selector (V4.17.x and earlier)

Edit on GitHub

Last updated

On this page

Put your business knowledge to work with AI

Import company documents and build accurate, reliable, traceable AI answers.