UK Unique Pupil Number (UPN) and Unique Learner Number (ULN)

Detects UK Department for Education 13-character Unique Pupil Numbers (UPNs: Modulo-23 check letter excluding I, O, S + 3-digit LA code + 4-digit establishment + 2-digit year + 3-digit serial, or 11 digits + optional temporary suffix letter) and labelled 10-digit Unique Learner Numbers (ULNs).

Type
regex
Engine
universal
Confidence
high
Confidence justification
High confidence: 13-character UPNs (letter from 23-letter DfE alphabet + 11 digits + digit/letter) are structurally distinctive, and 10-digit ULNs require an explicit ULN / Unique Learner Number label.
Jurisdictions
uk
Regulations
UK GDPR, Data Protection Act 2018 (UK), Education Act 1996 (UK)
Frameworks
ISO 27001, ISO 27701
Data categories
pii, education, government-id
Scope
narrow
Risk rating
7
Platform compatibility
Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, CrowdStrike DLP: Compatible, Palo Alto: Adapted from Purview, Netskope: Adapted from Purview

Pattern

(?-i)\b([A-HJ-NP-RT-Z]\d{11}[0-9A-HJ-NP-RT-Z]|(?i:ULN|Unique\s+Learner\s+Number)[\s:#-]{1,6}[1-9]\d{9})\b

Corroborative evidence keywords

Unique Pupil Number, UPN, Unique Learner Number, ULN, Department for Education, School Census, Personal Learning Record

Proximity: 300 characters

Should match

Should not match

Known false positives

References

Collections