General - Get ProMark users

API Url

Used for loading ProMark users

GET
http://localhost:16010/ProMarkREST/rest/General/users

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.

Query parameters

FieldTypeDescription
filteroptionalString

JSON containing filter fields, their values and conditions.

includeInactiveoptionalBoolean

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

skipoptionalNumber

Number of records to skip. Used for pagination.

sortByoptionalString

String with fields to sort on (descending,ascending)

takeoptionalNumber

Number of records to get. Used for pagination.

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.

      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.