---
id: "usdriverlic"
kind: "datatype"
status: "stable"
is_pii: true
categories: ["pii", "persons"]
country: ["US"]
langs: ["en"]
quality: 55
url: "http://registry.apicrafter.io/datatype/usdriverlic"
---

# US driver license number (`usdriverlic`)

Alphanumeric value of the United States driver license

- Parent datatype: `driver_license`
- Personal data (PII): yes
- Categories: Personally identifiable information (pii), Person related (persons)
- Countries: United States (US)
- Languages: English (en)
- Classification: identifier

## Detection

Regular expression (Python `re`):

```
([A-Z][0-9]{3,6}|[A-Z][0-9]{5,9}|[A-Z][0-9]{6,8}|[A-Z][0-9]{4,8}|[A-Z][0-9]{9,11}|[A-Z]{1,2}[0-9]{5,6}|H[0-9]{8}|V[0-9]{6}|X[0-9]{8}|A-Z]{2}[0-9]{2,5}|[A-Z]{2}[0-9]{3,7}|[0-9]{2}[A-Z]{3}[0-9]{5,6}|[A-Z][0-9]{13,14}|[A-Z][0-9]{18}|[A-Z][0-9]{6}R|[A-Z][0-9]{9}|[A-Z][0-9]{1,12}|[0-9]{9}[A-Z]|[A-Z]{2}[0-9]{6}[A-Z]|[0-9]{8}[A-Z]{2}|[0-9]{3}[A-Z]{2}[0-9]{4}|[A-Z][0-9][A-Z][0-9][A-Z]|[0-9]{7,8}[A-Z])
```

## Mappings

- dpv: `pd:OfficialID`
- google_dlp: `US_DRIVERS_LICENSE_NUMBER`
- presidio: `US_DRIVER_LICENSE`
- purview: `U.S. drivers license number`

## Metacrafter rules

4 rules: 2 match the field name, 2 match values.

- `usdriverlicfield` (field, `pii/us/us_pii.yaml`)
- `usdriverlicvalue` (data, `pii/us/us_pii.yaml`)
- `us_persons_usdriverlicfield` (field, `us/us_persons.yaml`)
- `us_persons_usdriverlicvalue` (data, `us/us_persons.yaml`)

## Supported by tools

- `amazonmacie`
- `awsglue`
- `azureailanguage`
- `collibra`
- `databricks`
- `datahub`
- `googledlp`
- `ibmknowledgecatalog`
- `metacrafter`
- `microsoftpurview`
- `nightfall`
- `openmetadata`
- `presidio`
- `snowflake`

## Sources

- wikipedia: <https://en.wikipedia.org/wiki/Driver%27s_licenses_in_the_United_States>

## Quality

Score 55/100. Missing: longer description, anchored regexp, examples, negative example, translation.

JSON: <http://registry.apicrafter.io/api/v1/datatypes/usdriverlic.json> · Edit: <https://github.com/apicrafter/metacrafter-registry/edit/main/data/datatypes/US/persons/usdriverlic.yaml>
