Skip to content

LGPD legal bases: when to use each ground for processing

Every processing activity needs a legal basis. Choosing the right one avoids the most common compliance mistake, which is asking for consent for everything.

Reading time
8 min
Published

The LGPD (Brazil's General Data Protection Law) does not forbid anyone from processing personal data. What it requires is that every processing activity rest on a justification provided for in the law, called the legal basis. There are ten grounds in Article 7 for ordinary data and a separate list in Article 11 for sensitive data. Processing that has no basis to support it is irregular, however useful it may seem.

Choosing the basis is a legal decision, but knowing the options helps any area of the company avoid the classic mistake of asking for consent for everything. In the daily life of a company, some bases are used far more than others, and what matters is understanding when each one makes sense.

This guide covers the technical security layer that supports personal data protection. It is informational content, not legal advice, and it does not replace guidance from your company's DPO or legal team.

The ten legal bases in Article 7

Article 7 lists ten grounds that authorize the processing of ordinary personal data, and they cover very different situations (the consent of the person and the protection of life are on the same list, for example). The company does not pick the basis it likes best. It fits each processing activity to the basis that matches the reality of that data flow.

  • Consent of the data subject
  • Compliance with a legal or regulatory obligation
  • Implementation of public policies by the public administration
  • Studies carried out by a research body, with anonymization whenever possible
  • Performance of a contract, or of preliminary procedures related to a contract, to which the data subject is a party
  • Regular exercise of rights in judicial, administrative or arbitration proceedings
  • Protection of the life or physical safety of the data subject or of a third party
  • Protection of health, in a procedure carried out by health professionals or health services
  • Legitimate interest of the controller or of a third party
  • Credit protection

Consent is the best-remembered basis and perhaps the most misused. It requires a free, informed and specific expression of will and can be withdrawn at any time, and that is where the problem with overusing it lies. If the company relies on consent for a processing activity it has to carry out anyway, such as keeping the invoice for a sale, it ends up in a contradiction the day the customer withdraws consent.

The practical rule is to reserve consent for what is truly optional for the person, such as receiving marketing communications. For the processing the operation requires, other bases describe reality better and do not depend on an authorization that can be taken back.

Three bases support much of everyday processing. Compliance with a legal obligation covers what the company has to do to meet the law, such as keeping tax and employment records for the required periods. Performance of a contract covers the processing needed to deliver what the customer signed up for, from registration to billing; after all, anyone who hires a service expects the company to use their data to provide it.

Legitimate interest is the most flexible basis and also the one that calls for the most care. It allows data to be processed for legitimate company purposes that the person would reasonably expect, such as fraud prevention or the security of the operation itself, as long as this does not override the rights of the data subject. Before relying on it, the company has to weigh the benefit of the processing against the impact on the person, in what is called the balancing test.

Fitting common processing to a basis in practice

The theory gets clearer when applied to the processing almost every company does. The examples below show the reasoning, but remember that the final choice of basis is a legal decision and depends on the context of each operation.

  • Issuing invoices and keeping accounting records: compliance with a legal obligation
  • Registering a customer and billing for a contracted service: performance of a contract
  • Keeping employee data required by labor law: legal obligation
  • Preventing fraud and protecting the security of the operation: legitimate interest, with a balancing test
  • Sending newsletters and offers to people who opted in to receive them: consent
  • Processing health data in a medical service: protection of health by a professional

Note that consent appears only where the choice really belongs to the person. Forcing it onto processing the company has to do anyway turns the logic upside down and creates the withdrawal problem. Compliance becomes solid when each flow gets its basis from its own reality, not from whichever basis is best known.

Bases for sensitive data

Sensitive data has its own, narrower list, in Article 11. Legitimate interest, for example, does not apply to sensitive data. The grounds that do not require consent are specific: compliance with a legal obligation, implementation of public policies, studies by a research body, exercise of rights in proceedings, protection of life, protection of health by professionals and fraud prevention in identification processes in electronic systems.

When the basis for sensitive data is consent, it has to be specific and given distinctly, making clear that the data is sensitive and what it will be used for. The rule is stricter because the risk is higher: a leak of health or biometric data hurts the person far more than the leak of an email address.

Practical checklist

  • Fit each processing activity to one of the bases in Article 7
  • Reserve consent for what is truly optional
  • Use legal obligation for what the law requires you to keep
  • Use performance of a contract for what is needed to deliver the service
  • Document the balancing test when relying on legitimate interest
  • Apply the specific list in Article 11 to sensitive data
  • Review the bases when the purpose of the processing changes

Best practices

  • Choose the basis by the reality of the data flow, even if it is not the best known
  • Avoid consent for processing the company has to do anyway
  • Put the justification for legitimate interest in writing
  • Handle sensitive data under its own, narrower list
  • Review the bases whenever you create a new use for the data

Common mistakes

Asking for consent for everything
Necessary processing is left without a basis when the data subject withdraws consent.
Relying on legitimate interest without a balancing test
The company cannot justify the processing if it is challenged.
Applying legitimate interest to sensitive data
That basis is not allowed for sensitive data; the processing becomes irregular.
Not reviewing the basis when creating new uses
Data collected for one purpose ends up used for another without legal support.

Further study: recommended courses

These free courses from Valor Final are taught in Portuguese. They help you take the subject of this guide from theory to practice at your own pace.

Authorship and review

Cesar Gargiulo

CEO and founder of GUARDIASEC. Technical and editorial lead for the content published in this library.

Published on . Found a technical error? Write to [email protected] and we will correct it and keep a record of the change.

Frequently asked questions

Can I use legitimate interest for marketing?
In some cases, yes, but carefully and within limits. Legitimate interest can support communications to current customers about similar products, within what the person would reasonably expect, as long as there is an easy way to opt out. For more aggressive prospecting, or for an audience with no relationship to the company, consent is usually the appropriate basis. The balancing test helps you decide.
Does consent have to be in writing?
It has to be unambiguous and demonstrable, but it does not need to be signed on paper. What matters is that the company can prove the person agreed freely, in an informed and specific way, with a record of when and for what, and an electronic acceptance with that record does the job. For sensitive data, consent has to be specific and given distinctly.
What happens if I process data without a legal basis?
The processing becomes irregular, however useful or well-intentioned it is. In an inspection, the lack of a legal basis is an irregularity that can lead to the sanctions in Article 52, which range from a warning to a fine. And the risk does not stop at the sanction: processing data without a basis also exposes the company to complaints from data subjects and to lawsuits.
Can I change the legal basis of a processing activity later?
Changing the basis of the same processing is delicate and not always possible, because the basis shapes the expectations and the rights of the person. Switching from consent to legitimate interest just to get around a withdrawal, for example, is not acceptable. The right approach is to define the appropriate basis from the start, with legal support, and to review it when the purpose truly changes.

When to bring in specialist help

Defining the legal bases is work for the legal team, but it depends on knowing precisely which processing activities exist and how data moves through the systems. GUARDIASEC delivers that technical map, which shows where each piece of data is collected, processed and shared, so that the legal basis is defined on facts and not on assumptions.