LogRocket · Schema

User

A LogRocket user record with identification traits.

Session ReplayProduct AnalyticsFrontend MonitoringLoggingErrors

Properties

Name Type Description
userId string The unique identifier for the user.
name string The display name of the user.
email string The email address of the user.
traits object Custom key-value pairs representing user traits. All values are returned as strings regardless of the input type.
View JSON Schema on GitHub

JSON Schema

logrocket-user-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/User",
  "title": "User",
  "type": "object",
  "description": "A LogRocket user record with identification traits.",
  "properties": {
    "userId": {
      "type": "string",
      "description": "The unique identifier for the user."
    },
    "name": {
      "type": "string",
      "description": "The display name of the user."
    },
    "email": {
      "type": "string",
      "format": "email",
      "description": "The email address of the user."
    },
    "traits": {
      "type": "object",
      "description": "Custom key-value pairs representing user traits. All values are returned as strings regardless of the input type.",
      "additionalProperties": {
        "type": "string"
      }
    }
  }
}