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)
frnirfieldfield, fr/fr_persons.yamlfrnirvaluedata, fr/fr_persons.yamlfr_pii_frnirfieldfield, pii/fr/fr_pii.yamlfr_pii_frnirvaluedata, pii/fr/fr_pii.yaml
- 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
| Value | Description |
|---|---|
| 153072C07300443 invalid | 2C is not a department code |
Translations
| Language | Name | Description |
|---|---|---|
| French | Numéro de sécurité sociale (NIR) |
Sources
- wikipedia: https://en.wikipedia.org/wiki/INSEE_code
- wikipedia: https://fr.wikipedia.org/wiki/Num%C3%A9ro_de_s%C3%A9curit%C3%A9_sociale_en_France
- doc: https://www.insee.fr/en/metadonnees/definition/c1409
Use this record
- Page URL:
http://registry.apicrafter.io/datatype/frnir - JSON: API v1 · legacy shape (used by metacrafter) · Markdown (for LLMs)
- Improve it: edit
data/datatypes/FR/persons/frnir.yamlon GitHub