Web & integrations
Multi-tenant SaaS: data isolation is a core requirement
Plan a SaaS product for multiple organisations through accounts, roles, access boundaries, files, reporting and background processing.
In a SaaS platform, different companies use the same product. Managing boundaries between customers is therefore a core architectural task. Signing in is only the beginning of access control.
The key decision
Check organisation scope whenever data is accessed. The boundary must cover files, reports, caches and background jobs too.
Define the organisation model
Decide whether a person can join multiple companies and how switching works. Their role may differ in each organisation. Changing the active company must not leave context from an earlier request.
AWS treats tenant isolation as a separate SaaS architecture concern. The approach depends on the product and infrastructure; one mechanism does not suit every situation.
Check every path to the data
Filtering a list is insufficient if a direct URL opens another tenant’s record. Checks are needed for reading, changing, deleting and downloading information.
- Queries use verified organisation context.
- Caches and files do not mix customer data.
- Background jobs retain the correct scope.
- Administrative access has a defined reason and history.
- Exports contain only authorised records.
Test with two separate organisations
Create similar records in two companies and attempt access using the other company’s user. Repeat this for search, attachments, reports and APIs.
MSS can help design accounts, APIs and business rules for SaaS. Isolation and operations should be planned before expanding into subscriptions and additional modules.