GET api/User

Get the logged-in user details

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

User
NameDescriptionTypeAdditional information
Code

string

None.

Name

string

None.

Profile

string

None.

WOMHRealTime

The work order information of the real time man-hour record

MHRealTime

None.

Access

The user access to the API areas

UserAccess

None.

Permissions

Collection of string

None.

Response Formats

Sample:
{
  "Code": "001",
  "Name": "John",
  "Access": {
    "Web": false,
    "MaintenanceRequest": true,
    "StoreRequest": false,
    "PurchaseRequest": false
  }
}
Sample:
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models">
  <Access>
    <MaintenanceRequest>true</MaintenanceRequest>
    <PurchaseRequest>false</PurchaseRequest>
    <StoreRequest>false</StoreRequest>
    <Web>false</Web>
  </Access>
  <Code>001</Code>
  <Name>John</Name>
  <Permissions xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
  <Profile i:nil="true" />
  <WOMHRealTime i:nil="true" />
</User>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Code"

001
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Name"

John
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Access.Web"

False
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Access.MaintenanceRequest"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Access.StoreRequest"

False
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="Access.PurchaseRequest"

False
--MultipartDataMediaFormatterBoundary1q2w3e--