WHAT YOU'LL LEARN
- What multi-tenancy is in Webiny - How tenant isolation works - Common multi-tenancy patterns and use cases

Overview
anchor

Multi-tenancy in Webiny allows a single instance to serve multiple tenants (clients/projects), each with completely isolated data and configuration. This architecture enables cost-effective management of multiple projects while maintaining strict data separation and security.

Business License Required
Multi-tenancy features including custom hierarchies, granular access control, and automated provisioning require a Business or Enterprise license.

How It Works
anchor

Data Isolation
anchor

Each tenant in Webiny has:

  • Separate content models - No shared schemas between tenants
  • Isolated content entries - Complete data separation
  • Independent assets - File storage partitioned by tenant
  • Tenant-specific settings - Individual configurations

Unlike systems that simulate multi-tenancy with folders or prefixes, Webiny provides true isolation at the database level. Each tenant operates as if it has its own Webiny instance.

Default Hierarchy
anchor

Webiny implements a two-level hierarchy by default:

  • Root Tenant - Administrative level with oversight capabilities
  • Child Tenants - Isolated operational tenants

User Access Patterns
anchor

Root Tenant Users:

  • Can access and manage child tenants
  • Switch between tenants via UI
  • Can be restricted to specific child tenants
  • Ideal for administrators and support staff

Child Tenant Users:

  • Access only their own tenant’s data
  • No visibility into other tenants
  • Standard content management permissions apply

Implementation
anchor

Enabling Multi-Tenancy
anchor

Configure in webiny.config.tsx:

webiny.config.tsx

Tenant Management API
anchor

Create and manage tenants programmatically:

Custom Hierarchies
anchor

Extend beyond the default two-level structure:

Common Use Cases
anchor

Digital Agencies
anchor

Managing multiple client websites:

  • Each client is a separate tenant
  • Agency staff access via root tenant
  • Client users access only their tenant
  • Shared templates and components

Enterprise Brands
anchor

Large organizations with multiple properties:

  • Each brand/division as a tenant
  • Central marketing team oversight
  • Brand-specific content teams
  • Consistent governance across brands

SaaS Platforms
anchor

Embedding CMS capabilities:

  • Each customer gets a tenant
  • Automated provisioning via API
  • Tenant-based billing and limits
  • White-label customization per tenant

Educational Institutions
anchor

Department or course management:

  • Departments as tenants
  • Central IT administration
  • Department-specific content teams
  • Shared institutional resources

Advanced Features
anchor

Tenant Provisioning
anchor

Automate tenant creation:

Access Control
anchor

Fine-grained tenant permissions:

Content Sharing
anchor

Share content between tenants:

Best Practices
anchor

Tenant Naming
anchor

Use consistent naming conventions:

  • Include identifiers: client-abc-prod
  • Add environment: client-abc-staging
  • Use tags for categorization

Resource Limits
anchor

Implement per-tenant limits:

  • Storage quotas
  • API rate limiting
  • User count restrictions
  • Content entry limits

Monitoring
anchor

Track tenant-specific metrics:

  • API usage per tenant
  • Storage consumption
  • User activity
  • Performance metrics

Data Migration
anchor

Plan for tenant lifecycle:

  • Tenant cloning for staging
  • Data export capabilities
  • Tenant archival process
  • Cross-tenant migrations

Performance Considerations
anchor

Multi-tenancy in Webiny is designed for scale:

  • Database partitioning - Tenant data physically separated
  • Query optimization - Tenant ID in all queries
  • Caching strategies - Per-tenant cache keys
  • CDN configuration - Tenant-specific cache rules

The architecture handles thousands of tenants without performance degradation, making it suitable for large-scale deployments.