# Multi tenancy

## <span class="mw-headline" id="bkmrk-usages-1">Usages</span>

TS has built multi-tenancy support allowing to build segregated applications for multiple parties, while still having users working across organizational units.

Data in the system can be handled in different ways

- Owned by a single group of users
- Shared resource across groups (often readonly)
- Hidden resource (templates etc.)

Essentially this feature is just one of the ways Advanced permissions can be configured.

## <span class="mw-headline" id="bkmrk-saas-onboarding-1">SAAS onboarding</span>

In TS it is quite easy to build SAAS application, because the onboarding can be fully automated.

The process includes

- User signup form 
    - Optionally accept from administrators
- Optional: Contract 
    - Generate and send contract
    - Digital signing of contract
- Profile creation 
    - User and group creation
    - Welcome information

## <span class="mw-headline" id="bkmrk-context-switching-1">Context switching</span>

Users not belonging to a tenant group will sometimes need to impersonate one.

By clicking the context swtcher component, the system start to behaving as if that user was a tenant of that group.