Datatypes

French social security number (NIR)

ID frnir

DatatypePersonal data (PII)identifier

French national identification number (numéro d'inscription au répertoire, NIR), known as the social security number. INSEE assigns it to every person born in France. It has 13 characters and a two-digit control key: sex (1 or 2; 7 or 8 for temporary registrations), year and month of birth, department and commune of birth (2A or 2B for Corsica), an order number, and the key. The key is 97 minus the 13-character number modulo 97, with 2A read as 19 and 2B as 18.

Categories
Personally identifiable information, Person related
Countries
France
Languages
French
W3C DPV
pd:OfficialID
FTA
IDENTITY.SSN_FR
Google DLP
FRANCE_NIR
Microsoft Purview
France social security number (INSEE), EU Social Security Number (SSN) or Equivalent ID, EU social security number or equivalent identification
python-stdnum
stdnum.fr.nir
Check digit
fr_nir
Quality
85/100 · missing: examples
Metacrafter rules
4 rules (2 by field name, 2 by value)
Supported by tools
AWS Glue Sensitive Data Detection, Azure AI Language PII detection, Databricks Unity Catalog data classification, DataPrep, FTA (Fast Text Analysis), Google Cloud Sensitive Data Protection (DLP), IBM Knowledge Catalog (IBM watsonx.data intelligence), metacrafter, Microsoft Purview Data Loss Prevention, Nightfall AI, python-stdnum, Snowflake sensitive data classification, Talend (Qlik Talend Data Preparation, Data Catalog and Data Inventory)

Regular expression

^[1278]\d{4}(?:\d{2}|2[AB])\d{8}$

Python re syntax.

Examples

ValueDescription
153072C07300443 invalid2C is not a department code

Translations

LanguageNameDescription
FrenchNuméro de sécurité sociale (NIR)

Sources

Use this record