Sweden Tax Identification Number
Detects Sweden Tax Identification Number patterns. This pattern is based on a Microsoft Purview built-in sensitive information type. Due to the numeric format, corroborative evidence keywords are essential for reliable detection.
- Type
- regex
- Engine
- universal
- Confidence
- medium
- Confidence justification
- Medium confidence: the YYMMDD-XXXX format resembles dates with appended digits. Keywords like 'personnummer' or 'Skatteverket' are needed to distinguish from other numeric patterns. Added context gating and exclusion rules improve precision and reduce incidental matches.
- Detection quality
- Verified
- Jurisdictions
- se, eu
- Regulations
- gdpr
- Data categories
- pii, financial, government-id
- Scope
- narrow
- Risk rating
- 7
- Platform compatibility
- Purview: Compatible, GCP DLP: Compatible, Macie: Compatible, Zscaler: Compatible, Palo Alto: Compatible, Netskope: Compatible
Pattern
\b\d{6}-?\d{4}\b
Corroborative evidence keywords
personnummer, skatteregistreringsnummer, tax identification, Skatteverket, samordningsnummer, TIN, tax identification number, tax number, tax return, IRD, NIF, tax ID, inland revenue, taxpayer identification, αριθμός φορολογικού μητρώου, ΑΦΜ, φορολογικός, Abgabenkontonummer, adóazonosító, adószám (+47 more)
Proximity: 300 characters
Should match
123456-7890— Swedish personnummer with hyphen1234567890— Swedish personnummer continuous digits987654-3210— Swedish tax ID format
Should not match
12345-67890— Wrong grouping for Swedish personnummer123456-789— Only 3 digits after hyphen, too shorttemplate example placeholder record identifier— Template/sample context should be excluded even when anchor words are present
Known false positives
- Generic numeric sequences in non-tax contexts such as reference numbers or account identifiers Mitigation: Require corroborative evidence keywords within the proximity window to distinguish tax identifiers from general numeric data.
- Numbers from other identification schemes with similar digit patterns Mitigation: Layer with jurisdiction-specific detection to prioritise matches in tax-related documents and cross-reference with other identifier types.