{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-collaboration-hybrid-solutions/json-schema/cisco-collaboration-hybrid-solutions-post-user-schema.json",
  "title": "PostUser",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-collaboration-hybrid-solutions-admin-api-openapi.yml#/components/schemas/PostUser",
  "type": "object",
  "required": [
    "schemas",
    "userName",
    "userType"
  ],
  "properties": {
    "schemas": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Input JSON schemas."
    },
    "userName": {
      "type": "string",
      "description": "A unique identifier for the user that authenticates the user in Webex.  This must be set to the user's primary email address.  No other user in Webex may have the same `userName` value, so this value must be unique within Webex."
    },
    "userType": {
      "allOf": [
        {
          "$ref": "#/$defs/UserTypeObject"
        }
      ],
      "description": "User type."
    },
    "title": {
      "type": "string",
      "description": "The user's business title.  Examples of a title is \"Business Manager\". \"Senior Accountant\", \"Engineer\" etc."
    },
    "active": {
      "type": "boolean",
      "description": "A boolean value of \"true\" or \"false\" indicating whether the user is allowed to login to Webex."
    },
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoleObject"
      },
      "description": "List of roles assigned to the user."
    },
    "preferredLanguage": {
      "type": "string",
      "description": "User's preferred language. Acceptable values are based on the [ISO-696](http://www.loc.gov/standards/iso639-2/php/code_list.php) and [ISO-3166](https://www.iso.org/obp/ui/#search) with the 2 letter language code followed by an _ and then the 2 letter country code.  Examples are:\n\n                                    en_US : for United States English or fr_FR for Parisian French."
    },
    "locale": {
      "type": "string",
      "description": "The user's locale which represents the user's currency, time format, and numerical representations.  Acceptable values are based on the [ISO-696](http://www.loc.gov/standards/iso639-2/php/code_list.php) and [ISO-3166](https://www.iso.org/obp/ui/#search) with the 2 letter language code followed by an _ and then the 2 letter country code.  Examples are:\n\n                         en_US : for United States English or fr_FR for Parisian French."
    },
    "timezone": {
      "type": "string",
      "description": "The user's time zone specified in the [IANA timezone](https://nodatime.org/timezones) timezone format, for example, \"America/Los_Angeles\"."
    },
    "profileUrl": {
      "type": "string",
      "description": "A fully qualified URL pointing to a page representing the user's online profile."
    },
    "externalId": {
      "type": "string",
      "description": "User identifier provided by an external provisioning source."
    },
    "displayName": {
      "type": "string",
      "description": "The name displayed for the user in Webex."
    },
    "nickName": {
      "type": "string",
      "description": "A casual name of the user. For example, Bob when the user's formal name is Robert."
    },
    "name": {
      "allOf": [
        {
          "$ref": "#/$defs/NameObject"
        }
      ],
      "description": "The components of the user's real name."
    },
    "phoneNumbers": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PhoneNumberObject"
      },
      "description": "A list of user's phone numbers."
    },
    "photos": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PhotoObject"
      },
      "description": "A list of photo objects for the user."
    },
    "addresses": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/AddressObject"
      },
      "description": "User's physical mailing address."
    },
    "emails": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EmailObject"
      },
      "description": "A list of the user's email addresses, including primary and alternative emails. The primary work email address must match the value of the user's username."
    },
    "urn:ietf:params:scim:schemas:extension:enterprise:2.0:User": {
      "type": "object",
      "properties": {
        "costCenter": {
          "type": "string",
          "description": "Name of a cost center."
        },
        "organization": {
          "type": "string",
          "description": "Name of an organization."
        },
        "division": {
          "type": "string",
          "description": "Name of a division."
        },
        "department": {
          "type": "string",
          "description": "Name of a department."
        },
        "employeeNumber": {
          "type": "string",
          "description": "Numeric or alphanumeric identifier assigned to a person, typically based on the order of hire or association with an organization."
        },
        "manager": {
          "type": "object",
          "required": [
            "value"
          ],
          "properties": {
            "value": {
              "type": "string",
              "description": "Webex Identity assigned user identifier of the user's manager. The manager must belong to the same org as the user."
            }
          },
          "description": "The user's manager."
        }
      },
      "description": "SCIM2 enterprise extension"
    },
    "urn:scim:schemas:extension:cisco:webexidentity:2.0:User": {
      "type": "object",
      "required": [
        "accountStatus"
      ],
      "properties": {
        "accountStatus": {
          "allOf": [
            {
              "$ref": "#/$defs/AccountStatusObject"
            }
          ],
          "description": "An array of additional information about a user's status."
        },
        "sipAddresses": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SipAddressObject"
          },
          "description": "`sipAddress` values for the user."
        },
        "managedOrgs": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ManagedOrgsObject"
          },
          "description": "Organizations that the user can manage."
        },
        "managedGroups": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ManagedGroupsObject"
          },
          "description": "Groups that the user can manage."
        },
        "extensionAttribute*": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The extension attributes of the user. Postfix support from 1 to 15, for example: \"extensionAttribute1\", \"extensionAttribute2\", ..., \"extensionAttribute15\"."
        },
        "externalAttribute*": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ExternalAttributeObject"
          },
          "description": "The external attributes of the user. Postfix support from 1 to 15, for example: \"externalAttribute1\", \"externalAttribute2\", ..., \"externalAttribute15\"."
        }
      },
      "description": "The Cisco extension of SCIM 2."
    }
  },
  "$defs": {
    "AccountStatusObject": {
      "type": "string",
      "description": "An array of additional information about a user's status.",
      "enum": [
        "active",
        "pending",
        "transient",
        "disabled",
        "fraud",
        "fraud_transient",
        "compliance_transient",
        "pending_transient"
      ]
    },
    "AddressObject": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "description": "The type of the address."
        },
        "streetAddress": {
          "type": "string",
          "description": "The full street address component, which may include house number, street name, P.O. box, and multi-line extended street address information. This attribute MAY contain newlines."
        },
        "locality": {
          "type": "string",
          "description": "The city or locality component."
        },
        "region": {
          "type": "string",
          "description": "The state or region component."
        },
        "postalCode": {
          "type": "string",
          "description": "The zip code or postal code component."
        },
        "country": {
          "type": "string",
          "description": "The country name component."
        }
      }
    },
    "EmailObject": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "The email address."
        },
        "type": {
          "type": "string",
          "enum": [
            "work",
            "home",
            "room",
            "other"
          ],
          "description": "The type of the email."
        },
        "display": {
          "type": "string",
          "description": "A human-readable description, primarily used for display purposes."
        },
        "primary": {
          "type": "boolean",
          "description": "Email status boolean value. If the type is work and primary is true, the value must equal `userName`."
        }
      }
    },
    "ExternalAttributeObject": {
      "type": "object",
      "required": [
        "source",
        "value"
      ],
      "properties": {
        "source": {
          "type": "string",
          "description": "Source of external attribute."
        },
        "value": {
          "type": "string",
          "description": "Value of external attribute."
        }
      }
    },
    "ManagedGroupsObject": {
      "type": "object",
      "required": [
        "orgId",
        "groupId",
        "role"
      ],
      "properties": {
        "orgId": {
          "type": "string",
          "description": "Webex Identity assigned organization identifier."
        },
        "groupId": {
          "type": "string",
          "description": "Webex Identity assigned group identifier."
        },
        "role": {
          "type": "string",
          "description": "Role in the target group for the user."
        }
      }
    },
    "ManagedOrgsObject": {
      "type": "object",
      "required": [
        "orgId",
        "role"
      ],
      "properties": {
        "orgId": {
          "type": "string",
          "description": "Webex Identity assigned organization identifier."
        },
        "role": {
          "type": "string",
          "description": "Role in the target organization for the user."
        }
      }
    },
    "NameObject": {
      "type": "object",
      "description": "The components of the user's real name.",
      "properties": {
        "givenName": {
          "type": "string",
          "description": "The given name of the user, or first name in most Western languages (e.g., \"Sarah\" given the full name \"Ms. Sarah J Henderson, III\")."
        },
        "familyName": {
          "type": "string",
          "description": "The family name of the user, or last name in most Western languages (e.g., \"Henderson\" given the full name \"Ms. Sarah J Henderson, III\")."
        },
        "middleName": {
          "type": "string",
          "description": "The middle name(s) of the user (e.g., \"Jane\" given the full name \"Ms. Sarah J Henderson, III\")."
        },
        "honorificPrefix": {
          "type": "string",
          "description": "The honorific prefix(es) of the user, or title in most Western languages (e.g., \"Ms.\" given the full name \"Ms. Sarah J Henderson, III\")."
        },
        "honorificSuffix": {
          "type": "string",
          "description": "The honorific suffix(es) of the user, or suffix in most Western languages (e.g., \"III\" given the full name \"Ms. Sarah J Henderson, III\")."
        }
      }
    },
    "PhoneNumberObject": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "phone number."
        },
        "type": {
          "type": "string",
          "enum": [
            "work",
            "home",
            "mobile",
            "work_extension",
            "fax",
            "pager",
            "other"
          ],
          "description": "We support the following phone number types: 'mobile', 'work', 'fax', 'work_extension', 'alternate1', 'alternate2'.  Alternate 1 and Alternate 2 are types inherited from Webex meeting sites."
        },
        "display": {
          "type": "string",
          "description": "A human-readable name, primarily used for display purposes."
        },
        "primary": {
          "type": "boolean",
          "description": "A Boolean value for phone number's primary status."
        }
      }
    },
    "PhotoObject": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "photo link."
        },
        "type": {
          "type": "string",
          "enum": [
            "photo",
            "thumbnail",
            "resizable"
          ],
          "description": "The type of the photo"
        },
        "display": {
          "type": "string",
          "description": "A human-readable description, primarily used for display purposes."
        },
        "primary": {
          "type": "boolean",
          "description": "A Boolean value for the photo usage status."
        }
      }
    },
    "RoleObject": {
      "type": "object",
      "properties": {
        "value": {
          "type": "string",
          "description": "CI Role"
        },
        "type": {
          "type": "string",
          "description": "name"
        },
        "display": {
          "type": "string",
          "description": "A human-readable name, primarily used for display purposes."
        }
      }
    },
    "SipAddressObject": {
      "type": "object",
      "required": [
        "value"
      ],
      "properties": {
        "value": {
          "type": "string",
          "description": "The `sipAddress` value."
        },
        "type": {
          "type": "string",
          "enum": [
            "enterprise"
          ],
          "description": "`sipAddress` type."
        },
        "display": {
          "type": "string",
          "description": "A human-readable description, primarily used for display purposes."
        },
        "primary": {
          "type": "boolean",
          "description": "Designate the primary `sipAddress`."
        }
      }
    },
    "UserTypeObject": {
      "type": "string",
      "enum": [
        "user",
        "room",
        "external_calling",
        "calling_service"
      ]
    }
  }
}