{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://quickiso.app/data-portability/members.schema.json",
  "title": "members.json",
  "description": "The members of the workspace: who each user id in the other files is, with the role and the state of the membership.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "userId": {
        "type": "string",
        "format": "uuid"
      },
      "displayName": {
        "type": "string"
      },
      "email": {
        "type": "string"
      },
      "role": {
        "type": "string",
        "enum": [
          "owner",
          "admin",
          "ms_manager",
          "control_owner",
          "contributor",
          "internal_auditor",
          "external_reviewer",
          "billing_admin",
          "read_only",
          "pentester"
        ]
      },
      "status": {
        "type": "string",
        "enum": [
          "active",
          "removed"
        ]
      }
    },
    "required": [
      "userId",
      "displayName",
      "email",
      "role",
      "status"
    ],
    "additionalProperties": false
  }
}
