OS1 Services
...
User Management Service
User API

Creating Users

1min
to create a user, call the create user endpoint and specify the following required parameters in the request body member description remarks firstname first name of the user designation designation of the user to retrieve a list of all existing designations category category of the user valid values regular or adhoc primarymobile countrycode 3 4 character standard country code of the primary mobile number for the user primarymobile number the primary mobile number employmenttype type of employment valid values full time, part time, contract, or n/a request bodies are specified in json format the following example request body shows how to create a new user create user request body { "firstname" "john", "middlename" "false", "lastname" "doex", "email" "john doe\@example com", "designation" "field executive", "category" "regular", "employmenttype" "full time", "worklocations" \[ "facilities 1238 232 dsfs23 sdsdc" ], "manager" "string", "primarymobile" { "countrycode" "+1", "number" "5551234567" }, "secondarymobile" { "countrycode" "+1", "number" "5559876543" }, "identification" { "idtype" "driving license", "valididnumber" "abcde12345" }, "subfunction" "fe", "fileid" "file 1238 232 dsfs23 sdsdc" }