{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/deputy/json-schema/deputy-access-management-list-employee-by-role-response-schema.json",
  "title": "Response for getting employees by role",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/deputy-access-management-employee-api-openapi.yml#/components/schemas/AccessManagementListEmployeeByRoleResponse",
  "type": "object",
  "properties": {
    "success": {
      "type": "boolean"
    },
    "employees": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/tenantauthv2modelEmployee"
      }
    },
    "total": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "tenantauthv2modelEmployee": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "int64",
          "title": "Employee ID"
        },
        "displayName": {
          "type": "string",
          "title": "Employee display name"
        },
        "primaryLocation": {
          "$ref": "#/$defs/tenantauthv2modelEmployeeLocation",
          "title": "Primary Location"
        }
      },
      "title": "Employee with basic information"
    },
    "tenantauthv2modelEmployeeLocation": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "int64",
          "title": "Location ID"
        },
        "name": {
          "type": "string",
          "title": "Location name"
        }
      },
      "title": "Primary location information"
    }
  }
}