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.
Curso de LGPD Essencial
FreeFree LGPD course for people who work at a company. In plain language and based on official sources, it shows in practice what can and cannot be done with the data of customers, coworkers and suppliers. Course in Portuguese.
Valor Final View courseCursos do Valor Final
With certificateA portal of free online courses that issues a certificate when you complete a course. The privacy and data protection track starts with the LGPD course and adds new courses over time. Courses in Portuguese.
Valor Final View course
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.