POST v2/LocalUsers

User roles allowed to make this request: DomainAdministrator

Permissions required to make this request: User.Write User.Read

Creates a new user.

Request Information

URI Parameters

None.

Body Parameters

LocalUserRequestModel
NameDescriptionTypeAdditional information
Password

The initial password for the user. They will have to change it when they first log in.

string

None.

Name

Name of user

string

None.

FirstName

First name of user

string

None.

LastName

Last name of user

string

None.

Email

Email of the user

string

None.

UserRole

Role of the user

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Password": "sample string 1",
  "Name": "sample string 2",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "Email": "sample string 5",
  "UserRole": "sample string 6"
}

application/xml, text/xml

Sample:
<LocalUserRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models">
  <Email>sample string 5</Email>
  <FirstName>sample string 3</FirstName>
  <LastName>sample string 4</LastName>
  <UserRole>sample string 6</UserRole>
  <Name>sample string 2</Name>
  <Password>sample string 1</Password>
</LocalUserRequestModel>

application/x-www-form-urlencoded

Sample:
Password=sample&Name=sample&FirstName=sample&LastName=sample&Email=sample&UserRole=sample

multipart/form-data

Sample:

Sample not available.

Response Information

Resource Description

Response Message

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "sample string 1",
  "Name": "sample string 2",
  "LastLogonDate": "2024-05-20T13:41:15.0286761+00:00",
  "FirstName": "sample string 3",
  "LastName": "sample string 4",
  "Email": "sample string 5",
  "UserRole": "sample string 6"
}

application/xml, text/xml

Sample:
<LocalUserResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NipoSoftware.Nfield.Manager.Api.Models">
  <Email>sample string 5</Email>
  <FirstName>sample string 3</FirstName>
  <LastName>sample string 4</LastName>
  <UserRole>sample string 6</UserRole>
  <Id>sample string 1</Id>
  <LastLogonDate>2024-05-20T13:41:15.0286761+00:00</LastLogonDate>
  <Name>sample string 2</Name>
</LocalUserResponseModel>