General - Get a ProMark user

API Url

Used for loading a single ProMark users identified via {id} parameter.

GET
http://localhost:16010/ProMarkREST/rest/General/users/{id}

Permissions: user

Request headers

FieldTypeDescription
Accept-LanguageoptionalString

=en-GB Language use for localization.

X-ClientoptionalString

=Client type.

Allowed values:"Portal""Mobile""Admin"
X-RoleoptionalNumber

ProMark role (1: Employee, 2: User).

Allowed values:{12}
X-WebPart-IdoptionalNumber

Unique web-part identifier.

Path parameters

FieldTypeDescription
idString

The unique User ID.

Query parameters

FieldTypeDescription
includeInactiveoptionalBoolean

TRUE if you want to include also inactive Users (default is FALSE).

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    usersObject[]

Collection of users.

      firstNameString

User's first name.

      idString

User ID (unique identifier).

      isAdministratorBoolean

TRUE if the user is a ProMark administrator.

      isInactiveBoolean

TRUE if the user is disabled.

      isLockedBoolean

TRUE if the user account is locked. It might be because of multiple login attempts.

      isPasswordExpiredBoolean

TRUE if the account password has expired and need to be changed.

      lastLoginDate

The last login time expressed as date-time ISO strig.

      surnameString

User's surname.

  messageoptionalObject

Object containing response messages.

    codeNumber

Message code.

    textString

Message text.

    typeString

Type of message.

Allowed values:"warning""info"

Success example:

HTTP/1.1 200 OK
{
"response": {
"data": {
"users": [
{
"id": "MFA",
"firstName": "Mircea",
"surname": "Alexandru",
"isAdministrator": true,
"lastLogin": "2018-09-04T08:30:00",
"isLocked": false,
"isPasswordExpired": false,
"isInactive": false
}
]
},
"errorCode": 0,
"errorMessage": ""
}
}

Error 4xx

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data (empty).

  errorCodeNumber

Error code.

  errorMessageString

Error description.