How PDPL obligations become schema, permission, retention and incident decisions inside a product, with evidence a team can actually show.
Most teams meet the Personal Data Protection Law at the end of a project, when a lawyer is asked to review a privacy policy and a checkbox. By then every decision the law cares about has already been made: which fields exist, which service may read them, how long the backup keeps them, and what the application does when someone asks for their data or when a record leaks. A policy cannot repair a schema. The law is in force, and the questions it asks are answered by the product, not by the document that describes it.
Three earlier articles approach this from different angles: the privacy-by-design checklist lists the decisions as principles, the client-portal checklist applies them to one kind of product, and the residency article follows where copies of the data actually live. This one is narrower and less comfortable: it takes the obligations that reach a development team and turns each into an artefact you can point at in a repository or an audit — a field list, a deletion job that runs on time, an access matrix, and a runbook whose clock starts at the hour of discovery. Where this article and the regulation disagree, the regulation wins; nothing here is legal advice.
Why the obligations end up in the database
The regulation does not ask you to feel a certain way about privacy; it asks you to be precise about what you do. Read the early provisions and the questions look remarkably like design questions: what is the purpose of the processing, is it legitimate, what is the least data that achieves it, who may reach it, how long does it stay, and how is it removed. None of these is answered by a paragraph in a policy. Each becomes a decision in the schema, in the permissions or in a scheduled job, or it stays unanswered and becomes an open risk.
So the practical split becomes: what is decided at requirements, what is built in code, what is run as operations, and what is proven when someone asks. A team that separates those four knows where to look when scope changes. A team that blends them writes a handsome policy and then discovers, at the first user request, that it has no way to export that user's data and no log that shows who read it.
Lawful basis is a product decision
Not every processing operation needs consent. The law lists several lawful grounds, and consent is only one of them; alongside it sit a legal obligation, performance of a contract, a vital interest, a public interest and others the text names. Each ground implies different behaviour in the interface and in retention. Where the ground is a contract, withdrawal means stop processing and hand over what the user owns, not simply switch off a checkbox. Where the ground is a legal obligation, offering an opt-out the user cannot actually exercise is theatre.
The common error runs in two directions. The first is a consent banner over processing that never needed consent and cannot be withdrawn, which manufactures an obligation that did not exist and confuses the user. The second is a legitimate-interest label over marketing that required an explicit choice. Both are cheap to fix on the requirements page and expensive once the data is in production and the banner is part of a contract with an entity. Write one line in the requirement: the purpose, the ground, and what happens on withdrawal. That line governs the copy, the permission and the retention period at once.
The obligations that become a table
The table below gathers the obligations that usually reach a development team, and puts beside each one the decision it settles and the artefact that can be shown. It is not an official list and not a substitute for reading the implementing regulation, but it is a practical ordering of the questions that recur in reviews, and it works as a map of what should exist before it is requested.
| Obligation | What it settles in the build | The artefact you can show |
|---|---|---|
| Ground and purpose | Whether the field may exist at all, and which screen asks for it | A written purpose per data set, tied to the ground relied on |
| Minimisation | Optional fields, derived data, analytics events | A field inventory with a reason and an owner for each |
| Retention and disposal | Periods, archive tier, backup expiry, deletion versus masking | A scheduled job and a run log proving it executed |
| Access and roles | Who reads, who exports, what support can see | A role matrix and dated access reviews |
| Data-subject rights | Export, correction, deletion, withdrawal of consent | A working path, a ticket trail, and a response window you can meet |
| Incident handling | Detection, containment, notification, preservation of evidence | A runbook, a contact list, and a drill that actually ran |
The third column is what decides the conversation. Entities rarely argue about the text of a policy; they ask for the list, for the job that deletes, for the matrix, and for the log. A team holding those four can answer in a single meeting. A team holding only a policy asks for time, and time on a government project reads as weakness rather than preparation.
Minimisation, retention and access are code
These three are usually written as principles and implemented as nothing. Each needs an owner and a mechanism, not an intention. The test is simple: ask why one field exists, when one table is deleted, and what one role can see. If two people on the team answer differently, the principle has not reached the system yet.
A field that does not exist cannot leak. Challenge every optional field with one question: which decision does it support? If none, remove it from the requirement, not just from the screen.
A deletion date per table, not per policy. Record the period in the schema itself, run deletion as a job, and log the result so the gap between what was said and what ran becomes visible.
Deletion has to mean deletion: follow the copies into search indexes, caches, analytics and backups, or mask irreversibly and say plainly that this is what you do.
Access by role, not by goodwill: support sees masked values by default, and export is a separate permission granted for a reason and reviewed on a date.
Export is built before launch: subject access means the user's own data in a readable format, not a database dump an engineer sends three days later.
Logs without payload: log the event, the actor and the time, not the message body or the identity number. The log that protects the organisation must not become a second archive of personal data.
Test data that is not production data: synthetic or irreversibly masked, with one rule that does not bend under a delivery deadline.
The impact assessment is a design document
A data-protection impact assessment is usually produced at the end of a project to satisfy a checklist, which is exactly why it becomes useless. Written at the start, it is the one document that forces the right questions: what is the processing, who is affected, what could go wrong, what reduces the risk, and what remains after mitigation. The useful output for a team is not a twenty-page file; it is a short list of decisions, each with an owner and a date.
From reading to shipping
Want this built, not just explained?
Bring us the problem behind the article. We will tell you what it takes, what it costs, and whether we are the right team.
When is it required? Where processing is high risk: sensitive data at scale, systematic monitoring, profiling of individuals, new technology, or the matching of two data sets. The implementing regulation and the guidance published by the Saudi Data and AI Authority set the triggers precisely; read them at the official site rather than relying on a summary. The working rule: if you have to persuade yourself the risk is low, you need the assessment.
A breach is a runbook with a clock
The amendments published for consultation on the implementing regulation propose notification within seventy-two hours of becoming aware of a breach, and remove the harm threshold. Whether that text is adopted as drafted or changes, the operational consequence is the same: the clock starts when someone notices, not when the investigation ends. A team that finds the problem on Thursday and assembles the facts on Sunday has exceeded the window before writing a line.
So before an incident there must exist: a named on-call person, a way to answer from logs — what data, for whom, how many records, and whether it is still exposed; a containment switch that does not require a deploy; a notification template; and a contact list that includes the entity's data-protection officer. Then at least one drill: a tabletop session exposes in two hours what a review misses in two weeks. If the system serves a government entity, test the path with them, not only inside your own team.
What to do this week
Do not start with a policy. Start with an inventory: open the schema and write, against each data set, its purpose, the ground you rely on, who reads it, and when it is deleted. Then open the task list and mark which of those actually run and which are a promise nobody implemented. The gap between the two is your real work list, and it is shorter than the regulation and more precise than general advice. Once the picture is clear the next question is architectural: where the boundary sits between what your team builds and what you buy, which we discuss in build versus buy. If you want to see how we turn these obligations into an execution plan inside enterprise systems, that is the work we do with teams building systems that touch real data.
Frequently asked questions (FAQ)
Does the law forbid storing data outside the Kingdom?
The current position is more detailed than yes or no, and the published amendments propose a general move toward storage inside the Kingdom with limited exceptions. In practice this is a contractual and regulatory question before it is a cloud question: read what your entity requires and what the contract states, then design the map on that basis. We set out the full map in the residency article.
Do we need consent for everything?
No. Consent is one ground among those the law lists, and using it where it is not needed creates a withdrawal obligation you may not be able to honour. The right question is not where to put the checkbox but which ground you rely on and what follows when it changes. Write the answer in the requirement, not in the policy.
How long should we keep data?
The regulation does not set one number for all data; it ties the period to the purpose. Derive the period from the purpose and from any legal obligation, then write it into the schema and enforce it as a job. A period that is not written down is not a period; it is an intention.
Is a published privacy policy enough?
A policy describes processing; it does not implement it. A reviewer asks for fields, jobs and logs, and a user requests their data from an interface, not from a page. The policy is necessary for transparency, but it does not replace the four artefacts this article is built around.
Sources
Saudi Data and AI Authority — the authority responsible for personal-data protection and its published regulations.
Personal Data Protection portal — official texts and guidance.
Bureau of Experts at the Council of Ministers — published regulations.
National Cybersecurity Authority — national controls that intersect with data protection.
OWASP — freely available engineering references for access design and logging.
Cover image: Sasun Bughdaryan, Unsplash License, via Unsplash.

