A data processor is anyone who handles personal data on the instructions or on behalf of a data controller, so an agency that runs a cloud contract without any data access can still be one. This article explains a Thai PDPC opinion on the national health cloud for DPOs at public bodies and system integrators: who holds which role, and who must sign a processing agreement with whom.
- Controller or processor depends on who decides the purposes and means of processing, not on the label in a contract.
- The health ministry office is the controller; the digital economy office is its processor, even though it is locked out of the data.
- The developer hired by the processor is its sub-processor, or the parties may agree it acts for the controller directly.
- No direct contract between controller and developer does not remove the Section 40 duty to have a processing agreement.
- The agreement must require proper security measures and breach notice to the controller within 72 hours of awareness.
Thailand's national public health cloud project involves two state bodies and one private contractor. The Ministry of Digital Economy and Society, acting through the Office of the National Digital Economy and Society Commission (ONDE), procures and hires. The Ministry of Public Health, acting through the Office of the Permanent Secretary (OPS-MOPH), uses the system and decides who may access the data.
The developer, joint venture A, signed its contract with ONDE only. It has no contract with OPS-MOPH. When OPS-MOPH set out to prepare a data processing agreement (DPA), nobody was sure which role each party held under the Personal Data Protection Act B.E. 2562 (PDPA), or who had to sign with whom.
Both agencies put three questions each to the Office of the Personal Data Protection Commission (PDPC Office). The opinion came from the PDPC's subcommittee that answers consultations and advises on compliance, after it heard representatives of both agencies.
The AIPDPA team retells the opinion here in its own words. Boxed legal text is quoted verbatim from the PDPA and two PDPC notifications. The subcommittee's view does not bind like a statute, yet it signals how the regulator interprets Sections 6 and 40.
Who does what in the health cloud project?
It starts with a memorandum of understanding signed by the two ministries on 27 June 2022 on developing a health data cloud. The MOU itself labels the digital ministry the data processor and the health ministry the data controller. A Cabinet resolution of 24 January 2023 then told ONDE to run the project with multi-year budget commitments.
| Part of the project | Contractor | Details |
|---|---|---|
| Activity 1: nationwide health data exchange management | Joint venture A (contract dated 22 December 2023, 810 days) | Exchange gateway for health regions, a central data exchange service, and a cloud outpatient platform for sub-district health centres |
| Activity 2: central public health cloud service | Company B (contract dated 17 October 2024, 600 days) | Cloud capacity for data exchange between primary, secondary and tertiary care providers |
| Oversight | Health ministry staff | Sat on the committee that set the scope of work, chaired and served as secretary of the inspection committee, and set data access rights |
The interesting fact is that ONDE said it cannot access the data in the system at all, because the health ministry controls access rights. A meeting of the two agencies on 5 February 2025 therefore proposed a three-party agreement in which ONDE would sign only as project supervisor and contract manager.
The opinion deals with processing on the system joint venture A builds. It does not separately analyse the role of Company B, the cloud service provider under Activity 2.
What decides who is the data controller?
Decision power. The subcommittee started from the definitions in Section 6 of the PDPA and noted that they draw no line between private firms and state agencies. A state agency can therefore be a controller, or a processor for another agency or a private company.
“Data Controller” means a Person or a juristic person having the power and duties to make decisions regarding the collection, use, or disclosure of the Personal Data
“Data Processor” means a Person or a juristic person who operates in relation to the collection, use, or disclosure of the Personal Data pursuant to the orders given by or on behalf of a Data Controller, whereby such Person or juristic person is not the Data Controller
The test looks at all the facts and asks who sets the purposes and the means of collecting, using or disclosing the data. The opinion uses the English phrase decisive influence for the party that holds that power.
A processor may offer a ready-made service with the details already designed. The controller must still know those details, give final approval and be able to ask for changes. The processor cannot later change the essential elements of the processing without the controller's consent.
The contract label is not the deciding factor
If an organisation in fact holds the decision power, it is the controller even if the contract calls it a processor. The opinion says the content of a contract or agreement is not always decisive, and parties cannot avoid their PDPA duties by writing terms that do not match the facts.
That cuts both ways. The processor label in the MOU does not make ONDE a processor by itself. And the meeting's wish to make ONDE a mere contract manager does not take it out of the processor role if the facts say otherwise.
Why is the health ministry office the controller?
Because OPS-MOPH decides both the purposes and the means of processing on the health data cloud. Reading the scope of cooperation and the working arrangements in the MOU, the subcommittee gave three reasons.
- It specifies the data sets and data standards to be stored or exchanged, and controls data access and system use together with the organisations involved.
- It sets the rules on access to health data and on the security of the system, which ONDE must follow.
- It plays a key role on the scope-of-work committee and chairs and serves as secretary of the inspection committee in the procurement.
The third reason matters for any joint project. Sitting on the committees that write the scope of work and accept the deliverables was counted as evidence of power over the means of processing, even though OPS-MOPH did not sign the procurement contract itself.
Is an agency with no data access still a processor?
Yes. The subcommittee found ONDE to be a processor for OPS-MOPH because it procures, develops and provides the cloud infrastructure on the health ministry's instructions. It has no independent right to access the data, cannot set purposes or means itself, and must follow the access and security requirements the health ministry sets.
On the access point, the subcommittee drew a comparison with ordinary cloud providers. A standard cloud storage service provider that stores data on the instructions or on behalf of its customer, and does not use it for its own purposes, is a processor.
Setting access rights and methods so that ONDE or anyone else cannot see the data is a security measure. The opinion concludes that such a measure does not change ONDE's status as a processor.
What if ONDE needs the data for its own work?
The subcommittee covered that too. If ONDE has to collect, use or disclose data on the cloud to perform its own legal duties, rather than on the instructions or on behalf of OPS-MOPH, it becomes a controller for that particular processing. The opinion points to the logic of Section 40, paragraph two.
The Data Processor, who fails to comply with (1) for the collection, use, or disclosure of the Personal Data, shall be regarded as the Data Controller for the collection, use, or disclosure of such Personal Data.
What role does the contractor hired by ONDE hold?
The opinion offers two answers. The first follows from ONDE being a processor: if ONDE hires another person or company to build or run the infrastructure on its instructions or on its behalf, that contractor is ONDE's sub-processor, and ONDE answers to OPS-MOPH for what the sub-processor does.
The second applies if the facts show ONDE does not process the data directly at all and only hires others to do so on behalf of the health ministry. The three parties may then agree that the contractor is a processor for OPS-MOPH directly and that ONDE is not a processor. If that conflicts with the original MOU, the MOU can be revised.
| Option 1: ONDE is a processor | Option 2: the contractor acts for OPS-MOPH directly | |
|---|---|---|
| ONDE's role | Processor for OPS-MOPH | Not a processor; project supervisor and contract manager |
| Joint venture A's role | ONDE's sub-processor | Processor for OPS-MOPH |
| Section 40 agreements | OPS-MOPH with ONDE, and ONDE with A on OPS-MOPH's terms; or OPS-MOPH with A directly | OPS-MOPH with A directly; ONDE may co-sign if it sees fit, but OPS-MOPH has no duty to contract with ONDE |
| When it fits | The facts match what the subcommittee read in the MOU | ONDE does no processing and all parties agree; the MOU may need amending |
Who needs a data processing agreement with whom?
Every processor needs one, and the duty sits with the controller under Section 40, paragraph three. Since ONDE is a processor for OPS-MOPH, OPS-MOPH must put a data processing agreement in place with ONDE, and ONDE may sign it even though it is also the project supervisor and contract manager.
In carrying out the activities in accordance with the Data Processor's obligations as assigned by the Data Controller under paragraph one, the Data Controller shall prepare an agreement between the parties to control the activities carried out by the Data Processor to be in accordance with the Data Processor's obligations for compliance with this Act.
The agreement exists to hold the processor to its Section 40 duties, which the opinion lists in full: act only on the controller's instructions, keep appropriate security and report breaches, and keep records of processing activities.
(1) carry out the activities related to the collection, use, or disclosure of Personal Data only pursuant to the instruction given by the Data Controller, except where such instruction is contrary to the law or any provisions regarding Personal Data protection under this Act;
(3) prepare and maintain records of personal data processing activities in accordance with the rules and methods set forth by the Committee.
Can parties with no contract between them sign a processing agreement?
Yes. That was the third question from both agencies, and the subcommittee separated two things. Joint venture A's legal relationship as ONDE's contractor is governed by the public procurement law. Its PDPA role depends on who decides and who follows instructions.
If OPS-MOPH holds the decision power and joint venture A processes data on its instructions or on its behalf, a controller-processor relationship already exists, contract or not. OPS-MOPH must then have a Section 40 agreement governing A's work, either signed with A directly, or routed through ONDE, which signs with A on terms set by OPS-MOPH.
For the clauses such an agreement should contain, see our article on data processing agreement clauses. For another PDPC opinion that found a contractor to be a processor, see the article on condo management companies.
What must the agreement say about security and breaches?
The subcommittee added two observations. First, the controller must require the processor to keep appropriate security measures that meet the minimum standard under Section 37 (1), read with Clause 6 of the 2022 PDPC notification on security measures.
In providing for an agreement between a data controller and a data processor, the data controller shall consider requiring the data processor to provide appropriate security measures
Those measures must reflect the risk posed by the nature and purpose of the processing, and the likelihood and impact of a breach. A system that pools health data from care providers across the country calls for stronger measures than an ordinary one.
Second, the agreement must require the processor to notify the controller of a breach without delay and, where feasible, within 72 hours of becoming aware of it, under Section 37 (4) read with Clause 8 of the 2022 PDPC notification on breach notification.
the data controller must stipulate in the agreement or in the relevant contract that the data processor has a duty to notify a personal data breach to the data controller without delay and within seventy-two hours from the time the data processor becomes aware of it, so far as it is able to do so.
With a sub-processor in the chain, the reporting path gets one step longer: the contractor tells ONDE, and ONDE tells OPS-MOPH. Who must notify whom, and when, is set out in our article on vendor breaches.
What should agencies running a shared cloud project do next?
The agency that owns the data (the controller)
- Map who actually does what with the data: who defines the data sets, who grants access, who runs the machines. Then compare it with the labels in the MOU and the contracts.
- Choose Option 1 or Option 2 explicitly and put a Section 40 agreement in place at every link of the chain.
- Put the Clause 6 security requirement and the 72-hour breach notice under Clause 8 into every agreement.
- If the procuring agency signs with the contractor on your behalf, set the minimum terms that sub-agreement must contain in writing.
The procuring agency
- Do not assume that no data access means no PDPA duties. If you act on the controller's instructions, you are still a processor.
- Keep a record of processing activities under Section 40 (3) and check that your contractor follows the sub-agreement.
- If you ever need the data for your own legal duties, treat that processing separately, because for that part you are the controller.
This is Option 1, which the subcommittee found fits the facts in the MOU
If the contractor acts on the controller's instructions, the Section 40 duty applies whether or not they have a contract
The label in the agreement does not decide the role; the facts do
The full opinion (in Thai) is on the PDPC Office website. For the case where the same health ministry office shares data with another health agency as a fellow controller, see our article on data sharing agreements between controllers.
Frequently asked questions
Can an agency with no access to the data be a data processor?
Yes. In the health cloud opinion, the subcommittee found ONDE to be a processor for OPS-MOPH because it provides the system on instructions. Access rights that keep ONDE out of the data are a security measure and do not change its role.
If our contract calls us a processor, are we one?
Not necessarily. Your PDPA role depends on who decides the purposes and means of processing. If in fact you make those decisions, you are a controller, whatever the contract says.
Must a controller sign a processing agreement with a contractor it never hired directly?
There must be an agreement governing the contractor's work if it processes data on the controller's instructions or behalf. It can be signed directly, or through the hiring agency acting as processor on terms the controller sets.
What is a sub-processor?
In this opinion, a person or company that a processor hires to build or run the system on the processor's instructions or behalf. The processor answers to the controller for what the sub-processor does.
Must a data processing agreement set a deadline for breach notice?
Yes. Clause 8 of the 2022 PDPC breach notification requires the controller to state in the agreement that the processor must notify a breach without delay and within 72 hours of becoming aware, so far as it can.
You have read it. Now get it done
Open the demo account to see the real AIPDPA system with a sample company: RoPA, the 72-hour breach clock, data subject requests, cookie consent and ready-to-use documents, all in one place.
From 2,900 THB/year (11 modules) · all 24 modules from ENTERPRISE at 19,900 THB/year · demo account, no sign-up
The contract for this: Data Processing Agreement (DPA) →Lawyer-drafted form, PDF as soon as you fill it in; preview the full text before paying
No time? Have our lawyers handle it →Kooru's lawyers set it up and act as your DPO
Law and sources
- Personal Data Protection Act B.E. 2562 (2019) — Section 6 · 37 (1) (4) · 40
- PDPC Notification on security measures of data controllers, B.E. 2565 (2022) — Clause 6
- PDPC Notification on rules and procedures for personal data breach notification, B.E. 2565 (2022) — Clause 8
Text in the "The text" boxes is copied word for word from AIPDPA's legal knowledge base, transcribed from the Royal Gazette and official documents; every edit is checked by the system against that base, character by character. English wording is an unofficial translation; the Thai text prevails. This article is general information, not legal advice for a particular case.

