Multi-tenant SaaS and the LGPD: how to isolate each customer’s data and respond to incidents
In a SaaS, many customers’ data share the same infrastructure. With Brazil’s data protection authority turned into a regulatory agency in 2026, isolation, access logs and an incident plan are no longer a technical detail.
Victor Toschi, Managing Director of Group Toschi · · 4 min read
In a multi-tenant SaaS, every customer uses the same application and, often, the same database. The main obligation of whoever builds it is to ensure that no customer sees another customer’s data. Under Brazil’s General Data Protection Law (LGPD, Law 13.709/2018), the SaaS provider usually acts as a processor, handling personal data on behalf of each customer, who is the controller. This requires demonstrable technical isolation, clear contracts and a plan to notify the customer quickly if something goes wrong.
Why the topic gained weight in 2026
Law 15.352 of 25 February 2026 turned the National Data Protection Authority (ANPD) into a regulatory agency, with functional, technical, decision making, administrative and financial autonomy, created its own career of specialists and expanded its capacity to regulate and enforce, according to Agência Gov. The LGPD already provided for sanctions ranging from a warning to a fine of up to 2% of the company’s revenue in Brazil in the last fiscal year, capped at R$ 50 million per violation. With a better structured authority, it is prudent to expect more enforcement, and business customers already ask for security evidence before signing up for a SaaS.
Three isolation models
There is no single correct model. The choice depends on the customer profile, the volume and sensitivity of the data and the cost the product can bear.
- Shared database with a customer identifier in every table: cheaper and simpler to run, it requires a mandatory filter on every query, ideally with row level security policies in the database itself
- Separate schema per customer on the same server: better isolation and easier export or deletion of one customer’s data, with more work on structural updates
- Dedicated database or environment per customer: the strongest isolation, suited to large customers or sensitive data, with higher infrastructure and operating costs
What the architecture must guarantee
Whatever the model, some controls are essential. The customer identifier must come from the authenticated session, never from a parameter the user can change. Automated tests should try to access another customer’s data and fail. Encryption keys, uploaded files, processing queues and backups must also respect the separation. The LGPD requires controllers and processors to keep records of processing operations and requires processing agents to adopt security measures capable of protecting data from unauthorized access. In practice, this means access logs per customer, well defined permission profiles and an audit trail of administrative actions.
Add to the delivery process a test that creates two fictitious customers and, using one customer’s user, tries to read, change and export the other’s data. If any attempt succeeds, the release should not go to production.
Incidents: who notifies and how fast
Under the Security Incident Reporting Regulation, approved by ANPD Resolution 15/2024, the controller must notify the ANPD and the affected data subjects within three business days, unless specific legislation sets a different deadline, when the incident may cause relevant risk or harm to data subjects. The processor does not make this notification, but must inform the controller without undue delay and provide the necessary information, and the ANPD itself recommends setting these duties out in the contract. For a SaaS, this means being able to identify quickly which customers, which data and which data subjects were affected, which is only possible if customer separation and logs are done well.
Frequently asked questions
Is every SaaS a data processor? In most cases, yes, regarding the data customers enter into the system. For data about its own customers and users used in billing, support and marketing, however, the SaaS is a controller. The contract should make these roles clear.
Is a shared database insecure? Not necessarily. It is secure when the customer filter is mandatory and tested, including at database level. The risk lies in relying only on the care of whoever writes each query.
Does Toschi Technology design this architecture? Yes. Multi-user architecture and security are part of our SaaS development, with isolation tests, access logs and an incident response playbook. The legal drafting of contracts should be validated by the company’s lawyer.
Sources and references
- Lei Geral de Proteção de Dados (Lei nº 13.709/2018)
- Agência Gov: Lei nº 15.352/2026 transforma a ANPD em agência reguladora (03/03/2026)
- ANPD: comunicação de incidente de segurança (Resolução CD/ANPD nº 15/2024)
- Autoridade Nacional de Proteção de Dados (ANPD)
Informational content. It does not replace advice from a lawyer, accountant or financial institution.