{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cloudinary/json-schema/cloudinary-user-request-schema.json",
  "title": "UserRequest",
  "x-generated": "2026-11-17",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudinary-provisioning-openapi.yml#/components/schemas/UserRequest",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "The user's name."
    },
    "email": {
      "type": "string",
      "description": "A unique email address, which serves as the login name and notification address."
    },
    "role": {
      "type": "string",
      "deprecated": true,
      "x-speakeasy-deprecation-message": "Use `roles` (create) or `role_management` (update) instead.",
      "description": "The legacy role to assign. Deprecated: use `roles` (create) or `role_management` (update) instead. Can't be combined with `roles` or `role_management`.",
      "enum": [
        "master_admin",
        "admin",
        "billing",
        "technical_admin",
        "reports",
        "media_library_admin",
        "media_library_user"
      ]
    },
    "sub_account_ids": {
      "type": "array",
      "description": "A list of product environment IDs that this user can access. Ignored if the role is `master_admin`.\n**Default**: all product environments.\n",
      "items": {
        "type": "string"
      }
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the user is enabled. **Default**: true.\n"
    }
  }
}