Saltar al contenido

Lección 23 · Trust and Accuracy

Privacy, Access and Governance

Protect data in reports: minimize personal data, classify and restrict access, suppress small groups, handle exports and AI tools, and assign clear ownership.

Reports spread. A file sent to ten people can be forwarded to a hundred, saved on a personal laptop or pasted into a chat. A dashboard link can be shared with someone who should never see its rows. This lesson gives practical habits for protecting data. It is general education, not legal advice. Laws on personal and sensitive data differ between countries and industries, so ask your privacy, security or legal specialists about your situation.

Minimize first

The safest sensitive data is data that your report does not contain. Ask for each column: does the reader need it to make the decision? Often a count by group is enough, with no names at all. Remove birth dates, contact details and free-text comments unless there is a clear need. Free text deserves special care, because people may type sensitive information into any field.

Classify the content

Many organizations use classes similar to these. Use your own organization's definitions.

Class Example Typical handling
Public Published annual figures Anyone may see
Internal Team volume trends Staff only
Confidential Revenue by customer Named groups
Restricted Health, salary or ID data Strict approval and logging

The class of a report follows its most sensitive content. A report that combines two harmless files may become sensitive.

Access control

  • Grant access by role through groups, not one person at a time where possible.
  • Follow least privilege: give only what each role needs.
  • Apply row-level rules (a manager sees only their region) and column-level rules (only certain roles see salary) where data is served.
  • Remember that exports, screenshots and attachments leave these controls behind.
  • Review access regularly and remove it when roles change.
  • Test with accounts for each role, so you know what each really sees.

Aggregates can still identify people

A table of averages can reveal an individual when a group is tiny. If a department has one person in a certain age band, the "average salary" for that cell is that person's salary. A common protection is small cell suppression: hide values for groups smaller than a chosen minimum. The right minimum depends on your rules and the sensitivity of the data.

Python Suppress small groups

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Suppression alone is not always enough. If a published total includes a suppressed cell and only one cell is hidden, a reader can subtract the visible cells and recover it. Multiple overlapping reports can reveal values in the same way. Review totals and related outputs together, and consider combining categories.

Python See how subtraction reveals a hidden value

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Masking and pseudonyms

Masking hides part of a value, such as showing only the last digits of an account number. Pseudonymization replaces identities with codes. Neither automatically makes data anonymous: a combination such as job title, location and date may point to one person. Treat pseudonymous data as sensitive, and do not assume that hashing a name makes it safe, since common values can be guessed and hashed for comparison.

Sharing, retention and copies

  • Prefer links to controlled locations over attachments.
  • Label files with their class and owner.
  • Check recipient lists before every new distribution, especially outside the organization.
  • Keep reports only as long as your retention rules require, and delete or archive them according to those rules.
  • Do not use real personal data in demos or test environments unless approved. Made-up data is safer.

AI tools and external services

Pasting a report into an online tool can send data outside your organization. Use only tools approved for that data class, follow your policy on what may be shared, and remove identifiers when they are not needed. Check any text or calculation that a tool returns.

Governance in small steps

Governance is how an organization decides who is responsible for data and its use. You can start small:

TEXT
For each report, record:
  Owner            who decides content and access
  Steward/analyst  who maintains logic and fixes problems
  Classification   and the reason
  Audience         roles allowed, how access is granted
  Sources          and their owners
  Retention        how long outputs are kept
  Review date      access and usefulness

An inventory with these fields helps when someone asks, "Who can see salary data?" It also shows reports without owners, which are a risk.

If something goes wrong

If data reaches the wrong person, report it immediately through your organization's incident process. Do not try to fix it quietly, and do not wait to see whether anyone notices. Specialists may need to act within deadlines. Preserve the facts: what was sent, to whom and when.

A short review before sharing

Before a new report or a new recipient, answer these questions: Why does this person need it? What is the most sensitive item in it, including what can be worked out from it? Where will copies end up? How will access be removed later? If you cannot answer one of them, pause and ask the data owner. A short delay is much easier to handle than data that has already left your control.

Record the answers with the report's inventory entry, so that the next review can start from them. Repeat the review when you add a column, a source or an audience.

Review the whole inventory on a regular schedule too, not only when something changes.

A hidden column, a hidden sheet or a visual filter is not protection. If data is inside the file or sent to the browser, assume that a recipient can reach it.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. What is the first and often strongest privacy step for a report?

    Data that is not included cannot leak from the report.
  2. 2. Why may hiding one small cell be insufficient?

    Totals and related reports can reveal suppressed values.
  3. 3. Does replacing names with codes make data anonymous?

    Pseudonymous data can often be linked back to a person.
  4. 4. You sent a restricted file to the wrong person. What should you do?

    Prompt reporting lets the right people respond, possibly within required deadlines.

Summary

  • Include only the data that the decision needs.
  • Classify reports and enforce least-privilege access where data is served.
  • Protect small groups, and check totals and related outputs.
  • Treat masked or pseudonymous data with care, and control copies and external tools.
  • Give each report an owner and report incidents at once.

Next: Project: Weekly Sales Summary

Tu progreso se guarda en este navegador. No necesitas una cuenta.