AHG Extensions for AtoM

Home / Plugins / Multi-Tenant

Multi-Tenant

Multi-tenancy with domain routing, dedicated tenant tables, and user hierarchy

CategorySecurity
PackageahgMultiTenantPlugin
Version1.3.0
StatusInstalls from source. Clean-database install not yet verified.
RequiresCore
LicenceAGPL-3.0-or-later
InstallFrom the source repository: see Installation below. No packaged download yet.

Version: 1.3.0 Category: Security Status: Active Development Multi-tenancy plugin for AtoM providing dedicated tenant management with status control, user hierarchy, and custom branding per tenant.

Features

  • Tenant Management: Full CRUD operations with dedicated database tables
  • Tenant Status: Active, Suspended, and Trial states with automatic expiration
  • User Hierarchy: Owner > Super User > Editor > Contributor > Viewer
  • Repository Isolation: Users only see assigned tenants/repositories
  • Custom Branding: Per-tenant colors, logos, and custom CSS
  • Settings Override: Tenant-specific settings that override global defaults
  • Theme Agnostic: Branding works with any AtoM theme

Requirements

Requirement Version
PHP >= 8.1
AtoM >= 2.8
MySQL 8.0+
ahgCorePlugin >= 1.0.0

Installation

  1. Enable the plugin:
php bin/atom extension:enable ahgMultiTenantPlugin
  1. Run database migrations:
php atom-framework/bin/install-plugin-schema.php --database=<database> --user=<user> --password=<password> --plugin=ahgMultiTenantPlugin   # from the AtoM root; never a plain mysql < install.sql
  1. Clear cache:
php symfony cc
  1. (Optional) Migrate existing data:
mysql -u root archive -e "CALL migrate_tenant_data();"
  1. Add tenant switcher to your theme header:
<?php include_component('tenantSwitcher', 'switcher') ?>

Try it

This feature is for signed-in staff, so it is not open on the public demo.

Source and README on GitHub · Questions: support@theahg.co.za or WhatsApp