Skip to content

LGPD data mapping: the inventory that compliance rests on

You cannot protect or justify data you do not know you have. Mapping is the first practical step and the basis for almost every decision that follows.

Reading time
7 min
Published

Data mapping is the survey of which personal data the company processes, where it comes from, where it is stored, who accesses it, who it is shared with and how long it is kept. It looks like bureaucracy, but it is what makes everything else possible. The legal basis, rights management, risk assessment and incident response all rest on this picture.

The LGPD (Brazil's General Data Protection Law) also provides for a record of processing operations, documentation that describes the processing carried out, and the mapping is what feeds that record. The challenge is to do the survey in a useful way, without it turning into a giant spreadsheet nobody maintains.

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.

What to capture for each processing activity

A good mapping answers a handful of questions for each data set: what the data is and whether any of it is sensitive; where it came from (the data subject, third parties or the company itself); which systems and services store it; who has access, inside the company and at vendors; who it is shared with; and how long it is kept, with what justification.

Put together, these answers form the inventory. With it, the company can see where risk is concentrated, which data could be discarded and which flows need a clear legal basis. The inventory also reveals what tends to slip through, such as copies on personal drives, old exports and forgotten integrations.

  • What data, and whether any of it is sensitive
  • Where the data comes from
  • Where it is stored
  • Who accesses it, inside and outside the company
  • Who it is shared with
  • How long it is kept, and why

Follow the flows, not just the databases

Mapping the database tables is the start, but data moves. A sign-up comes in through the website, goes to the sales system, gets exported to a spreadsheet, is uploaded to an email marketing tool and ends up in a report. With each hop the data exists in one more place, with its own controls and risks, and following that path is how you find the exposures a static inventory does not show.

By following the flows, you find out, for example, that customer data travels to a vendor without a proper contract, or that a spreadsheet with personal data lives on a drive shared with half the world. These are exactly the points an incident tends to exploit.

Technical discovery and classification

Asking each department what data it processes is the starting point, but people's memories have gaps. Technical discovery complements the interviews: scanning databases, storage buckets and repositories for patterns that give away personal data (Brazilian CPF taxpayer numbers, email addresses, card numbers) finds what nobody remembered to mention. This survey often turns up forgotten data in test environments, in old exports and in logs that keep more than they should.

Classifying what you find gives the effort focus. When each data set gets a sensitivity level (from public to sensitive), you can concentrate the strongest controls where the risk is highest instead of treating everything the same. Classification also guides retention, the processing record and incident response, since the severity of a leak depends directly on the category of data exposed. This discovery and classification work is where GUARDIASEC provides technical support: we give the DPO (called encarregado under the LGPD) a picture of what exists and of where the critical points are.

Retention and disposal

Personal data that no longer needs to exist brings only risk, with no benefit. The LGPD works with the principles of necessity and purpose: data should be kept only as long as needed to fulfill the purpose that justified collecting it, except where there are legal retention periods. Mapping is where you define, for each data set, how long it makes sense to keep it.

Setting retention periods and discarding what is past its deadline shrinks the amount of data the company has to protect. With less data stored, there is less to leak, less to gather for an access request and less to move during an incident. Disposal has to be secure, so that deleted data does not come back from a forgotten backup.

From the map to the processing record

The record of processing operations is the documentation the LGPD expects the controller to keep, describing the processing it carries out. The record draws directly on the mapping: purposes, legal bases, categories of data and of data subjects, sharing and retention periods all come from what was surveyed. For small-scale processing agents, the ANPD (Brazil's National Data Protection Agency) allows a simplified record.

The record only has value if it is kept alive. A document put together once and then forgotten describes a company that has already changed. Ideally, creating a new processing activity should naturally include updating the map and the record, so the documentation stays true.

Practical checklist

  • Find out which personal data the company processes and whether any of it is sensitive
  • Record the source of each data set
  • Map where the data is stored, across every system
  • Identify who has access, internally and at vendors
  • Follow the flows, including exports and spreadsheets
  • Set retention periods and discard what is past its deadline
  • Build the record of processing operations from the map
  • Update the map and the record with every new processing activity

Best practices

  • Start mapping with the highest-risk data, such as sensitive data
  • Map the data flows in addition to the static databases
  • Use the map to discard data that no longer needs to exist
  • Keep the processing record alive, with an update for every change
  • Treat disposal as part of mapping, with secure deletion

Common mistakes

Mapping only the official systems and ignoring spreadsheets and drives
Copies of data outside the systems go uncontrolled and become gaps.
Building the map once and never updating it
The documentation describes a company whose operations have already changed.
Keeping data with no retention period
The amount of stored data only grows, and the risk grows with it every year.
Deleting data without considering backups
Data believed to be deleted reappears from an old copy.

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

Do I need a specific tool to map data?
Not necessarily. Smaller companies can start with a well-structured inventory in a spreadsheet, provided it follows the flows and is kept up to date. Dedicated tools help when the number of systems and processing activities grows, because they automate discovery and maintenance. In the end, what counts is the quality of the survey more than the tool used.
What is the record of processing operations?
It is the documentation that describes the personal data processing carried out by the company, with purposes, legal bases, categories of data and of data subjects, sharing and retention periods. The LGPD expects the controller to keep this record, and the ANPD accepts a simplified format for small-scale processing agents. The information comes directly from data mapping.
How long can I keep the data?
For as long as needed to fulfill the purpose that justified collecting it, respecting legal retention periods where they exist, such as tax and employment ones. Once the purpose is fulfilled and the legal period has expired, the data should be deleted or anonymized. Setting these periods by type of data is part of mapping and reduces the risk surface.
Is data mapping a one-time job?
No, the mapping is a living document. Every new system, vendor or use of data changes the map, and an outdated inventory misleads more than it helps. Ideally, updating the map is built into the workflow, so that creating a new processing activity already includes recording which data it uses, where that data is stored and for how long.

When to bring in specialist help

In LGPD support work, one of the main things GUARDIASEC delivers is a technical map of where personal data is, who accesses it and where it travels. We survey the flows in the systems and in the cloud, point out exposures and copies that are out of control, and deliver the picture that supports the processing record and the decisions of the DPO.