Setting up IOMAD for multi-tenant Moodle

A practical guide to deploying IOMAD so one Moodle can run training for several companies, covering tenant structure, branding, company managers and upgrades in step with Moodle.

On this page

When IOMAD is the right way to set up multi-tenant Moodle

IOMAD adds company-level tenancy to a single Moodle codebase, so one installation can serve several client organizations, each with its own users, courses, reports and administrators. If you run training for multiple client companies, or an internal academy that must keep business units apart, this is the situation where IOMAD setup deserves a closer look than standard Moodle. The core question is whether the separation has to be enforced by the software or can be handled by convention and course design.

Standard Moodle handles separation through course categories, category-level roles, cohorts and enrolment rules. That works well for departments inside one organization that share branding and an administrator team. It becomes weaker when each client expects its own sign-in address or branding, when a client's manager should see only their own learners and completion data, or when you need to sell and report on training per company. IOMAD, maintained as an add-on to Moodle, introduces the company as a first-class object with its own departments, company managers and scoped reports. Confirm with the IOMAD project which Moodle versions each IOMAD release supports before you commit, because the add-on must move in step with Moodle core upgrades.

Before choosing IOMAD, list the separation requirements in your client contracts: branding, URLs, who may see which learner records, whether courses are shared across clients, and who must be able to administer their own users. Test each requirement against a trial instance. Also account for the ongoing cost of an add-on: each Moodle upgrade needs a compatible IOMAD release and plugin checks, so ask any implementation partner to quote that recurring effort separately from the initial build. If the requirements reduce to category separation, a standard Moodle site may be simpler to operate.

How companies, departments and users sit inside one IOMAD site

The diagram starts at the site administrator, who installs IOMAD on the Moodle core and creates each company tenant with its own departments, company managers and users. Courses can be shared across companies or assigned to one company, and per-tenant branding and URL settings attach to the company record. The trust boundary sits between the site administrator, who controls the whole installation, and company managers, who should only see and manage their own company's users and reports. Check that every company manager's role is scoped to their tenant before go-live.

One IOMAD site with company tenants, a scoped manager role and shared courses.

Configuration options and when each fits

This table compares the main IOMAD tenant design choices: hierarchy depth, course ownership, branding and URL handling, and company manager scope. Read each row against your client contracts, then note the change cost, because some decisions are cheap to revisit and others mean rebuilding tenant data.

Design choiceOption and when it fitsCost to change later
Company hierarchy depthFlat, one company per tenant, fits clients who buy training directly and have no subsidiaries or departments that need separate reportingLow to moderate. Adding a level later means moving users, courses and reports under new parent companies, so confirm how your IOMAD version handles reparenting
Company hierarchy depthNested, parent groups with child departments or subsidiaries, fits large clients who want group-level and local reportingModerate to high. Deep trees make reporting and manager scope harder to reason about, and restructuring usually affects enrolments and reports
Shared versus company-owned coursesShared catalogue, courses held centrally and made available to several companies, fits generic compliance or product contentModerate. Changing a shared course affects every company using it, so version control and update rules must be agreed first
Shared versus company-owned coursesCompany-owned courses, each client's content kept with its own tenant, fits bespoke content and clients who will not share materialsModerate to high. Moving content between owners later means re-enrolment, copied completions and checking any permission rules
Per-company brandingTheme settings per company, such as logo and colours, fits clients who expect their own look without custom codeLow. Branding values are usually editable later, but test every page layout for each company after a change
Per-company URL handlingSeparate subdomains per company, fits clients who want their own web address and clear separation in support and emailModerate to high. Changing hostnames later affects links, single sign-on redirects, certificates and bookmarks
Company manager scopeCompany manager limited to their own company's users, courses and reports, fits clients who manage their own staff trainingLow to moderate. Scope can be adjusted, but test that managers cannot see other tenants' data before and after any role change
Company manager scopeBroader manager roles across several companies, fits a central training team that runs several accountsModerate. Wider access raises the review burden and needs a documented approval path for each granted scope

How tenant design differs for providers and internal academies

