An ID number masked to its last 4 digits is pseudonymised data, not anonymous data, because combined with graduation year, university and faculty it can still identify a person. This article explains the PDPC Office's opinion for the Architect Council of Thailand for organisations that share member or customer data with research partners: which legal basis applies, how to reduce the data, and how to handle objections.
- The PDPC Office treats a national ID masked to its last 4 digits as pseudonymisation only; the data is still personal data under Section 6.
- The Council may rely on its public task under Section 24 (4); the receiving association and universities may rely on Section 24 (5) if a 3-step LIA passes.
- Birth year, faculty and graduation year affect privacy less than address, full ID, full birth date, grades or employer, so only what is needed should go.
- Architects may object under Section 32 (1); the controller must prove a compelling ground, and a refusal must be recorded with reasons in the ROPA.
- The PDPC Office suggests hashing, generalisation, perturbation or aggregation instead of, or on top of, masking the ID.
Many organisations believe that masking a national ID number down to its last 4 digits makes data safe to pass on. Receipts, prize-winner lists and files sent to researchers use the method widely. Consultation No. 20/2569, answered on 19 October 2026 (B.E. 2569), says that belief is not entirely right.
The question came from the Architect Council of Thailand. The Council planned to share architects' education and professional practice records with the Association of Siamese Architects under Royal Patronage (ASA) and the Council of Deans of Faculties of Architecture (CDAST) for a joint study of architects' career paths and a long-term statistical database. It would keep only the last 4 digits of each national ID number, so that individuals could not be identified.
The PDPC's subcommittee that answers questions on data protection compliance found that, given the size and nature of the architect population, data linked to those 4 digits can still be traced back to a person, so it is still personal data. This article refers to that opinion, for short, as the answer of the PDPC Office (the Office of the Personal Data Protection Committee).
How can the last 4 digits of an ID identify someone?
A 4-digit number has only 10,000 possible values, from 0000 to 9999. In a large group many people share the same 4 digits. In a small group, such as people who graduated from the same faculty in the same year, the 4 digits are almost never shared. When a research file holds the 4 digits plus university, faculty and graduation year, a single row usually belongs to one person only.
The example below uses hypothetical figures from the AIPDPA team. They are not the real number of architects and do not come from the consultation. Assume a profession has 30,000 members and that the last 4 digits are spread evenly. The table shows how likely it is that a person is the only one in their group with that 4-digit value.
| What the recipient knows | Group size (hypothetical) | Others with the same 4 digits (average) | Chance the person is unique in the group |
|---|---|---|---|
| The 4 digits only, whole profession | 30,000 people | About 3 | About 5 in 100 |
| 4 digits + university and faculty | 3,000 people | About 0.3 | About 74 in 100 |
| 4 digits + university, faculty and graduation year | 60 people | About 0.006 | About 99 in 100 |
The last row is where data becomes one person's data. Anyone holding a class list with full ID numbers can match the last 4 digits and know at once whose row it is, and then see everything else in that row, such as licence history or employer.
Who holds a list to match against?
In the AIPDPA team's view, the easiest party to make the match is often the recipient itself. Universities keep student records that usually include the full ID number and graduation year. Professional associations keep their own member registers. Employers hold their staff's ID numbers. Masking keeps some outsiders out, but not someone who holds a second list. This paragraph is the team's view; the consultation does not give this example.
Another route opens when different documents mask different digits. Suppose one receipt shows the first 9 digits and a separate notice shows the last 4. Anyone who has both can rebuild all 13 digits. One organisation should therefore mask ID numbers the same way on every document.
What did the Architect Council ask the PDPC Office?
The Architect Council is the professional council set up under the Architects Act B.E. 2543 (2000). It registers and licenses practitioners of controlled architectural practice. Applicants must submit data such as name, address, national ID number, date of birth, age, education history and practice details.
The Council signed a memorandum of understanding with ASA and CDAST to develop the profession. Part of it is a joint study of architects' career paths. ASA would analyse data from all three parties to build an integrated information database on the architecture profession.
There were two questions. First, may the Council disclose the data to ASA and CDAST for the research database, and does it need consent? Second, may it disclose the data if only the last 4 ID digits are kept, and what must it do?
Which law does a state agency look at first?
The PDPC Office found that the Council is a state agency under the Official Information Act B.E. 2540 (1997) and, at the same time, a data controller under the PDPA because it decides how the data is collected, used and disclosed. Section 3 (1) of the PDPA means the Council looks at the Official Information Act first and applies the PDPA in addition for collection, use, disclosure and data subject rights. Our article on requests for official records naming other people covers this in detail.
Does sharing member data for research need consent?
Not necessarily. The PDPC Office split the legal basis by who uses the data. The Council, as the discloser, may consider that the disclosure serves its objects under Section 7 (1) of the Architects Act, namely promoting education, research and architectural practice. If so, it is necessary for a task carried out in the public interest under Section 24 (4) read with Section 27 paragraph one.
(4) it is necessary for the performance of a task carried out in the public interest by the Data Controller, or it is necessary for the exercising of official authority vested in the Data Controller;
The recipients, ASA and the universities working under the CDAST name, are controllers in their own right. The PDPC Office pointed them to the legitimate interest basis in Section 24 (5), which works only where the benefit is not outweighed by the data subjects' rights.
(5) it is necessary for legitimate interests of the Data Controller or any other Persons or juristic persons other than the Data Controller, except where such interests are overridden by the fundamental rights of the data subject of his or her Personal Data;
How does the 3-step LIA apply to this study?
The PDPC Office said the weighing may be done with a Legitimate Interest Assessment (LIA) in three steps. The questions below come from the consultation; the sample answers are the AIPDPA team's application.
- Purpose test: is the reason for using the data, and the benefit, lawful? A career-path study that helps plan education and the profession is likely to pass.
- Necessity test: how much of this data is needed, and is there a way that affects rights less? The study needs graduation year, for example, but may not need the full date of birth.
- Balancing test: does the benefit intrude on privacy more than is reasonable, given what architects expected when they gave their data to obtain a licence?
If the assessment fails and no other exemption in Section 24 (1) to (6) applies, the PDPC Office said consent is needed and must meet Sections 19 and 20. How to document each LIA step is covered in our article on the three questions of legitimate interest.
Which fields are low risk and which are high risk?
This opinion goes further than most. The PDPC Office noted that different kinds of data affect privacy, and the expectation of privacy, differently. The first two columns of this table come from the consultation; the last column is the AIPDPA team's suggestion.
| Group | Data named in the consultation | Team suggestion |
|---|---|---|
| Lower impact | Birth year, age, programme, faculty or unit, university or institution of graduation, graduation year, year of joining the Council or becoming a licensed practitioner | Share only what the study actually uses; group years into ranges where a class is small |
| Higher impact | Address, national ID number, full date of birth, GPA, grades per course, employer in professional practice | Do not share, or transform first: address to district and province, grades to bands, employer to type of organisation |
Once fields are chosen, the PDPC Office stressed that every controller must use only what is necessary under Section 22 and not go beyond what is normally expected in that context. The AIPDPA team suggests asking, field by field: if this field were removed, could the study still answer its own question?
What else must the discloser do?
The PDPC Office said the Council must record the disclosure in its record of processing activities (ROPA) under Section 39 and give a privacy notice under Section 23, naming the recipients so that the relevant organisations are covered under Section 23 (4).
(4) the categories of Persons or entities to whom the collected Personal Data may be disclosed;
Is a masked ID number still personal data?
Yes. The PDPC Office called the Council's method character masking, which replaces some letters or digits with symbols. It is one technique in the Digital Government Development Agency's standard on anonymisation (DGA standard 14-2567), which is the agency's internal practice and a recommendation for state agencies, not law.
Using a technique from the standard is not enough. The PDPC Office found that data linked to the last 4 ID digits can still identify architects indirectly, so it is personal data under the definition in Section 6, and this masking amounts only to pseudonymisation.
“Personal Data” means any information relating to a Person, which enables the identification of such Person, whether directly or indirectly, but not including the information of the deceased Persons in particular;
In practice, ASA and the receiving universities keep all their PDPA duties: a legal basis, security and handling data subject requests. Data does not leave the PDPA just because some ID digits are hidden.
What does truly anonymous data require?
The PDPC Office told controllers to check against Clause 6 of the 2024 notification on erasure, destruction and anonymisation. The first step is to remove direct identifiers, and the notification lists the national ID number as one.
(b) The national identification number, passport number, taxpayer identification number of a person, social security number, as well as the number, figure, or code of any other identification card of a person.
The second step is to reduce indirect identifiers until the likelihood of identification is sufficiently low. Several of the notification's examples match fields in the Council's research file.
such as date of birth, age, job position, affiliation, the date of receiving a service, residential address or place of work
Masking is not useless. The PDPC Office said partial masking of the ID lowers the risk to privacy, much as Section 9 paragraph two with Section 15 (5) of the Official Information Act allows details to be deleted or cut before disclosure, for example giving only the district and province instead of the house number. Lowering risk this way makes the balancing step of the LIA easier to pass.
If not masking, what should be used instead?
The PDPC Office suggested four techniques to use instead of or together with masking, provided the study can still be done. The table explains each in one sentence; the examples on the right are the AIPDPA team's.
| Technique | What it does | Example |
|---|---|---|
| Hashing | Turns the ID number into a long code that cannot be turned back into the number; the same person always gets the same code | Send the code instead of the ID, so researchers can follow the same person across years without seeing the ID |
| Generalisation | Lowers the level of detail | Date of birth to birth year, graduation year to a 5-year band, address to province |
| Data perturbation | Changes values slightly at random so totals stay right but individual values do not match | Add or subtract one year of age at random before sharing |
| Data aggregation | Sends totals instead of individual rows | Send the number of graduates of one year still licensed after 10 years, by faculty |
The PDPC Office referred to Consultation No. 3/2569 from the Thailand Accident Research Center at the Asian Institute of Technology, which explains anonymisation methods in detail. We summarised it in our article on accident research and removing names, so this article stays with partly masked ID numbers.
Does a plain hash of the ID number help?
Only a little. In the AIPDPA team's view, an ID number has only 13 digits, so anyone who knows the hash method can hash every possible number and compare the results with the codes received. A match reveals the full ID number. Hashing should therefore use a secret key held only by the discloser, and the recipient should never get that key.
A career-path study must follow the same people over many years. The Council most likely kept the 4 digits to match one person's records across the three parties. The AIPDPA team considers a code produced with the same secret key at every party does that matching better, with each party converting the ID before sending, or a neutral party holding the key doing the conversion.
What can an architect who does not want to be in the database do?
Object. The PDPC Office pointed out that where a controller relies on Section 24 (4) or (5), the data subject may object under Section 32 (1), and the burden of proof lies with the controller, not the architect.
(1) Where the Personal Data is collected with the exemption to consent requirements under section 24 (4) or (5), unless the Data Controller can prove that:
If the controller can prove it, it may refuse the objection but must record the refusal with reasons in the ROPA under Section 32 paragraph three. If it cannot, it must stop using that person's data and separate it from other data as soon as it is told of the objection, under Section 32 paragraph two.
The PDPC Office added that the data subject may ask for erasure, destruction or anonymisation under Section 33 paragraph one (3), and may complain to the expert committee under Section 33 paragraph four if the controller does not act. The AIPDPA team suggests the parties agree in advance how many days they have to pass an objection received by one party to the other two.
Is a data sharing agreement required?
No. The last page of the consultation says the PDPA does not require a data sharing agreement (DSA). A DSA is an organisational measure that sets the purpose, methods, conditions and duties of each party, and the parties may choose whether to sign one. Each party already has its PDPA duties and liabilities either way.
If they sign one, the PDPC Office suggested access control with identity proofing and authentication, and authorisation on a need-to-know basis following the principle of least privilege, so that each party can work as a separate controller.
The AIPDPA team would add one clause for this kind of work: a ban on attempts to re-identify individuals and on matching the data with other registers the recipient holds. This clause does not come from the consultation, but it targets the exact problem the 4 digits create. For DSA content, see our article on DSAs between controllers.
What should other organisations that mask ID numbers do?
In the AIPDPA team's view, the principle reaches well beyond professional councils: a company that publishes prize winners with the last 4 ID digits, an alumni association sending lists to a faculty, an HR team sending a staff file to consultants, or a hospital sending data to a research team. If the file carries birth year, field of study or workplace, the group shrinks until a person can be picked out.
The useful question is therefore not whether the ID has been masked, but whether a recipient holding another list could find the person. If the answer is yes, the data is still personal data and needs a legal basis, a privacy notice and a ROPA entry.
This part is the AIPDPA team's outlook. Research that uses data across organisations is likely to grow, because long-term databases help plan professions and education. Organisations that set a standard for transforming data before it leaves will join such projects faster than those fixing files one by one.
Checklist before sharing member or customer data with a research partner
- Write down the study's purpose, then choose each party's legal basis; the discloser and recipient may use different ones.
- Put the 3-step LIA in writing; it is the first evidence you will need when someone objects.
- Check field by field whether the study needs it; drop or transform address, full birth date, grades and employer.
- Use a code hashed with a secret key instead of the ID number, and keep the key with the discloser only.
- Count the smallest group in the file; where a group has only a few people, merge years or groups.
- Update the privacy notice to name recipients under Section 23 (4) and record the disclosure in the ROPA under Section 39.
- Agree how all parties handle objections and erasure requests, and record any refused objection with reasons in the ROPA.
- If you sign a DSA, include access control and a ban on re-identification.
Items 1, 2, 3, 6 and 7 come from the consultation's guidance; items 4 and 5 and the re-identification ban in item 8 are the team's suggestions. In AIPDPA, the RoPA register records who data is disclosed to and on what basis, and logs a refused objection with its reasons; see the demo account.
What does this consultation leave open?
- It does not discuss the research and statistics basis in Section 24 (1), which applies where safeguards prescribed by the Committee are in place.
- It does not discuss the separate right to object to research or statistics use in Section 32 (3).
- It gives no number for how low the likelihood of identification must be to count as “sufficiently low”.
- It does not say how far Section 33 paragraph two, which exempts retention for Section 24 (4) purposes, limits erasure requests to the Council.
- It does not decide that this work falls within Section 24 (4) or (5); it says each controller “may consider” it and must assess for itself.
This consultation is the subcommittee's opinion given to the Architect Council on its own facts and is not law. It does show clearly where the PDPC Office stands: masking some digits of an ID is not anonymisation. Organisations that share data in other ways should have their DPO assess their own facts.
Frequently asked questions
Is a national ID masked to its last 4 digits still personal data?
It can be. The PDPC Office told the Architect Council that, given the size and nature of the architect population, data linked to the last 4 digits can still identify a person indirectly, so it is personal data under Section 6 and the masking is only pseudonymisation.
Does a professional council need consent to share member data with an association or university for research?
Not necessarily. A discloser with a legal duty to promote research may rely on Section 24 (4), and recipients may rely on Section 24 (5) if a 3-step LIA passes. If it fails and no other basis applies, consent under Sections 19 and 20 is needed.
Which fields does the PDPC Office see as more privacy-intrusive?
The consultation gives address, national ID number, full date of birth, GPA, grades per course and employer as having more impact than birth year, age, programme, faculty, university, graduation year and year of membership.
Is a hashed ID number anonymous data?
In the AIPDPA team's view, no. Without a secret key, anyone can hash every possible 13-digit number and compare. With a secret key the risk is much lower, but the code still belongs to one person, so it remains pseudonymised data under the PDPA.
Can a member object to their data being used for research?
Yes. Where the controller relies on Section 24 (4) or (5), the member may object under Section 32 (1). The controller must prove a compelling ground; a refusal must be recorded with reasons in the ROPA, and if it cannot prove one it must stop and separate the data at once.
Is a data sharing agreement needed to share data with a research partner?
It is not required. The PDPC Office said the PDPA does not require a DSA, but it is a helpful organisational measure. If signed, it should cover access control, authentication and need-to-know access rights.
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 Sharing Agreement →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 · 23 (4) · 24 (4) (5) · 32 (1)
- PDPC Notification on Criteria for Erasure, Destruction or Anonymisation of Personal Data B.E. 2567 (2024) — Clause 6 (1) (b) · Clause 6 (2)
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.

