---
title: "Multi-tenancy"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/access/multi-tenancy/
type: concept
application: tenancy_core
last_updated: 2026-10-18
commit: c05803eee2ce
---


Multi-tenancy limits which records each user can see by the company or realm the records belong to, on one Servicely instance. This page is for administrators who serve customers or subsidiaries from one instance and must decide whether and how to separate their records.

## What multi-tenancy is

Multi-tenancy in Servicely is a visibility filter. It adds a condition to queries on the tables you choose, so a user sees only the records of their own part of the organisation. It does not give each tenant its own configuration: catalog items, SLA definitions and other features are configured as usual.

There is no Tenant record, Tenant menu or tenant subdomain. Everything runs inside one instance and one set of configuration.

## Tenants and realms

These two words have one meaning each on every page of this guide.

| Term | Meaning |
| --- | --- |
| Tenant | A part of your organisation whose records are kept apart from the others, such as a customer, a service provider or a subsidiary. It is not a record: a realm or a company stands for it. |
| Realm | A node in a tree of System realms. Each realm has a CIDR, so "below" and "above" in the tree become subnet containment and filters stay fast. A user's realm is the **System Realm** on their user record. |

## The three providers

A System tenancy configuration record chooses how records are filtered. Its **Provider** is one of these:

| Provider | Filters by | When to use it |
| --- | --- | --- |
| Self service | Nothing | Listed by Tenancy Core, but it applies no filter. |
| Company hierarchy | The **Company** on users and records | A small, stable structure: two levels and fewer than about 30 tenants. |
| Realm hierarchy | The realm on users and records | A larger or growing structure, more levels, or tenants that are not all companies. This is the usual choice. |

A script on the configuration decides which users it applies to. Holders of `administrator` and Servicely support users are never filtered.

## How visibility works

You choose per table whether it is separated and in which direction a user sees along the tree:

- **down**: their own realm and every realm below it
- **up**: their own realm and every realm above it
- **both**: up and down

Not every table needs separation. You might separate incidents, requests and users, and leave knowledge articles shared.

Tenancy adds to the other security. Roles, permissions and table record restrictions still apply. A requester who can see only their own tickets still sees only their own tickets inside their realm.

Each user has a primary realm on their user record. You can also give users and groups sight of other parts of the tree, and limit parts of the tree to holders of a role. Users who may switch realm do it for the session with the realm selector in the header.

## Example

<Image src="asset:screenshots/admin/access-multi-tenancy/image-4.png" size="90">A realm tree with a parent organisation at the top, service providers below it and their customers below them.</Image>

A parent organisation serves service providers, and each service provider serves its own customers. The parent separates its Work, CMDB and User tables with downward visibility. It separates groups with visibility in both directions.

| Who | Primary realm | What they see |
| --- | --- | --- |
| The parent's agents | The parent organisation | Every record of every service provider and customer, because visibility is downward. |
| The parent's requesters | The parent organisation | Only tickets they raised. Their role, not tenancy, limits them. They can raise tickets on behalf of any customer. |
| A service provider's agents | Their service provider | Work, CMDB and user records of their service provider and its customers only. They also see the parent's groups, so they can escalate to a parent group without seeing the parent's users. |
| A service provider's requesters | Their service provider | Only tickets they raised, for their service provider or its customers. |

## Plan before you turn it on

Decide which tables to separate and how every record gets its realm or company before you go live. Changing the model later means migrating records.

Every record on a separated table must carry its tenant. For a Work table separated by company, every way of creating a ticket must set **Company**. For incidents, for example:

- a trigger that sets a fallback company
- interactions that need a company
- catalog items that set **Company**, by asking or from **Requested for**
- a mandatory **Company** field on the incident form

The tables, properties, applications and scripts are listed in [Multi-tenancy configuration](page:access/multi-tenancy-configuration).

## Related

- [Multi-tenancy configuration](page:access/multi-tenancy-configuration)
- [Permissions: table, field and transition](page:access/permissions)
- [Restrict which records a role can see](page:access/table-record-restrictions)
- [Set up companies, departments and locations](page:access/organisation)
