---
title: "identity.legacy-identity-map@1 · OpenVibe.Services"
canonical: "https://openvibe.services/docs/contracts/identity.legacy-identity-map"
updated: null
---

# identity.legacy-identity-map@1 · OpenVibe.Services

HTML: [identity.legacy-identity-map@1 · OpenVibe.Services](https://openvibe.services/docs/contracts/identity.legacy-identity-map)

# LegacyIdentityMapEntry `identity.legacy-identity-map@1`

Generated at 2026-12-01 05:42:00 UTC from [`openvibe-contracts v0.454.0`](https://github.com/OpenVibers/OpenVibe.Contracts/tree/v0.454.0) and [`openvibe-sdk v0.193.0`](https://github.com/OpenVibers/OpenVibe.SDK/tree/v0.193.0).

- Version: 1.0.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Decision: [ADR-001](/docs/adr/ADR-001)
- Schema: [`https://openvibe.network/contracts/identity/legacy-identity-map.v1.json`](/docs/contracts/identity.legacy-identity-map.json)

One row of identity\_legacy\_map: links a service-local id to its canonical subject. Kept alongside legacy ids, never replacing them.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `subject_id` | string | yes |  | - `pattern ^(usr\|gst\|app\|mod)_[0-9A-HJKMNP-TV-Z]{26}$` |
| `source_system` | string | yes | live, media, games, network, rs-companion, hobo, ... | - `pattern ^[a-z][a-z0-9-]{1,39}$` |
| `source_type` | string | yes | user, anon\_user, player, steam, ... | - `pattern ^[a-z][a-z0-9_]{1,39}$` |
| `source_id` | string | yes |  | - `minLength 1`<br>- `maxLength 128` |
| `first_seen_at` | string |  |  | - `format date-time` |
| `verified_at` | string \| null |  |  | - `format date-time` |
| `metadata` | object |  |  |  |

## Examples

From the contract's own test fixtures: valid ones validate, rejected ones must fail.

 Valid: live-user

~~~~
{
  "subject_id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "source_system": "live",
  "source_type": "user",
  "source_id": "1234",
  "first_seen_at": "2026-09-22T00:00:00Z",
  "verified_at": null
}
~~~~

Rejected: missing-source

~~~~
{
  "subject_id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ",
  "source_system": "live",
  "source_type": "user"
}
~~~~

Rejected: service-subject

~~~~
{
  "subject_id": "live",
  "source_system": "live",
  "source_type": "user",
  "source_id": "1"
}
~~~~

## Validate

~~~~
const contracts = require('openvibe-contracts');
contracts.validate('identity.legacy-identity-map@1', value);   // { valid, errors: [{ path, message }] }
~~~~
