Skip to main content

Create User

Overview

Create users by setting appropriate roles.

URL : api/user/create

Method : POST

Request Header

{ "accept": "'*/*'", "Authorization": Bearer ACCESS_TOKEN }

Request Body

  {
"firstName": "extuser",
"lastName": "test",
"emailAddress": "extuser@intellibuddies.com",
"userName": "extuser",
"pwd": "password",
"roles": [
{
"roleId": 1
}
],
"fullName": "extuser",
"isEnabled": True
}

Response

  • Status: 200 OK

  • Body:

      {
    "userId": 14,
    "tenantId": 1,
    "firstName": "extuser",
    "lastName": "test",
    "emailAddress": "extuser@intellibuddies.com",
    "userName": "extuser",
    "pwd": "",
    "department": null,
    "managerId": null,
    "isEnabled": true,
    "isSystemAccount": false,
    "created": "2024-04-11T03:46:35.264804Z",
    "modified": "2024-04-11T03:46:35.264804Z",
    "createdBy": "2#demouser1 1",
    "modifiedBy": "2#demouser1 1"
    }
  • Header:

      {
    access-control-allow-credentials: true
    access-control-allow-origin: http://<Control Room server>
    access-control-expose-headers: inline-image
    content-length: 481
    content-type: application/json; charset=utf-8
    date: Thu,14 Mar 2024 07:33:22 GMT
    server: Microsoft-IIS/10.0
    vary: Origin
    x-api-protector: [2:3:30:638459984323001006:0]
    }