{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/autodesk/json-schema/autodesk-user-schema.json",
  "title": "User",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/autodesk-aps-construction-issues-openapi.yml#/components/schemas/User",
  "type": "object",
  "x-stoplight": {
    "id": "fc9hr299sgm4v"
  },
  "properties": {
    "id": {
      "type": "string",
      "description": "Unique identifier for the given user."
    },
    "isProjectAdmin": {
      "type": "boolean",
      "description": "States whether the current logged in user is a system admin."
    },
    "canManageTemplates": {
      "type": "boolean",
      "description": "Not relevant"
    },
    "issues": {
      "type": "object",
      "properties": {
        "new": {
          "type": "object",
          "description": "If this object appears in the response, it indicates that the user can create and modify issues.",
          "properties": {
            "permittedActions": {
              "type": "array",
              "description": "The list of actions permitted for the user for this issue in its current state.",
              "items": {
                "type": "string"
              }
            },
            "permittedAttributes": {
              "type": "array",
              "description": "A list of attributes you are allowed to open a new issue. issueTypeId, linkedDocument, links, ownerId, officialResponse, rootCauseId, snapshotUrn are not applicable.",
              "items": {
                "type": "string"
              }
            },
            "permittedStatuses": {
              "type": "array",
              "description": "A list of available statuses for the project.\nPossible values: draft, open, pending, in_progress, completed, in_review, not_approved, in_dispute, closed.",
              "items": {
                "type": "string"
              }
            },
            "permitted_actions": {
              "type": "array",
              "description": "Not relevant",
              "items": {
                "type": "string"
              }
            },
            "permitted_attributes": {
              "type": "array",
              "description": "Not relevant",
              "items": {
                "type": "string"
              }
            },
            "permitted_statuses": {
              "type": "array",
              "description": "Not relevant",
              "items": {
                "type": "string"
              }
            }
          }
        },
        "filter": {
          "type": "object",
          "description": "Not relevant",
          "properties": {
            "permittedStatuses": {
              "type": "array",
              "description": "Not relevant",
              "items": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    "permissionLevels": {
      "type": "array",
      "description": "The permission level of the user. Each permission level corresponds to a combination of values in the response. For example, a combination of read and create in the response, corresponds to a Create for other companies permission level.",
      "items": {
        "$ref": "#/$defs/permission_level"
      }
    }
  },
  "$defs": {
    "permission_level": {
      "title": "permission_level",
      "x-stoplight": {
        "id": "yvs19l1czlsoy"
      },
      "type": "string",
      "enum": [
        "create",
        "read",
        "write"
      ]
    }
  }
}