A commercial provider treats each client company as a customer with a contract. The client's staff, their completion records and their invoices must stay visible to the client and invisible to other clients. In IOMAD terms, each client is usually modelled as a company, and the provider's own staff sit above those companies as site-level or tenant-level administrators. The design question is less about how many companies exist and more about who can see what, and whether the contract allows the provider to share any content across clients.

  • Company per contract: Model each client contract as one company, so reports, user lists and enrolments can be scoped to that client without custom reporting.
  • Shared versus exclusive courses: Decide early which courses are standard catalogue items that many clients use, and which are built for one client and must not appear in another client's view.
  • Reporting boundaries: Confirm what each client may see, such as learner completions only, or also assessment detail. Company managers should only reach their own company's data.
  • Provider staff access: Limit provider staff to the companies they serve, and log their access, since clients often ask who viewed their learner records.
  • Contract changes: Plan how a client leaves, including data export, retention and removal of their users and companies.

Before building, confirm with the commercial and legal team which data each client contract allows the provider to hold, share and retain, and whether any client requires its own domain or branding.

The IOMAD setup sequence from base install to first company

This sequence takes a self-hosted Moodle from a confirmed version and server stack to a first company tenant with its own branding, URLs and manager, and each step closes with a check that the previous step held. The order matters because IOMAD is tied to a specific Moodle release, so the version decision comes before any install.

  1. Confirm Moodle version and server requirements

    Choose the Moodle release the organization will run and check it against the server stack before anything is installed. Moodle 5.1 requires 64-bit PHP 8.2 or later (8.3 and 8.4 are supported), PostgreSQL 15, MySQL 8.4, MariaDB 10.11 or Microsoft SQL Server 2017 or later, and an existing site must be on Moodle 4.2.3 or later to upgrade. Moodle 5.3 raises the bar to PHP 8.3 or later and PostgreSQL 17, among other changes. Ask the IOMAD team which Moodle versions the current IOMAD release supports before choosing. Done when the version, PHP, database and web server are written down and each one meets the Moodle release notes for that version.

  2. Install IOMAD matched to the Moodle version

    Install the IOMAD build that corresponds to the chosen Moodle release, not the latest Moodle by default, because IOMAD follows Moodle with its own release cycle. The platform team sets the web server document root to the public directory when running Moodle 5.1 or later, so the site does not expose directory listings. Run the installer against a fresh database and confirm the cron task runs. Done when the site loads over HTTPS, the admin dashboard shows the expected Moodle and IOMAD versions, and the site check reports no blocking errors.

  3. Create the company tenant structure

    Create one company record for each client or business unit, and set its departments, managers and default course access in IOMAD. Keep the first company small and representative so the structure can be reviewed before it is copied. Record which courses are shared across companies and which are company-specific, since that choice shapes reporting and access later. Done when a test company exists with its departments in place, and a course assigned to it is visible only to users enrolled in that company.

  4. Configure branding and company URLs

    Set the company logo, colors and theme options for the first tenant, and configure the URL or subdomain each company uses to reach its portal. Confirm with the DNS and certificate owner that each hostname resolves to the same Moodle instance and has a valid certificate before users are told about it. Check that emails sent from the tenant carry the company name and do not expose another tenant's details. Done when the company URL loads the branded login page over HTTPS and the test email shows the correct sender and footer.

  5. Assign the company manager

    Create the company manager account and assign the manager role in the company context so that the manager can add users, enroll them and view reports for that company only. Use a named individual account with MFA or the identity provider already in place, not a shared login. Confirm the manager cannot see the company list, site-wide settings or other companies' users. Done when the manager can complete a user enrolment and view a report for the test company, and the same account gets an access denied message on a page belonging to another company.

  6. Test isolation with sample users

    Create at least two sample users in two different companies, along with one manager for each, and test every path a real user could take. Log in as each user and check the course catalogue, the user list, the reports and the company branding, and try direct URLs for another company's course or profile. Record each result and the expected outcome, then retest after any change to roles or theme settings. Done when every cross-company attempt is blocked and every in-company action succeeds, and the test record is kept with the change log before any real user is invited.

Keeping IOMAD in step with Moodle upgrades and plugins

