{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/ovh/json-schema/ovh-license-office-office-user-native-schema.json",
  "title": "license.office.OfficeUserNative",
  "description": "Office user",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ovh-v1-license-office-openapi.yml#/components/schemas/license.office.OfficeUserNative",
  "type": "object",
  "properties": {
    "activationEmail": {
      "type": "string",
      "description": "Email used to activate Microsoft Office",
      "readOnly": true
    },
    "deleteAtExpiration": {
      "type": "boolean",
      "description": "Whether or not this user slot will be resigned at the next renew period",
      "readOnly": true
    },
    "firstName": {
      "type": "string",
      "description": "User's first name",
      "readOnly": true
    },
    "isVirtual": {
      "type": "boolean",
      "description": "Specify if the user is actually a user slot (configureme) or a real user",
      "readOnly": true
    },
    "lastName": {
      "type": "string",
      "description": "User's last name",
      "readOnly": true
    },
    "licences": {
      "type": "array",
      "description": "Licenses attributed to the user",
      "items": {
        "$ref": "#/$defs/license.office.LicenseEnum"
      },
      "readOnly": true
    },
    "status": {
      "allOf": [
        {
          "$ref": "#/$defs/license.office.UserStateEnum"
        }
      ],
      "description": "User state",
      "readOnly": true
    },
    "taskPendingId": {
      "type": "integer",
      "description": "Pending task id",
      "readOnly": true
    },
    "usageLocation": {
      "allOf": [
        {
          "$ref": "#/$defs/license.office.CountryEnum"
        }
      ],
      "description": "ISO 3166-1 alpha-2 country code where the user is using Office365 services",
      "readOnly": true
    }
  },
  "$defs": {
    "license.office.CountryEnum": {
      "type": "string",
      "description": "ISO country codes",
      "enum": [
        "ac",
        "ad",
        "ae",
        "af",
        "ag",
        "ai",
        "al",
        "am",
        "an",
        "ao",
        "aq",
        "ar",
        "as",
        "at",
        "au",
        "aw",
        "ax",
        "az",
        "ba",
        "bb",
        "bd",
        "be",
        "bf",
        "bg",
        "bh",
        "bi",
        "bj",
        "bl",
        "bm",
        "bn",
        "bo",
        "bq",
        "br",
        "bs",
        "bt",
        "bv",
        "bw",
        "by",
        "bz",
        "ca",
        "cc",
        "cd",
        "cf",
        "cg",
        "ch",
        "ci",
        "ck",
        "cl",
        "cm",
        "cn",
        "co",
        "cr",
        "cs",
        "cu",
        "cv",
        "cw",
        "cx",
        "cy",
        "cz",
        "de",
        "dj",
        "dk",
        "dm",
        "do",
        "dz",
        "ec",
        "ee",
        "eg",
        "eh",
        "er",
        "es",
        "et",
        "fc",
        "fd",
        "fi",
        "fj",
        "fk",
        "fm",
        "fo",
        "fr",
        "fx",
        "ga",
        "gb",
        "gd",
        "ge",
        "gf",
        "gg",
        "gh",
        "gi",
        "gl",
        "gm",
        "gn",
        "gp",
        "gq",
        "gr",
        "gs",
        "gt",
        "gu",
        "gw",
        "gy",
        "hk",
        "hm",
        "hn",
        "hr",
        "ht",
        "hu",
        "id",
        "ie",
        "il",
        "im",
        "in",
        "io",
        "iq",
        "ir",
        "is",
        "it",
        "je",
        "jm",
        "jo",
        "jp",
        "ke",
        "kg",
        "kh",
        "ki",
        "km",
        "kn",
        "kp",
        "kr",
        "kw",
        "ky",
        "kz",
        "la",
        "lb",
        "lc",
        "li",
        "lk",
        "lr",
        "ls",
        "lt",
        "lu",
        "lv",
        "ly",
        "ma",
        "mc",
        "md",
        "me",
        "mf",
        "mg",
        "mh",
        "mk",
        "ml",
        "mm",
        "mn",
        "mo",
        "mp",
        "mq",
        "mr",
        "ms",
        "mt",
        "mu",
        "mv",
        "mw",
        "mx",
        "my",
        "mz",
        "na",
        "nc",
        "ne",
        "nf",
        "ng",
        "ni",
        "nl",
        "no",
        "np",
        "nr",
        "nu",
        "nz",
        "om",
        "pa",
        "pe",
        "pf",
        "pg",
        "ph",
        "pk",
        "pl",
        "pm",
        "pn",
        "pr",
        "ps",
        "pt",
        "pw",
        "py",
        "qa",
        "qc",
        "re",
        "ro",
        "rs",
        "ru",
        "rw",
        "sa",
        "sb",
        "sc",
        "sd",
        "se",
        "sg",
        "sh",
        "si",
        "sj",
        "sk",
        "sl",
        "sm",
        "sn",
        "so",
        "sr",
        "ss",
        "st",
        "sv",
        "sx",
        "sy",
        "sz",
        "tc",
        "td",
        "tf",
        "tg",
        "th",
        "tj",
        "tk",
        "tl",
        "tm",
        "tn",
        "to",
        "tp",
        "tr",
        "tt",
        "tv",
        "tw",
        "tz",
        "ua",
        "ug",
        "uk",
        "um",
        "us",
        "uy",
        "uz",
        "va",
        "vc",
        "ve",
        "vg",
        "vi",
        "vn",
        "vu",
        "we",
        "wf",
        "ws",
        "ye",
        "yt",
        "yu",
        "za",
        "zm",
        "zw"
      ]
    },
    "license.office.LicenseEnum": {
      "type": "string",
      "description": "Office tenant type",
      "enum": [
        "officeBusiness",
        "officeProPlus"
      ]
    },
    "license.office.UserStateEnum": {
      "type": "string",
      "description": "Office tenant type",
      "enum": [
        "creating",
        "deleting",
        "ok",
        "suspended",
        "suspending",
        "unsuspending"
      ]
    }
  }
}