> ## Documentation Index
> Fetch the complete documentation index at: https://docs.skillable.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a user

> Allows you to create a user.

## OpenAPI

````json GET /CreateUser
{
  "openapi": "3.0.3",
  "info": {
    "title": "TMS API",
    "description": "# Introduction\nWelcome to Skillable Connect: TMS Edition, our core platform for managing your users, scheduling training to consume content, managing course assignments and subscriptions.\n\n## Authenticate with API Key\nSkillable APIs offer one form of authentication: an API Key. All methods require an API Key, which must be obtained from a Skillable team member working with your organization. Our systems use this key to validate your development account. \n\nPass your API Key as an HTTP request header with the header name \"api_key\".\n\n\n<SecurityDefinitions />\n",
    "termsOfService": "https://skillable.com/terms-and-conditions/",
    "contact": {
      "name": "Skillable Support",
      "url": "https://skillable.com/customer-support/",
      "email": "support@skillable.com"
    },
    "x-logo": {
      "url": "https://raw.githubusercontent.com/LearnOnDemandSystems/ConnectAPI/main/Skillable%20Connect%20Logo.svg",
      "altText": "Skillable Connect"
    },
    "license": {
      "name": "Apache 2.0",
      "url": "http://www.apache.org/licenses/LICENSE-2.0.html"
    },
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://lms.learnondemand.net/api/2.0",
      "description": "Skillable Connect TMS API"
    }
  ],
  "paths": {
    "/CreateUser": {
      "get": {
        "tags": [
          "User Management"
        ],
        "summary": "Create a user",
        "description": "Allows you to create a user.",
        "operationId": "CreateUser",
        "parameters": [
          {
            "name": "userName",
            "in": "query",
            "description": "The user's username (used during sign-in). Email address can be used as long as it is unique within the system. Note: even if the user will be using an external authentication provider, the username/password properties should still be provided.",
            "required": "true",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string",
              "example": "john.smith"
            }
          },
          {
            "name": "password",
            "in": "query",
            "description": "The user's password (used during sign-in). Note: even if the user will be using an external authentication provider, the username/password properties should still be provided. The user will be prompted to reset their password on the next sign in.",
            "required": "true",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "email",
            "in": "query",
            "description": "The user's e-mail address",
            "required": "true",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "firstName",
            "in": "query",
            "description": "The user's first name",
            "required": "true",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string",
              "maxLength": "50"
            }
          },
          {
            "name": "lastName",
            "in": "query",
            "description": "The user's last name",
            "required": "true",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string",
              "maxLength": "50"
            }
          },
          {
            "name": "organizationId",
            "in": "query",
            "description": "The unique identifier of the organization the user belongs to. This can be the organization that corresponds to your API key, or a child organization.",
            "required": "true",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "integer",
              "format": "int32",
              "example": "12345678"
            }
          },
          {
            "name": "externalId",
            "in": "query",
            "description": "The user's external ID, usually a unique identifier from the calling system",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "middleName",
            "in": "query",
            "description": "The user's middle name",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "title",
            "in": "query",
            "description": "The user's title.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "companyId",
            "in": "query",
            "description": "The Id of the user's company (set only if the user belongs to a company).",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "integer",
              "format": "int32",
              "example": "12345678"
            }
          },
          {
            "name": "managerId",
            "in": "query",
            "description": "The user Id of the user's manager (set only if the user belongs to a manager).",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "integer",
              "format": "int32",
              "example": "12345678"
            }
          },
          {
            "name": "disabled",
            "in": "query",
            "description": "Indicates whether the user account has been disabled.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "boolean",
              "example": "false"
            }
          },
          {
            "name": "phone",
            "in": "query",
            "description": "The user's phone number.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "phone2",
            "in": "query",
            "description": "The user's secondary phone number.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "address1",
            "in": "query",
            "description": "First line of the user's address.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "address2",
            "in": "query",
            "description": "Second line of the user's address",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "city",
            "in": "query",
            "description": "The user's city.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "state",
            "in": "query",
            "description": "The user's state.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "country",
            "in": "query",
            "description": "The user's country. The CountryCode field will override this value if both are provided.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            },
            "deprecated": "true"
          },
          {
            "name": "countryCode",
            "in": "query",
            "description": "The input field, **Country**, has been *deprecated* in favor of **CountryCode**. If the **Country** field is provided but the **CountryCode** field is not then **CountryCode** will be defaulted to **OT - Other**.  \nThe **CountryCode** field is a 2-character code for the user's country.  \n\n**Allowed values**  \n\n  OT  Other - The **Country** field must be provided  \n  AF\tAfghanistan  \n  AX\tÅland Islands  \n  AL\tAlbania  \n  DZ\tAlgeria  \n  AS\tAmerican Samoa  \n  AD\tAndorra  \n  AO\tAngola  \n  AI\tAnguilla  \n  AG\tAntigua and Barbuda  \n  AR\tArgentina  \n  AM\tArmenia  \n  AW\tAruba  \n  AU\tAustralia  \n  AT\tAustria  \n  AZ\tAzerbaijan  \n  BS\tBahamas  \n  BH\tBahrain  \n  BD\tBangladesh  \n  BB\tBarbados  \n  BY\tBelarus  \n  BE\tBelgium  \n  BZ\tBelize  \n  BJ\tBenin  \n  BM\tBermuda  \n  BT\tBhutan  \n  BO\tBolivia  \n  BQ\tBonaire, Sint Eustatius and Saba  \n  BA\tBosnia and Herzegovina  \n  BW\tBotswana  \n  BR\tBrazil  \n  IO\tBritish Indian Ocean Territory  \n  VG\tBritish Virgin Islands  \n  BN\tBrunei  \n  BG\tBulgaria  \n  BF\tBurkina Faso  \n  BI\tBurundi  \n  CV\tCabo Verde  \n  KH\tCambodia  \n  CM\tCameroon  \n  CA\tCanada  \n  KY\tCayman Islands  \n  CF\tCentral African Republic  \n  TD\tChad  \n  CL\tChile  \n  CN\tChina  \n  CX\tChristmas Island  \n  CC\tCocos (Keeling) Islands  \n  CO\tColombia  \n  KM\tComoros  \n  CG\tCongo  \n  CD\tCongo (DRC)  \n  CK\tCook Islands  \n  CR\tCosta Rica  \n  CI\tCôte d’Ivoire  \n  HR\tCroatia  \n  CU\tCuba  \n  CW\tCuraçao  \n  CY\tCyprus  \n  CZ\tCzech Republic  \n  DK\tDenmark  \n  DJ\tDjibouti  \n  DM\tDominica  \n  DO\tDominican Republic  \n  EC\tEcuador  \n  EG\tEgypt  \n  SV\tEl Salvador  \n  GQ\tEquatorial Guinea  \n  ER\tEritrea  \n  EE\tEstonia  \n  ET\tEthiopia  \n  FK\tFalkland Islands  \n  FO\tFaroe Islands  \n  FJ\tFiji  \n  FI\tFinland  \n  FR\tFrance  \n  GF\tFrench Guiana  \n  PF\tFrench Polynesia  \n  GA\tGabon  \n  GM\tGambia  \n  GE\tGeorgia  \n  DE\tGermany  \n  GH\tGhana  \n  GI\tGibraltar  \n  GR\tGreece  \n  GL\tGreenland  \n  GD\tGrenada  \n  GP\tGuadeloupe  \n  GU\tGuam  \n  GT\tGuatemala  \n  GG\tGuernsey  \n  GN\tGuinea  \n  GW\tGuinea-Bissau  \n  GY\tGuyana  \n  HT\tHaiti  \n  HN\tHonduras  \n  HK\tHong Kong SAR  \n  HU\tHungary  \n  IS\tIceland  \n  IN\tIndia  \n  ID\tIndonesia  \n  IR\tIran  \n  IQ\tIraq  \n  IE\tIreland  \n  IM\tIsle of Man  \n  IL\tIsrael  \n  IT\tItaly  \n  JM\tJamaica  \n  JP\tJapan  \n  JE\tJersey  \n  JO\tJordan  \n  KZ\tKazakhstan  \n  KE\tKenya  \n  KI\tKiribati  \n  KR\tKorea  \n  XK\tKosovo  \n  KW\tKuwait  \n  KG\tKyrgyzstan  \n  LA\tLaos  \n  LV\tLatvia  \n  LB\tLebanon  \n  LS\tLesotho  \n  LR\tLiberia  \n  LY\tLibya  \n  LI\tLiechtenstein  \n  LT\tLithuania  \n  LU\tLuxembourg  \n  MO\tMacao SAR  \n  MK\tMacedonia, FYRO  \n  MG\tMadagascar  \n  MW\tMalawi  \n  MY\tMalaysia  \n  MV\tMaldives  \n  ML\tMali  \n  MT\tMalta  \n  MH\tMarshall Islands  \n  MQ\tMartinique  \n  MR\tMauritania  \n  MU\tMauritius  \n  YT\tMayotte  \n  MX\tMexico  \n  FM\tMicronesia  \n  MD\tMoldova  \n  MC\tMonaco  \n  MN\tMongolia  \n  ME\tMontenegro  \n  MS\tMontserrat  \n  MA\tMorocco  \n  MZ\tMozambique  \n  MM\tMyanmar  \n  NA\tNamibia  \n  NR\tNauru  \n  NP\tNepal  \n  NL\tNetherlands  \n  NC\tNew Caledonia  \n  NZ\tNew Zealand  \n  NI\tNicaragua  \n  NE\tNiger  \n  NG\tNigeria  \n  NU\tNiue  \n  NF\tNorfolk Island  \n  KP\tNorth Korea  \n  MP\tNorthern Mariana Islands  \n  NO\tNorway  \n  OM\tOman  \n  PK\tPakistan  \n  PW\tPalau  \n  PS\tPalestinian Authority  \n  PA\tPanama  \n  PG\tPapua New Guinea  \n  PY\tParaguay  \n  PE\tPeru  \n  PH\tPhilippines  \n  PN\tPitcairn Islands  \n  PL\tPoland  \n  PT\tPortugal  \n  PR\tPuerto Rico  \n  QA\tQatar  \n  RE\tRéunion  \n  RO\tRomania  \n  RU\tRussia  \n  RW\tRwanda  \n  BL\tSaint Barthélemy  \n  KN\tSaint Kitts and Nevis  \n  LC\tSaint Lucia  \n  MF\tSaint Martin  \n  PM\tSaint Pierre and Miquelon  \n  VC\tSaint Vincent and the Grenadines  \n  WS\tSamoa  \n  SM\tSan Marino  \n  ST\tSão Tomé and Príncipe  \n  SA\tSaudi Arabia  \n  SN\tSenegal  \n  RS\tSerbia  \n  SC\tSeychelles  \n  SL\tSierra Leone  \n  SG\tSingapore  \n  SX\tSint Maarten  \n  SK\tSlovakia  \n  SI\tSlovenia  \n  SB\tSolomon Islands  \n  SO\tSomalia  \n  ZA\tSouth Africa  \n  SS\tSouth Sudan  \n  ES\tSpain  \n  LK\tSri Lanka  \n  SH\tSt Helena, Ascension, Tristan da Cunha  \n  SD\tSudan  \n  SR\tSuriname  \n  SJ\tSvalbard and Jan Mayen  \n  SZ\tSwaziland  \n  SE\tSweden  \n  CH\tSwitzerland  \n  SY\tSyria  \n  TW\tTaiwan  \n  TJ\tTajikistan  \n  TZ\tTanzania  \n  TH\tThailand  \n  TL\tTimor-Leste  \n  TG\tTogo  \n  TK\tTokelau  \n  TO\tTonga  \n  TT\tTrinidad and Tobago  \n  TN\tTunisia  \n  TR\tTurkey  \n  TM\tTurkmenistan  \n  TC\tTurks and Caicos Islands  \n  TV\tTuvalu  \n  UM\tU.S. Outlying Islands  \n  VI\tU.S. Virgin Islands  \n  UG\tUganda  \n  UA\tUkraine  \n  AE\tUnited Arab Emirates  \n  GB\tUnited Kingdom  \n  US\tUnited States  \n  UY\tUruguay  \n  UZ\tUzbekistan  \n  VU\tVanuatu  \n  VE\tVenezuela  \n  VN\tVietnam  \n  WF\tWallis and Futuna  \n  YE\tYemen  \n  ZM\tZambia  \n  ZW\tZimbabwe\n",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "zip",
            "in": "query",
            "description": "The user's zip/postal code.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "profileImageUrl",
            "in": "query",
            "description": "URL to the user's profile image.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "timeZoneId",
            "in": "query",
            "description": "The time zone for the data object. If not specified, the timezone of the organization will be used.  \n\n**Allowed values**  \n  \nAfghanistan Standard Time  \nAlaskan Standard Time  \nAleutian Standard Time  \nAltai Standard Time  \nArab Standard Time  \nArabian Standard Time  \nArabic Standard Time  \nArgentina Standard Time  \nAstrakhan Standard Time  \nAtlantic Standard Time  \nAUS Central Standard Time  \nAus Central W. Standard Time  \nAUS Eastern Standard Time  \nAzerbaijan Standard Time  \nAzores Standard Time  \nBahia Standard Time  \nBangladesh Standard Time  \nBelarus Standard Time  \nBougainville Standard Time  \nCanada Central Standard Time  \nCape Verde Standard Time  \nCaucasus Standard Time  \nCen. Australia Standard Time  \nCentral America Standard Time  \nCentral Asia Standard Time  \nCentral Brazilian Standard Time  \nCentral Europe Standard Time  \nCentral European Standard Time  \nCentral Pacific Standard Time  \nCentral Standard Time  \nCentral Standard Time (Mexico)  \nChatham Islands Standard Time  \nChina Standard Time  \nCuba Standard Time  \nDateline Standard Time  \nE. Africa Standard Time  \nE. Australia Standard Time  \nE. Europe Standard Time  \nE. South America Standard Time  \nEaster Island Standard Time  \nEastern Standard Time  \nEastern Standard Time (Mexico)  \nEgypt Standard Time  \nEkaterinburg Standard Time  \nFiji Standard Time  \nFLE Standard Time  \nGeorgian Standard Time  \nGMT Standard Time  \nGreenland Standard Time  \nGreenwich Standard Time  \nGTB Standard Time  \nHaiti Standard Time  \nHawaiian Standard Time  \nIndia Standard Time  \nIran Standard Time  \nIsrael Standard Time  \nJordan Standard Time  \nKaliningrad Standard Time  \nKamchatka Standard Time  \nKorea Standard Time  \nLibya Standard Time  \nLine Islands Standard Time  \nLord Howe Standard Time  \nMagadan Standard Time  \nMagallanes Standard Time  \nMarquesas Standard Time  \nMauritius Standard Time  \nMid-Atlantic Standard Time  \nMiddle East Standard Time  \nMontevideo Standard Time  \nMorocco Standard Time  \nMountain Standard Time  \nMountain Standard Time (Mexico)  \nMyanmar Standard Time  \nN. Central Asia Standard Time  \nNamibia Standard Time  \nNepal Standard Time  \nNew Zealand Standard Time  \nNewfoundland Standard Time  \nNorfolk Standard Time  \nNorth Asia East Standard Time  \nNorth Asia Standard Time  \nNorth Korea Standard Time  \nOmsk Standard Time  \nPacific SA Standard Time  \nPacific Standard Time  \nPacific Standard Time (Mexico)  \nPakistan Standard Time  \nParaguay Standard Time  \nQyzylorda Standard Time  \nRomance Standard Time  \nRussia Time Zone 10  \nRussia Time Zone 11  \nRussia Time Zone 3  \nRussian Standard Time  \nSA Eastern Standard Time  \nSA Pacific Standard Time  \nSA Western Standard Time  \nSaint Pierre Standard Time  \nSakhalin Standard Time  \nSamoa Standard Time  \nSao Tome Standard Time  \nSaratov Standard Time  \nSE Asia Standard Time  \nSingapore Standard Time  \nSouth Africa Standard Time  \nSouth Sudan Standard Time  \nSri Lanka Standard Time  \nSudan Standard Time  \nSyria Standard Time  \nTaipei Standard Time  \nTasmania Standard Time  \nTocantins Standard Time  \nTokyo Standard Time  \nTomsk Standard Time  \nTonga Standard Time  \nTransbaikal Standard Time  \nTurkey Standard Time  \nTurks And Caicos Standard Time  \nUlaanbaatar Standard Time  \nUS Eastern Standard Time  \nUS Mountain Standard Time  \nUTC  \nUTC+12  \nUTC+13  \nUTC-02  \nUTC-08  \nUTC-09  \nUTC-11  \nVenezuela Standard Time  \nVladivostok Standard Time  \nVolgograd Standard Time  \nW. Australia Standard Time  \nW. Central Africa Standard Time  \nW. Europe Standard Time  \nW. Mongolia Standard Time  \nWest Asia Standard Time  \nWest Bank Standard Time  \nWest Pacific Standard Time  \nYakutsk Standard Time  \nYukon Standard Time",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "roleId",
            "in": "query",
            "description": "An identifier for the role the user should belong to. You can provide multiple instances of this parameter to add the user to multiple roles. For example: roleId=0&roleId=2&roleId=20. You can discover roles available to your API integration by using the GetUserRoles command.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "integer",
              "format": "int32",
              "example": "12345678"
            }
          },
          {
            "name": "managedOrganizationId",
            "in": "query",
            "description": "An identifier for the organization the user should have management rights for. You can provide multiple instances of this parameter if the user should have management rights over multiple organizations. For example: managedOrganizationId=30&managedOrganizationId=45&managedOrganizationId=78. All managed organizations must belong to the API caller's organization or one of its children.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "integer",
              "format": "int32",
              "example": "12345678"
            }
          },
          {
            "name": "enableGeneralNotifications",
            "in": "query",
            "description": "An optional parameter to allow the sending of general notifications to the user.",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "name": "forcePasswordChange",
            "in": "query",
            "description": "An optional parameter to force the user to change their password on the next login",
            "required": "false",
            "style": "form",
            "explode": "true",
            "schema": {
              "type": "boolean"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK Response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateResponse"
                }
              }
            }
          }
        },
        "deprecated": "false"
      }
    }
  },
  "components": {
    "schemas": {
      "CreateResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "integer",
            "description": "Indicates the status of the API request.  \n\n- 0 = Success  \n- 10 = Error  \n- 30 = Invalid integration key",
            "format": "int32",
            "example": "10"
          },
          "error": {
            "type": "string",
            "description": "Error details. This will only have a value if an error was encountered. The status property will also be set to Error (10).",
            "nullable": "true"
          }
        }
      }
    }
  }
}
````

