Skip to content

Username

Type Registry

Username

identity.person.username

Online username or handle for a user account. Typically alphanumeric with underscores, hyphens, or dots. Case-insensitive storage. Locale-specific due to character set restrictions.

Domain identityperson
Casts to VARCHAR
Scope Locale-specific
Locales EN, EN_AU, EN_GB, EN_CA, EN_US, DE, FR, ES, IT, NL, PL, RU

Try it

CLI
$ finetype infer -i "john.smith"
→ identity.person.username

DuckDB

Detect
SELECT finetype('john.smith');
-- → 'identity.person.username'
Cast expression
LOWER(CAST({col} AS VARCHAR))
Safe cast pipeline
-- Normalise and cast in one step
SELECT TRY_CAST(finetype_cast(my_column) AS VARCHAR) AS clean_value
FROM my_table
WHERE finetype(my_column) = 'identity.person.username';

JSON Schema

finetype schema identity.person.username
{
  "$id": "https://noon.sh/schemas/identity.person.username",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "description": "Online username or handle for a user account. Typically alphanumeric with underscores, hyphens, or dots. Case-insensitive storage. Locale-specific due to character set restrictions.",
  "examples": [
    "john.smith",
    "user_123",
    "alice-wonderland",
    "bob.jones_42"
  ],
  "maxLength": 32,
  "minLength": 3,
  "pattern": "^[a-zA-Z0-9_\\-.]{3,32}$",
  "title": "Username",
  "type": "string"
}

Examples

john.smithuser_123alice-wonderlandbob.jones_42

Also known as

handleaccount_name

Types in identity