Aadhib
ENع

AI NOTE

PDPL and AI: an engineer's checklist for Saudi companies

The engineering questions the Saudi Personal Data Protection Law raises for an AI project, from prompts and vector stores to model APIs abroad, mapped to the articles in SDAIA's published texts.

Most of what is written about the PDPL and AI stops at one sentence: "make sure your AI is compliant with the PDPL." That is true and useless. It does not tell the engineer building a document assistant what to do with the prompt logs, or tell the product owner whether calling a model API in another country is allowed.

The other common answer is a long summary of the whole law, article by article, with nothing about where an AI system actually touches it. The law is general. It does not mention language models, embeddings or agents. The work is in mapping its obligations onto the parts of an AI system that hold personal data.

That is what this article does. I read the Personal Data Protection Law, its Implementing Regulation and the transfer regulation on SDAIA's National Data Governance Platform on the publish date, and turned the parts that matter for AI into twelve engineering questions. The official texts are in Arabic; the summaries below are my own English rendering of them, and the article numbers are given so you can check each one. This is not legal advice. Where a question needs a legal conclusion, I say so, and that conclusion belongs with your counsel.

The short answer

Before an AI system that touches personal data goes live in Saudi Arabia, you should be able to answer these in writing:

#QuestionWhere it comes from
1Where does personal data appear in the AI pipeline?Law, Art. 1 and 31
2What is the legal basis and purpose, and is this a new purpose?Law, Art. 5, 6 and 10
3Is the model seeing only the minimum data it needs?Law, Art. 11; Regulation, Art. 19
4Does any personal data leave the Kingdom, and on what basis?Law, Art. 29; Transfer Regulation
5Do the vendor terms contain what the Regulation requires of a processor?Law, Art. 8; Regulation, Art. 17
6Will any decision be made entirely by automated processing?Regulation, Art. 4 and 11
7Has a written impact assessment been done?Law, Art. 22; Regulation, Art. 25
8Can you delete one person's data everywhere, including backups?Law, Art. 18; Regulation, Art. 8
9Can you answer an access request within 30 days?Law, Art. 4 and 21; Regulation, Art. 3
10Can you detect a leak and notify SDAIA within 72 hours?Law, Art. 20; Regulation, Art. 24
11Is the AI processing in your records of processing activities?Law, Art. 31; Regulation, Art. 33
12Do you need a data protection officer, and are they involved?Law, Art. 30; Regulation, Art. 32

A "no" or "we don't know" on any line is the next piece of work. None of these answers makes a system compliant on its own; they are the evidence your data protection lead and counsel will ask for.

Why AI systems are a special case under the PDPL

The law's definition of personal data is broad: any data, whatever its source or form, that leads to identifying an individual specifically or makes it possible directly or indirectly (Art. 1). Its definition of processing is just as broad, and includes collection, storage, indexing, retrieval, merging, use, transfer and destruction.

An ordinary business application holds personal data in a database. An AI system built on the same data typically creates several more copies:

  • Prompts, including whatever a user pastes in.
  • Retrieved passages in a retrieval system, copied into the prompt.
  • Embeddings stored in a vector database, derived from the documents.
  • Model outputs, which can repeat or infer personal details.
  • Logs and traces, often kept by both your application and the vendor.
  • Evaluation sets and test fixtures, usually built from real examples.
  • Training or fine-tuning data, if you go that far.

Each is processing under the law's definition. The checklist below exists because these copies are created quietly, by frameworks and default settings, and nobody puts them on the data map unless someone asks.

The scope matters too. The law applies to processing in the Kingdom and to processing of data about residents of the Kingdom by any party outside it (Art. 2). A foreign SaaS tool processing your customers' data is not outside the question.

Data, purpose and minimisation (questions 1 to 3)

1. Map the pipeline, not just the database. Draw the flow from source system to model and back, and mark every store from the list above, who can read it and how long it lives. Whether an embedding of a personal document is itself personal data is a question for counsel. My engineering default is to treat it as personal data, because it is derived from it, it is stored, and in a retrieval system it exists precisely to bring the original text back.

2. Check the purpose and the basis. The law's default is that personal data may not be processed, or its purpose changed, without the data subject's consent, except in the cases the law lists (Art. 5 and 6). Data is to be processed only for the purpose it was collected for, with listed exceptions (Art. 10). This is the question AI projects most often skip. Customer emails collected to answer support requests are not automatically available for training a classifier or for a new assistant feature. Where processing for a different purpose is permitted, the Regulation requires you to define the new purpose clearly, record it in your records of processing, and limit the data to the minimum (Regulation, Art. 18). Whether your case fits an exception is a legal judgement.

