{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/karbonhq/json-schema/karbonhq-get-user-by-id-schema.json",
  "title": "GetUserById",
  "description": "The details for a single User",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/karbonhq-users-api-openapi.yml#/components/schemas/GetUserById",
  "type": "object",
  "properties": {
    "@odata.context": {
      "type": "string",
      "description": "The information about Karbon controllers generating this response."
    },
    "@odata.type": {
      "type": "string",
      "description": "The information about Karbon data type in this response."
    },
    "Id": {
      "type": "string",
      "description": "The unique Id of the User, this should match the key used in the URL"
    },
    "Name": {
      "type": "string",
      "description": "The name of the User"
    },
    "EmailAddress": {
      "type": "string",
      "description": "The email address of the User"
    },
    "BillableRate": {
      "format": "double",
      "description": "The default hourly rate in at which the user's work is billed at. The currency for `BillableRate` is based on the firm's currency and region found in Karbon under Settings > Account Settings.",
      "minimum": 0,
      "type": "number"
    },
    "CapacityMinutesPerWeek": {
      "type": "integer",
      "description": "The number of billable minutes allocated to the user per week"
    },
    "Permissions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of the permissions allocated to the User"
    },
    "Roles": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "description": "The name of the role"
          },
          "Key": {
            "type": "string",
            "description": "The unique identifier of the role"
          }
        }
      }
    },
    "Teams": {
      "type": "array",
      "description": "A list of the teams the User is member of",
      "items": {
        "type": "object",
        "properties": {
          "Key": {
            "type": "string",
            "description": "The unique key of the team"
          },
          "Name": {
            "type": "string",
            "description": "The name of the team"
          },
          "ParentTeamKey": {
            "type": [
              "string",
              "null"
            ],
            "description": "The unique key of the parent team, if applicable"
          }
        }
      }
    }
  }
}