Multi-Tenant
Multi-tenancy with domain routing, dedicated tenant tables, and user hierarchy
| Category | Security |
|---|---|
| Package | ahgMultiTenantPlugin |
| Version | 1.3.0 |
| Status | Installs from source. Clean-database install not yet verified. |
| Requires | Core |
| Licence | AGPL-3.0-or-later |
| Install | From 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
- Enable the plugin:
php bin/atom extension:enable ahgMultiTenantPlugin- 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- Clear cache:
php symfony cc- (Optional) Migrate existing data:
mysql -u root archive -e "CALL migrate_tenant_data();"- 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