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

# identity.subject-projection@1 · OpenVibe.Services

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

# IdentitySubjectProjection `identity.subject-projection@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.1.0
- Owner: network
- Visibility: first-party
- Status: active
- Compatibility: backward
- Schema: [`https://openvibe.network/contracts/identity/subject-projection.v1.json`](/docs/contracts/identity.subject-projection.json)

identity.subject-projection@1: what OpenVibe.Network's identity resolver answers about a subject (server/identity/subjects.js resolve): the SubjectRef, the Network account behind it, its display fields, whether it is banned and whether it is a test account, and every legacy id mapped to it.

## Fields

| Field | Type | Required | Description | Constraints |
| --- | --- | --- | --- | --- |
| `subject` | [identity.subject-ref](/docs/contracts/identity.subject-ref) | yes |  |  |
| `network_user_id` | integer |  |  |  |
| `network_anon_id` | integer |  |  |  |
| `username` | string | yes |  |  |
| `display_name` | string | yes |  |  |
| `avatar_url` | string \| null | yes |  |  |
| `banned` | boolean | yes |  |  |
| `legacy_ids` | array of object |  |  |  |
| `legacy_ids[].source_system` | string | yes |  |  |
| `legacy_ids[].source_type` | string | yes |  |  |
| `legacy_ids[].source_id` | string | yes |  |  |
| `is_test` | boolean |  | True for an account the probe and test tooling signs in as (users.is\_test on Network). A public member list, feed, leaderboard or account count leaves these accounts out; their own signed-in views still work. |  |

## Examples

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

 Valid: probe

~~~~
{
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "network_user_id": 410,
  "username": "ovprobe_merge_keep",
  "display_name": "ovprobe_merge_keep",
  "avatar_url": null,
  "banned": false,
  "is_test": true,
  "legacy_ids": [
    {
      "source_system": "live",
      "source_type": "user",
      "source_id": "17"
    }
  ]
}
~~~~

Valid: user

~~~~
{
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "network_user_id": 1042,
  "username": "alice",
  "display_name": "Alice",
  "avatar_url": null,
  "banned": false,
  "legacy_ids": [
    {
      "source_system": "live",
      "source_type": "user",
      "source_id": "17"
    }
  ],
  "is_test": false
}
~~~~

Rejected: banned-text

~~~~
{
  "subject": {
    "type": "user",
    "id": "usr_01JAB2C3D4E5F6G7H8J9K0MNPQ"
  },
  "username": "alice",
  "display_name": "Alice",
  "avatar_url": null,
  "banned": "no"
}
~~~~

## Validate

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