IOMAD is an add-on layered on top of Moodle core, so it has to be matched to a specific Moodle release before any upgrade starts. Every Moodle upgrade, including a point release, means confirming that a compatible IOMAD version exists for the target, then running the combined stack through a full test cycle in a staging copy of production. Treat the IOMAD version as a pinned dependency of the Moodle version, not as something you update separately. Ask your implementation partner and the IOMAD maintainers to confirm the compatible pairing in writing before you schedule the change window.

The Moodle requirements for the target release set the floor for the whole stack. Moodle 5.1 requires 64-bit PHP 8.2 or later, supports PHP 8.3 and 8.4, and sites must already be on Moodle 4.2.3 or later to upgrade. Moodle 5.3 requires 64-bit PHP 8.3 or later, PostgreSQL 17, MySQL 8.4, MariaDB 11.4 or SQL Server 2019 or later, and sites must run Moodle 4.4 or later. From Moodle 5.1, the web server document root must point to the public directory rather than the main Moodle folder, so update virtual host configuration and check that directory listings and errors are not exposed. Confirm each of these against the release notes and your IOMAD build before you plan the cutover, because a tenant configuration that works on one stack can fail on another.

Before any upgrade, inventory every plugin running alongside IOMAD, including authentication, theme, local, report and block plugins used for each tenant's branding, sign-in and reporting. For each one, check the plugin's declared Moodle support range in the plugin directory, confirm a version exists for the target release, and record who owns the fix if it does not. Pay particular attention to Moodle 5.3, which removes the Classic theme from core, so any tenant still using it needs a replacement theme in the test cycle. Run the upgrade in staging, then verify tenant login, per-tenant URLs, company manager permissions and reports for at least one tenant of each type. Ask for the compatibility matrix, the rollback procedure and the test evidence as deliverables before accepting any upgrade quote.

Security controls for company managers and tenant data

In a shared IOMAD site, one misconfigured permission can expose one company's learners, grades or reports to another. The cards below cover the controls that keep each company's data and administration separate, and the checks to run before company managers get access.

Limit what company managers can do

Company managers are delegated administrators scoped to their own company, not site administrators. Confirm which capabilities they hold, such as creating users, enrolling staff, or assigning company-level roles, and test that none of them reach site-wide settings, other companies' departments, or plugin administration. Document the role definition so changes to it are reviewed like any other access change.

Separate reports and user data by company

Reports, user lists and completion data must be filtered by company at the database query level, not only hidden in the interface. Test by logging in as a manager of one company and attempting to view, export or schedule reports that include learners from another. Check scheduled report recipients too, since a scheduled export can carry data outside the manager's own company.

Require SSO for tenant users

Tenant learners and managers should sign in through the identity provider each company already uses, with SAML 2.0 handled by the auth_saml2 plugin maintained by Catalyst IT. Confirm the field mapping that creates accounts and assigns each user to the correct company, and decide whether local password accounts stay enabled for any group. Test that a user from one company cannot be mapped into another company through an attribute change.

auth_saml2 plugin

Log administrative actions by company

Enable and review the Moodle logs for changes made by company managers and site administrators, including user creation, role assignments, enrolment changes and company edits. Ask whether logs can be filtered by company for each client's review, and where they are retained. Agree a retention period with your compliance team before go-live, since the default settings may not match client contract terms.

Protect shared site administration

Because the site is shared, a site administrator can reach every company's data, so keep this role to a small named group with individual accounts and multi-factor authentication through the identity provider. Review who holds site administrator and any roles that can edit company structure. Confirm that break-glass access is documented and that its use is logged.

What teams ask before running IOMAD for several companies

What drives the cost of setting up IOMAD for several companies?

The cost depends mainly on how many tenants you start with, how different their branding and access rules are, and how much of the integration work sits around IOMAD. A quote follows from a written scope, so ask the partner to itemise the work: tenant structure and company hierarchy, per-tenant branding and URLs, company manager roles, identity integration, course migration, testing and handover. The main one-time costs are design, build and test. Recurring costs are hosting, plugin maintenance, Moodle and IOMAD upgrades, and support. Ask each bidder to state which items are fixed and which are priced per tenant.

How long does a first tenant build take in IOMAD?

