{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/trimble/json-schema/trimble-list-project-users-response-schema.json",
  "title": "ListProjectUsersResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trimble-connect-core-v2-openapi.yml#/components/schemas/ListProjectUsersResponse",
  "required": [
    "id",
    "email",
    "firstName",
    "lastName",
    "hasImage",
    "thumbnail",
    "status",
    "role",
    "createdOn",
    "modifiedOn",
    "lastAccessed",
    "createdBy",
    "modifiedBy"
  ],
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "User identifier"
    },
    "tiduuid": {
      "type": "string",
      "description": "Trimble ID of the user"
    },
    "firstName": {
      "type": "string",
      "description": "First name of the user"
    },
    "lastName": {
      "type": "string",
      "description": "Last name of the user"
    },
    "email": {
      "type": "string",
      "description": "Email of the user"
    },
    "status": {
      "type": "string",
      "description": "User status. User's status is PENDING when a new user has been invited to a project and has not access Connect yet. Once the user has accessed Connect, the status becomes ACTIVE. REMOVED is a project specific status that is shown for users that have been removed from a project.",
      "enum": [
        "ACTIVE",
        "PENDING",
        "REMOVED"
      ]
    },
    "hasImage": {
      "type": "boolean",
      "description": "Image of the user"
    },
    "thumbnail": {
      "type": "string",
      "description": "URL to fetch the thumbnail of the user (if exists)"
    },
    "role": {
      "type": "string",
      "description": "Role of user (applicable only in context of a project)"
    },
    "company": {
      "$ref": "#/$defs/Company"
    },
    "companies": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Company"
      }
    },
    "createdOn": {
      "type": "string",
      "description": "(timestamp) An ISO8601 date when the user was created"
    },
    "modifiedOn": {
      "type": "string",
      "description": "(timestamp) An ISO8601 date when the user was modified"
    },
    "lastAccessed": {
      "type": "string",
      "description": "(timestamp)  An ISO8601 date when the user was lastAccessed"
    },
    "companyAdmin": {
      "type": "boolean"
    },
    "modifiedBy": {
      "$ref": "#/$defs/ModifiedBy"
    },
    "createdBy": {
      "$ref": "#/$defs/CreatedBy"
    }
  },
  "$defs": {
    "Company": {
      "title": "Company",
      "required": [
        "name",
        "website",
        "image",
        "role",
        "createdOn",
        "modifiedOn",
        "createdBy",
        "modifiedBy"
      ],
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "website": {
          "type": "string"
        },
        "image": {
          "type": "string"
        },
        "role": {
          "type": "string"
        },
        "createdOn": {
          "type": "string"
        },
        "modifiedOn": {
          "type": "string"
        },
        "createdBy": {
          "$ref": "#/$defs/CreatedBy"
        },
        "modifiedBy": {
          "$ref": "#/$defs/ModifiedBy"
        }
      }
    },
    "CreatedBy": {
      "title": "CreatedBy",
      "required": [
        "id",
        "firstName",
        "lastName",
        "email",
        "status"
      ],
      "type": "object",
      "description": "User details of who created this object",
      "properties": {
        "id": {
          "type": "string",
          "description": "User identifier"
        },
        "tiduuid": {
          "type": "string",
          "description": "Trimble ID of the user"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "User status. User's status is PENDING when a new user has been invited to a project and has not access Connect yet. Once the user has accessed Connect, the status becomes ACTIVE. REMOVED is a project specific status that is shown for users that have been removed from a project.",
          "enum": [
            "ACTIVE",
            "PENDING",
            "REMOVED"
          ]
        },
        "company": {
          "$ref": "#/$defs/Company"
        },
        "companies": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Company"
          }
        },
        "companyAdmin": {
          "type": "boolean"
        }
      }
    },
    "ModifiedBy": {
      "title": "ModifiedBy",
      "required": [
        "id",
        "firstName",
        "lastName",
        "email",
        "status"
      ],
      "type": "object",
      "description": "User details of who modified this object recently",
      "properties": {
        "id": {
          "type": "string",
          "description": "User identifier"
        },
        "tiduuid": {
          "type": "string",
          "description": "Trimble ID of the user"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "status": {
          "type": "string",
          "description": "User status. User's status is PENDING when a new user has been invited to a project and has not access Connect yet. Once the user has accessed Connect, the status becomes ACTIVE. REMOVED is a project specific status that is shown for users that have been removed from a project.",
          "enum": [
            "ACTIVE",
            "PENDING",
            "REMOVED"
          ]
        }
      }
    }
  }
}