anonym.legal
Назад към блогаGDPR и съответствие

IMY Sweden: Personnummer, Samordningsnummer, and the Luhn Algorithm — Swedish GDPR Technical Guide

IMY found 45% of generic tools miss Swedish personnummer. Samordningsnummer (60-offset) missed by most implementations. Sweden's 79% GDPR rights-exercise rate demands automated PII processing capability.

March 7, 20267 мин. четене
Sweden IMYpersonnummer LuhnsamordningsnummerSwedish GDPR technicalNordic compliance

Sweden's Integritetsskyddsmyndigheten (IMY) technical assessment of deployed PII tools found a 45% failure rate for personnummer detection — Sweden's primary national identifier. Given that 79% of Swedish data subjects exercise GDPR rights annually (the highest rate in the EU), automated PII detection accuracy directly affects operational compliance capacity.

Personnummer: Luhn Validation and the Samordningsnummer Gap

The Swedish personnummer (personal identity number) format: YYMMDD-XXXX (10 characters) or YYYYMMDD-XXXX (12 characters). The last digit is validated using the Luhn algorithm.

Luhn algorithm: Double every second digit from right to left. If doubling produces a two-digit number, sum the digits. Sum all digits. Result must be divisible by 10.

The Luhn algorithm is shared with credit card numbers and SIN (Canadian Social Insurance Number). However, the personnummer's date component (YYMMDD) creates specific validation constraints that differ from financial account Luhn validation.

The samordningsnummer problem: Sweden's coordination number for foreign residents who need identification before receiving a personnummer uses the same format — but adds 60 to the birth day digits:

  • Personnummer born January 15: YYMMDD = YY0115
  • Samordningsnummer for same birth date: YYMMDD = YY0175 (15 + 60 = 75)

This means samordningsnummer uses birth day values 61-91 (instead of 01-31 for personnummer). Implementations that validate personnummer by checking birth day against 01-31 will reject valid samordningsnummer — and miss identifying foreign residents' coordination numbers in Swedish employment documents.

Sweden's foreign-born population represents approximately 20% of the total population. For employers, healthcare providers, and financial services handling data of foreign residents, the samordningsnummer gap means a significant portion of their population's primary identifier goes undetected.

IMY's Practical Anonymization Requirements

IMY's anonymization guide (2023) — the EU's most detailed technical guidance on anonymization, referenced by 12 other DPAs — sets these requirements for organizations processing Swedish personal data:

k-anonymity ≥ 5: Datasets released for research, analytics, or secondary use must achieve at least k=5 (each individual indistinguishable from 4 others on all quasi-identifying attributes). Quasi-identifiers in Swedish datasets typically include age, gender, municipality, and profession — combinations of these narrow down to small groups quickly given Sweden's relatively small population.

l-diversity for health data: For datasets containing health or financial information, l-diversity must be demonstrated in addition to k-anonymity — preventing inference attacks that k-anonymity alone does not block.

Formal verification: Unlike many EU DPA guides, IMY explicitly states that anonymization claims must be verifiable — the organization must be able to demonstrate through technical documentation that k-anonymity and l-diversity thresholds are met, not simply assert compliance.

The 79% Rights Exercise Rate: Operational Implications

Sweden's extraordinarily high GDPR rights exercise rate (79% annually — IMY 2024 survey) creates operational demands that organizations processing Swedish personal data must anticipate:

Right of access: Swedish data subjects regularly request complete copies of all personal data held about them. For a company with 50,000 Swedish customers, this means approximately 39,500 access requests per year — each requiring a response within 30 days.

Right to erasure: Swedish data subjects frequently exercise the right to erasure after account closure or service termination. Organizations must be able to execute complete erasure across all systems — not just the primary database, but backups, analytics platforms, and AI training datasets.

Automated response infrastructure: At 79% exercise rate, manual processing of rights requests is not operationally viable. Organizations with Swedish user bases need automated personal data inventory and retrieval systems capable of responding to rights requests at scale.

PII detection that correctly identifies personnummer (with Luhn validation), samordningsnummer (with 60-offset day handling), and Swedish-language NER enables the automated personal data inventory that Sweden's rights-exercise culture operationally demands.

Sources:

Готови ли сте да защитите данните си?

Започнете анонимизация на PII с 285+ типа субекти на 48 езика.