General - Get user information

API Url

Used for loading user informations, like name and e-mail, for the current loged-in user.

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

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.

Success 200

FieldTypeDescription
responseObject

Main object containing the response data.

  dataObject

Object containing the requested data.

    avatarURIoptionalString

URI for loading employee avatar. If no picture exists, this will be skipped.

    cultureoptionalString

User culture.

    emailoptionalString

User's e-mail.

    empIdoptionalString

User's employee id.

    empNooptionalString

User's employee number.

    fullNameString

User's full name.

    initialsoptionalString

User's initials.

    mobilePhoneoptionalString

User's mobile phone number.

    portalUserIdNumber

Portal user id

    rolesObject[]

Collection of allowed ProMark roles.

      descriptionString

Role description.

      HostRetransferAccessoptionalString

Access to host retransfering functonality

      idNumber[1-2]

Role identifier (1: Employee, 2: User).

      isAdministratoroptionalBoolean

true = User has Administrator privileges.

      productionDisplayIdoptionalString

Production Display ID linked to the display user.

      terminalIdoptionalString

Terminal ID linked to the terminal user.

  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": {
"empNo": "MFA",
"empId": "4321",
"fullName": "Mircea Alexandru",
"email": "mfa@mark-info.com",
"initials": "MFA",
"culture": "da-dk"
"roles": [
{
"id": 1,
"description": "Employee"
},
{
"id": 2,
"description": "User",
"isAdministrator": false,
}
],
"avatarURI": "data:image/jpg;base64,..."
},
"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.