How To: Create a User

For information about prerequisites, see Creating Users.

To create your first User, call the Create User endpoint and pass a request similar to the following:

{
  "firstName": "UserF",
  "middleName": "UserM",
  "lastName": "UserL",
  "email": "[email protected]",
  "designation": "Field-Executive",
  "category": "Regular",
  "employmentType": "Full-time",
  "workLocations": [
    "facilities:1238-232-dsfs23-sdsdc"
  ],
  "manager": "string",
  "primaryMobile": {
    "countryCode": "91",
    "number": "9812345678"
  },
  "secondaryMobile": {
    "countryCode": "91",
    "number": "9812345678"
  },
  "identification": {
    "idType": "Adhar Card",
    "validIdNumber": "ABCDE12345"
  },
  "subFunction": "FE",
  "fileID": "file:1238-232-dsfs23-sdsdc"
}

When creating subsequent Users, you can use the userOwnerId to specify non Tenant users as the owner of the User. This allows you to create a hierarchy of Users within your Organization.

To retrieve a list of all of the Users in your Tenant associated with your App, call the Get all Users.