{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/contraforce/json-schema/contraforce-submit-add-users-request-schema.json",
  "title": "SubmitAddUsersRequest",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/contraforce-users-api-openapi.yml#/components/schemas/SubmitAddUsersRequest",
  "type": "object",
  "properties": {
    "users": {
      "type": [
        "null",
        "array"
      ],
      "items": {
        "$ref": "#/$defs/SubmitUserManagementRequest"
      }
    },
    "assignToWorkspace": {
      "type": "boolean",
      "description": "Set to true if the user is needed to be assigned for the workspace by default"
    }
  },
  "$defs": {
    "OrganizationalRole": {
      "enum": [
        "Admin",
        "UserAdmin",
        "WorkspaceAdmin",
        "AgentAdmin",
        "Member",
        "OrgContentOperator",
        "OrgContentAdmin"
      ]
    },
    "SubmitUserManagementRequest": {
      "type": "object",
      "properties": {
        "displayName": {
          "type": [
            "null",
            "string"
          ]
        },
        "tenantId": {
          "type": [
            "null",
            "string"
          ]
        },
        "userId": {
          "type": [
            "null",
            "string"
          ]
        },
        "organizationalRole": {
          "$ref": "#/$defs/OrganizationalRole"
        },
        "email": {
          "type": [
            "null",
            "string"
          ]
        },
        "isOwner": {
          "type": "boolean"
        }
      }
    }
  }
}