No duration is fixed by the platform, so the timeline depends on the scope you agree. The first tenant usually takes longer than later ones because it sets the company hierarchy, the role model, branding templates and the sign-in pattern that every other tenant reuses. Timing also depends on how quickly your team confirms requirements, supplies branding assets and approves test results. Ask for a plan with milestones for design sign-off, a staging tenant, user acceptance testing with a pilot company and a production cutover.

What does the work need from our internal team?

You need named owners for decisions that the platform cannot make for you: which companies become tenants, who manages each tenant, which courses are shared and which are private, and what each client may see in reports. You also need someone who can supply identity provider details, DNS control for tenant URLs, certificates, and sample users and courses for migration testing. Expect a few hours each week from the business owner during design and acceptance, and a named technical contact for hosting access.

Can an internal administrator run IOMAD for several companies alone?

A capable Moodle administrator can run day-to-day tenant work alone once the build is finished: creating company accounts, assigning company managers, enrolling users and running reports. Setup, upgrades and plugin compatibility checks are harder. They touch the database, the web server, the theme and any custom code, so they need a second person with system administration and test-environment skills. Before you decide, confirm that your team can maintain a staging copy, restore backups and review release notes for each Moodle and IOMAD update.

How do Moodle upgrades affect IOMAD effort?

IOMAD follows Moodle core, so each Moodle upgrade is also an IOMAD compatibility job. Moodle major releases arrive in April and October, and minor point releases arrive every two months. Moodle 5.1 requires PHP 8.2 or later and sites must be on Moodle 4.2.3 or later to upgrade. Moodle 5.3 requires PHP 8.3 or later and sites must run Moodle 4.4 or later. Confirm with the IOMAD project which Moodle versions each IOMAD release supports before you choose a version, and plan extra test time for tenant branding, custom reports and any local plugins.

Which plugins and custom code add the most upgrade risk?

Custom themes, template overrides, local plugins and third-party reports carry the most risk, because each may depend on internal Moodle APIs that change between releases. Single sign-on plugins also need checking against the new version. Ask for a list of every plugin, its source and its supported Moodle range before the build. Plugins with no recent maintenance, or those that only list older Moodle versions, should be reviewed or replaced before you commit to a release line.

Should we check IOMAD compatibility before choosing a Moodle version?

Yes. Choose the Moodle version based on the IOMAD release you need, your server stack and the support window you require. Moodle 4.5 is an LTS release with security support until 4 October 2027. Moodle 5.3 is the next LTS, with general support until 4 October 2027 and security support until 1 October 2029. Check the IOMAD release notes and the Moodle release page together, then confirm your PHP and database versions, because database requirements differ between Moodle 5.1 and 5.3.

How DeployOpen scopes and delivers an IOMAD tenant build

An IOMAD tenant build starts with a written scope, not an open-ended project. DeployOpen agrees the scope, deliverables and timeline in writing before work begins, and most engagements are fixed-scope. For an IOMAD build, that document should list each company (tenant) to be created, the company-level branding and URL decisions, the company manager roles to be configured, the course and licence sharing rules, the SSO and enrolment integrations in scope, and the upgrade path for the Moodle version you will run. Ask for the scope to name the Moodle and IOMAD versions it targets, since IOMAD releases must track the Moodle release you choose. A quote follows from this written scope, so the more precisely the tenant count, integrations and acceptance tests are described, the more useful the quote will be.

Delivery happens in your infrastructure. DeployOpen self-hosts the platform in your cloud accounts, data centers or air-gapped network, so tenant data, backups and credentials stay under your control. Before the build, confirm which PHP and database versions your chosen Moodle release requires, and check the Moodle 5.1 release notes for the web server document root change to the /public directory. Your team keeps ownership of DNS, certificates and the hosts that run the site. The written scope should say who provisions those, and who signs off each tenant before it goes live.

Ongoing support is optional and sold separately. Upgrades, plugin compatibility checks and continuous support can be covered by a retainer after go-live, which suits IOMAD because each Moodle upgrade needs a matching IOMAD release and every tenant has to be retested. Ask whether a retainer covers one or more upgrade cycles, what response arrangements apply, and how plugin updates are tested before they reach tenants. Decide early whether your own team or DeployOpen will hold the upgrade runbook, because that decision determines who carries the work each time a new Moodle release arrives.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.