3. Send the model the minimum. The law requires the data collected to be limited to the minimum needed for the purpose (Art. 11), and the Regulation names data mapping that ties each data item to each purpose as one way to show it (Regulation, Art. 19). In an AI system this becomes concrete engineering:

  • Redact or pseudonymise identifiers before text reaches the model where the task does not need them. A contract summary rarely needs the counterparty's national ID number.
  • Filter retrieval by the user's permissions, so the assistant cannot pull a document the user could not open.
  • Do not put full customer records into a system prompt "for context".

The Regulation also says that properly anonymised data is not personal data, but sets conditions: you must make sure re-identification is not possible and keep testing that it stays so (Regulation, Art. 9). Free text is hard to anonymise reliably, so I would not rely on that route for documents without a specialist review.

Transfers and vendors (questions 4 and 5)

4. Find out where the model runs. The law defines transfer as moving personal data from one place to another to process it (Art. 1). An API call that sends a prompt containing personal data to a model hosted in another country fits that description. Article 29 permits transfers outside the Kingdom for listed purposes and on conditions, including that the transfer does not harm national security or vital interests, that an adequate level of protection exists abroad, and that only the minimum data needed is transferred.

The transfer regulation fills this in:

  • It adds purposes, including operations needed for central processing, providing a service to the data subject, and scientific research (Transfer Regulation, Art. 2).
  • SDAIA publishes a list of countries and organisations it considers adequate (Art. 3).
  • Where an exemption applies, the safeguards are standard contractual clauses, binding common rules or a certification (Art. 4). SDAIA publishes its standard contractual clauses on the same platform.
  • A written risk assessment is required before transfers made under those exemptions, and before continuous or large-scale transfers of sensitive data (Art. 7). It must cover the purpose and basis, the nature and geography of the processing, the safeguards, minimisation, the likely harms and the mitigations.

For the engineering side: know the region every model endpoint runs in, write it down, and make it a configuration value rather than a default someone forgot to change. Whether a given transfer is permitted is for counsel. Where the answer is "keep it in the Kingdom", the options are an in-Kingdom cloud region with the service documented, or a model you run yourself; I compare those in AI tools for businesses in Saudi Arabia in 2027 and Local AI vs cloud AI for Saudi companies. That guide also covers the draft amendments to the Implementing Regulation; this checklist uses only the texts in force as published on SDAIA's platform.

5. Read the vendor terms against Article 17. The law makes the controller responsible for choosing a processor that gives the necessary guarantees and for checking it complies (Art. 8). The Regulation lists what the agreement with a processor must include (Regulation, Art. 17):

  • the purpose of processing, the categories of personal data and the duration;
  • an obligation to notify you of a leak without undue delay;
  • whether the processor is subject to laws in other countries, and how that affects its obligations;
  • the sub-processors it uses, or any other party the data will be disclosed to;
  • and, for any later sub-processor, your prior approval with a window to object.

The Regulation also makes the controller responsible for checking the processor's compliance periodically. For an AI vendor, the practical questions are: is my data used to train your models, how long are prompts and outputs retained, in which regions are they processed and logged, and which sub-processors see them. A consumer plan of a chat assistant is not a processor agreement, which is one reason I recommend a business tier or a private deployment in How to set up a private ChatGPT for your company.

Automated decisions and impact assessments (questions 6 and 7)

This is where the Regulation speaks most directly to AI, without using the word.

6. Decide whether any decision is fully automated. The Regulation requires consent to be explicit where decisions will be based entirely on automated processing of personal data (Regulation, Art. 11). For controllers whose activities involve emerging technologies or automated decision-making, the notice to data subjects must also say whether decisions will be based entirely on automated processing (Regulation, Art. 4).

The engineering choice that follows: keep a person in the loop for decisions about people, and make that review real. An agent that drafts a credit or hiring recommendation for a named reviewer to approve is a different design from one that sends the rejection itself. If you are unsure which one you are building, What is an AI agent? A guide for business explains the difference between assistants and agents that act.

7. Write the impact assessment. The law requires an assessment of the effects of processing for products or services offered to the public (Art. 22). The Regulation requires a written, documented impact assessment in listed cases, including processing sensitive data, combining datasets from different sources, and activities that involve, at scale or repeatedly, processing personal data using emerging technologies or making decisions based on automated processing (Regulation, Art. 25). Many AI projects touching personal data will meet at least one of those; whether yours does is a question to settle with counsel.

The minimum contents are listed: purpose and basis, the nature, scope and context of processing, necessity and proportionality, the likely harms, and the measures to prevent them. Give a copy to any processor acting for you. If the assessment finds harm to privacy, the Regulation requires you to address the causes and repeat it. SDAIA's AI Ethics Principles set out the same intent from the AI side, including protecting data subjects' privacy and rights.

Deletion, access and breaches (questions 8 to 10)

