# Multi-Tenancy

> Run several organizations on one LearnHouse instance: which editions allow it, how to turn on multi-organization mode and how data stays isolated.

A LearnHouse instance can host one organization or many. Each organization works like its own platform, with its own courses, members, settings and branding, while sharing one deployment and one database.

## Who gets what

| Deployment | Organizations |
| --- | --- |
| LearnHouse Cloud | The platform is multi-tenant. Anyone can create organizations, on any plan. |
| Self-hosted, open source | One organization. Creating a second one is refused with "Multi-organization mode requires Enterprise Edition". |
| Self-hosted, Enterprise Edition | As many organizations as you need. |

> Running several organizations on a self-hosted instance needs a valid [Enterprise Edition](https://docs.learnhouse.app/enterprise) license.

## Enabling multi-organization mode

On an Enterprise Edition instance, set `LEARNHOUSE_TENANCY=multi` on the API. Each organization is then served on its own subdomain of your `LEARNHOUSE_DOMAIN` (for example `myschool.example.com`), or on its own [custom domain](https://docs.learnhouse.app/platform/organizations/custom-domains). With `LEARNHOUSE_TENANCY=single`, the instance serves one organization at the root of your domain.

Create new organizations from [LearnHouse Backoffice](https://docs.learnhouse.app/platform/organizations/backoffice) with **New organization**.

See [Environment Variables](https://docs.learnhouse.app/self-hosting/configuration/environment-variables) for the related settings.

## Accounts across organizations

One account can belong to several organizations, with a different role in each. Members can switch between their organizations from the organization switcher. Removing someone from one organization does not affect their account or their other memberships.

## Data isolation

Every record is tied to an organization, and every query is scoped to it. One organization cannot read another's courses, members or settings.
