POST user/add

Adds a new user

Request Information

URI Parameters

None.

Body Parameters

UserAddRequestobject containing the details of the user

UserAddRequest
NameDescriptionTypeAdditional information
FirstName

string

None.

LastName

string

None.

StaffNumber

string

None.

BirthDate

date

None.

AdUserName

string

None.

IsADUser

boolean

None.

Email

string

None.

Password

string

None.

Phone

string

None.

PhoneExtension

string

None.

Mobile

string

None.

JobTitle

string

None.

Language

string

None.

OfficeId

integer

None.

CostCenterId

integer

None.

SecurityLevelId

integer

None.

ExpenseApprover1

integer

None.

ExpenseApprover2

integer

None.

SapInternalOrder

string

None.

SapVendorCode

string

None.

Permissions

Collection of string

None.

Notifications

Collection of NotificationInfo

None.

GenerateRequestNumber

boolean

None.

OfficePermissions

Collection of integer

None.

IsActive

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "FirstName": "sample string 1",
  "LastName": "sample string 2",
  "StaffNumber": "sample string 3",
  "BirthDate": "2025-04-29T12:08:52.8002442+02:00",
  "AdUserName": "sample string 5",
  "IsADUser": true,
  "Email": "sample string 7",
  "Password": "sample string 8",
  "Phone": "sample string 9",
  "PhoneExtension": "sample string 10",
  "Mobile": "sample string 11",
  "JobTitle": "sample string 12",
  "Language": "sample string 13",
  "OfficeId": 14,
  "CostCenterId": 1,
  "SecurityLevelId": 15,
  "ExpenseApprover1": 1,
  "ExpenseApprover2": 1,
  "SapInternalOrder": "sample string 16",
  "SapVendorCode": "sample string 17",
  "Permissions": [
    "sample string 1",
    "sample string 2"
  ],
  "Notifications": [
    {
      "Type": "sample string 1",
      "IsInherited": true,
      "IsGroupInherited": true,
      "UserId": 1,
      "UserGroupId": 1,
      "SecurityLevelId": 1,
      "Operation": "sample string 4",
      "SendPush": true,
      "SendEmail": true,
      "NotificationTemplateId": 7,
      "Action": "sample string 8",
      "Scope": 9
    },
    {
      "Type": "sample string 1",
      "IsInherited": true,
      "IsGroupInherited": true,
      "UserId": 1,
      "UserGroupId": 1,
      "SecurityLevelId": 1,
      "Operation": "sample string 4",
      "SendPush": true,
      "SendEmail": true,
      "NotificationTemplateId": 7,
      "Action": "sample string 8",
      "Scope": 9
    }
  ],
  "GenerateRequestNumber": true,
  "OfficePermissions": [
    1,
    2
  ],
  "IsActive": true
}

application/xml, text/xml

Sample:
<UserAddRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects.UserObjects">
  <IsActive xmlns="http://schemas.datacontract.org/2004/07/SALT2.Objects">true</IsActive>
  <AdUserName>sample string 5</AdUserName>
  <BirthDate>2025-04-29T12:08:52.8002442+02:00</BirthDate>
  <CostCenterId>1</CostCenterId>
  <Email>sample string 7</Email>
  <ExpenseApprover1>1</ExpenseApprover1>
  <ExpenseApprover2>1</ExpenseApprover2>
  <FirstName>sample string 1</FirstName>
  <GenerateRequestNumber>true</GenerateRequestNumber>
  <IsADUser>true</IsADUser>
  <JobTitle>sample string 12</JobTitle>
  <Language>sample string 13</Language>
  <LastName>sample string 2</LastName>
  <Mobile>sample string 11</Mobile>
  <Notifications xmlns:d2p1="http://schemas.datacontract.org/2004/07/SALT2.Objects.CommunicationObjects">
    <d2p1:NotificationInfo>
      <d2p1:Action>sample string 8</d2p1:Action>
      <d2p1:IsGroupInherited>true</d2p1:IsGroupInherited>
      <d2p1:IsInherited>true</d2p1:IsInherited>
      <d2p1:NotificationTemplateId>7</d2p1:NotificationTemplateId>
      <d2p1:Operation>sample string 4</d2p1:Operation>
      <d2p1:Scope>9</d2p1:Scope>
      <d2p1:SecurityLevelId>1</d2p1:SecurityLevelId>
      <d2p1:SendEmail>true</d2p1:SendEmail>
      <d2p1:SendPush>true</d2p1:SendPush>
      <d2p1:Type>sample string 1</d2p1:Type>
      <d2p1:UserGroupId>1</d2p1:UserGroupId>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:NotificationInfo>
    <d2p1:NotificationInfo>
      <d2p1:Action>sample string 8</d2p1:Action>
      <d2p1:IsGroupInherited>true</d2p1:IsGroupInherited>
      <d2p1:IsInherited>true</d2p1:IsInherited>
      <d2p1:NotificationTemplateId>7</d2p1:NotificationTemplateId>
      <d2p1:Operation>sample string 4</d2p1:Operation>
      <d2p1:Scope>9</d2p1:Scope>
      <d2p1:SecurityLevelId>1</d2p1:SecurityLevelId>
      <d2p1:SendEmail>true</d2p1:SendEmail>
      <d2p1:SendPush>true</d2p1:SendPush>
      <d2p1:Type>sample string 1</d2p1:Type>
      <d2p1:UserGroupId>1</d2p1:UserGroupId>
      <d2p1:UserId>1</d2p1:UserId>
    </d2p1:NotificationInfo>
  </Notifications>
  <OfficeId>14</OfficeId>
  <OfficePermissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </OfficePermissions>
  <Password>sample string 8</Password>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </Permissions>
  <Phone>sample string 9</Phone>
  <PhoneExtension>sample string 10</PhoneExtension>
  <SapInternalOrder>sample string 16</SapInternalOrder>
  <SapVendorCode>sample string 17</SapVendorCode>
  <SecurityLevelId>15</SecurityLevelId>
  <StaffNumber>sample string 3</StaffNumber>
</UserAddRequest>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'UserAddRequest'.

Response Information

Resource Description

UserAddesponse

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.