8. Make deletion possible before you need it. The controller must destroy personal data once the purpose has ended, unless a legal requirement or a pending case requires keeping it (Art. 18). The Regulation adds that destruction covers all copies in the controller's systems, including backups, and that you must notify others you disclosed the data to and ask them to destroy it (Regulation, Art. 8). SDAIA's destruction guideline says plainly that archiving and backup are not destruction.

For an AI system that means: vector store entries keyed so you can find and delete every chunk from one document or one person; log retention set deliberately, in your system and the vendor's; and a clear answer on fine-tuning. Removing one person's data from trained model weights is not something you can do reliably today, so my default is not to fine-tune on personal data unless that has been decided and assessed first.

9. Plan for access requests. Data subjects have rights to be informed, to access their data, to obtain a copy, to correct it and to request its destruction (Art. 4). The Regulation sets 30 days to respond, extendable by up to 30 more days in defined cases with notice to the person (Regulation, Art. 3). If your assistant has logged a customer's conversation in three places, all three are in scope. Design a way to search them by person.

10. Treat prompts and logs as a breach surface. The controller must notify SDAIA within 72 hours of becoming aware of a leak that could harm the personal data or the data subject, and notify the person without undue delay where it could harm them (Regulation, Art. 24). The Regulation also requires appropriate security measures, following the National Cybersecurity Authority's controls where they apply to you, or recognised good practice otherwise (Regulation, Art. 23). In AI systems the less obvious leak paths are prompt logs shared with a vendor, a retrieval index without access control, and an assistant that can be talked into revealing another user's documents. Test for the last one deliberately.

Records, accountability and penalties (questions 11 and 12)

11. Add the AI system to your records of processing. The law requires records of processing activities to be kept and made available to SDAIA (Art. 31). The Regulation requires them in writing, kept for the life of the processing plus five years, and lists the minimum contents, including purposes, categories of data, retention periods, recipients and any transfers outside the Kingdom with their legal basis (Regulation, Art. 33). An AI feature is a processing activity. It belongs in the register like any other.

12. Check whether you need a data protection officer. The Regulation requires one where the controller is a public entity providing services that process personal data at scale, where core activities involve regular and systematic monitoring of individuals, or where core activities involve sensitive data (Regulation, Art. 32). SDAIA's separate rules set the qualifications, and the officer may be an employee or an external contractor. Whether or not you need one, someone should own the impact assessment and the register for the AI system, and they should see the design before it is built.

The reason to take this seriously: the law provides for a warning or a fine of up to five million riyals for a private person or entity that breaches the law or its regulations, which may be doubled for repeat violations (Art. 36), and for imprisonment of up to two years, a fine of up to three million riyals, or both, for disclosing or publishing sensitive data with intent to harm or for personal benefit (Art. 35). People harmed may also claim compensation in court (Art. 40).

What I would do

If I were starting an AI project on personal data in Saudi Arabia on the publish date, in this order:

  1. Classify first. Separate the work that touches no personal data from the work that does. The first group can start now with the business tier of a mainstream tool.
  2. Draw the pipeline map for the second group, with every copy listed in this article, before choosing a vendor.
  3. Take the map to your data protection lead and counsel with three questions: the legal basis and purpose, whether any transfer is involved, and whether an impact assessment is required. Article 25's list is broad enough that I would expect the question to come up.
  4. Design for deletion, access and review from the first sprint: keyed vector stores, deliberate log retention, a person in the loop for any decision about a person.
  5. Choose where the model runs last, once the answers above say what is allowed. Running it yourself removes the transfer question. It does not remove the other eleven.

That last point is the one I repeat most often. Keeping the model inside your network means your data does not go to a model provider. It does not, by itself, make the system compliant with the PDPL. Purpose, minimisation, retention, access control and records still decide that. The same checklist fits inside the broader AI readiness checklist if you are earlier in the process.

I build AI systems for companies in Saudi Arabia and help them answer the engineering half of these questions, alongside their counsel. If you are in the Eastern Province and want to work through this for a specific project, see AI consultant in Dammam or get in touch.

Sources

  1. 01Personal Data Protection LawSDAIA National Data Governance Platform
  2. 02Implementing Regulation of the Personal Data Protection LawSDAIA National Data Governance Platform
  3. 03Regulation on Personal Data Transfer outside the KingdomSDAIA National Data Governance Platform
  4. 04Standard Contractual Clauses for Personal Data TransferSDAIA National Data Governance Platform
  5. 05Rules for Appointing a Personal Data Protection OfficerSDAIA National Data Governance Platform
  6. 06Guideline on Personal Data Destruction, Anonymisation and PseudonymisationSDAIA National Data Governance Platform
  7. 07Guideline on Records of Personal Data Processing ActivitiesSDAIA National Data Governance Platform
  8. 08AI Ethics PrinciplesSDAIA National Data Governance Platform

If this was useful, follow what I’m building.

All notes →

Projects and case studies

All notes