Course contentsShow
← Security
Lesson 2931 of 3,05254. Privacy EngineeringFree lesson

Legal Bases for Data Processing

Understanding consent, legitimate interest, contract, legal obligation, and other lawful bases under GDPR and privacy laws.

Legal Bases for Data Processing

What You'll Learn

You'll understand the six lawful bases under GDPR that justify collecting and processing personal data, and how to correctly select and apply them in privacy engineering.

The Foundation of Lawful Processing

Before you process any personal data, GDPR requires you to identify a legal basis—a legitimate reason that makes the processing lawful. Think of it like needing a valid license before you can drive: without one, the activity is prohibited no matter how carefully you do it.

The Six Legal Bases Under GDPR

  1. Consent: The individual has given explicit, informed, freely-given permission. This is revocable at any time and must be as easy to withdraw as to give.

  2. Contract: Processing is necessary to fulfill a contract with the individual (e.g., processing shipping addresses to deliver purchased goods).

  3. Legal Obligation: You must process the data to comply with law (e.g., tax reporting, court orders).

  4. Vital Interests: Processing is necessary to protect someone's life (rare; used in emergencies).

  5. Public Task: Required for official functions or tasks in the public interest (government agencies, regulatory bodies).

  6. Legitimate Interest: You have a genuine business or operational reason that doesn't override the individual's rights and freedoms. This requires a Legitimate Interest Assessment (LIA) balancing your needs against privacy impact.

Choosing the Right Basis

You cannot switch legal bases freely—select the most appropriate one initially. Consent is restrictive (easily withdrawn); contract is specific to contractual obligations; legitimate interest offers flexibility but demands documented justification. The choice affects user rights: consent-based processing allows easy opt-out, while contract-based does not.

Many privacy-preserving technologies you've studied (differential privacy, secure computation, anonymization) become risk mitigations when documenting your chosen legal basis—they demonstrate you're minimizing privacy impact.

Key Takeaway: Every data processing operation must rest on one of six GDPR legal bases; selecting the wrong one or failing to document it properly makes otherwise well-engineered privacy controls legally insufficient.