Skip to content

Hierarchical multi-tenancy

Multiple customers, sites or departments in one application, with data always kept apart.

Organise your application as a tree: group, companies, sites, departments. Each level sees only its own data, while those higher up can get the full picture.

Isolation is enforced directly in the database: every record belongs to a tenant and can never be linked to another tenant’s data. It is the ideal foundation for sales networks, industrial groups and platforms resold to many customers.

Use cases

01

Group with three plants

Each plant works on its own data, while group management, higher up the tree, gets the full picture across every site.

02

Sales network with dealers

Each dealer sees only its own customers and orders; an area manager follows several dealers and switches between them.

03

Platform offered to many customers

The same application is resold to several companies: each customer is a tenant isolated at database level, sharing no data with the others.

Hierarchical multi-tenancy

In depth

One tree, inherited visibility

Every tenant has a parent and can have children: group, companies, sites and departments become nodes of the same tree. Whoever is assigned to a node automatically belongs to every node below it too, with the same permissions, unless specific ones are defined for a node.

Alongside operational tenants there are resource groups: nodes that only group other tenants, such as a holding company or a division.

  • One assignment covers the whole subtree
  • A user can be deactivated on a single branch without affecting the others
  • Specific permissions on a node replace the inherited ones

Isolation in the database

Every record of every module belongs to a tenant, and access rules are checked by PostgreSQL row by row, with row-level security: they apply in the same way to the apps, the APIs and the integrations.

When a tenant is deleted, its operational data is removed with it, while the audit history is kept and remains traceable to the original tenant.

Users who do not see each other

A tenant can be made isolated: those assigned to it directly see only themselves among its users, while the tenant’s managers and those who belong to it from a higher level see everyone.

It is designed for a portal shared by several customers, or for a reception area where new customers wait to be moved into their own tenant.

Per-tenant configuration

Every tenant has its own name, the theme colours used by the apps and dedicated settings, such as the support email and the currency of work order and timesheet summaries. A new tenant automatically receives the groups, asset types and master data types shared by the level above.

New users can be assigned to the right tenant automatically based on their email domain, and every tenant keeps a reference to the identifier used by an external system for synchronisation.

More modules in Platform

Want this module in your software?

Tell us about your process: we will design the right solution for your company together and send you a tailored proposal.