{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cfengine/json-schema/cfengine-get-api-user-username-response-schema.json",
  "title": "GetApiUserUsernameResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cfengine-user-api-openapi.yml#/components/schemas/GetApiUserUsernameResponse",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "User name."
    },
    "email": {
      "type": "string",
      "description": "Email address."
    },
    "roles": {
      "type": "string",
      "description": "List of assigned RBAC roles."
    },
    "external": {
      "type": "string",
      "description": "Is user from external source (LDAP/AD)."
    },
    "time_zone": {
      "type": "string",
      "description": "Time zone"
    },
    "two_factor_enabled": {
      "type": "string",
      "description": "If a user has enabled two-factor authentication"
    }
  }
}