Multi-tenancy allows client organizations to use the same applications through tenants. This way, screens and business logic of applications are shared, though data and end-users are isolated per tenant.

To implement a Multi-tenant application proceed as follows:

  1. Use the Users application as User Provider, the OutSystems Platform automatically constrains end-user per tenant for you.

However, if you are using another User Provider, make sure that it is Multi-tenant to attain isolation of end-users per tenant.

  1. Set all eSpaces of the application as Multi-tenant in the Is Multi-tenant property of those eSpaces: all tenant-specific elements of the eSpace inherit this setting;

  2. In each eSpace, check which tenant-specific elements have no data isolation and change their Is Multi-tenant property to 'No'.

Managing Tenants

Tenants are created and disabled at runtime. Design specific business logic in your application (using Tenant...System actions) to create a tenant for each organization that registers to use your application.

During the development of the application, Service Center can also be used to create and disable tenants.

Both the creation of new tenants and the disable of executing tenants has no impact on any other executing tenant whatsoever.

To learn more about Multi-tenant development and management please refer to the How To Build a Multi-tenant Application technical note.

See Also

About Multi-Tenancy | Single Sign-On | About Sessions In OutSystems Platform | Tenant-Specific Elements