Supporting multi-tenancy via categories
The simplest form of multi-tenancy is configuring your Moodle system so that a category represents a tenant. The following diagram illustrates this approach:
Figure 20.3 – Multi-tenancy via categories
A category represents a ring-fenced area (tenant) where courses are managed locally. Users can be assigned via category cohorts; that is, users can be members of multiple tenants.
You can assign a dedicated theme for each category, as we saw in Chapter 7, Enhancing Moodle’s Look and Feel. However, users won’t see that branding until they have logged in. A new category admin role should be created and the appropriate permissions granted accordingly – for instance, the ability to add subcategories and courses.
One main drawback of the category-based approach is that plugins can only be configured site-wide and not at the tenant (that is, category) level. You can bypass this limitation by using...