GET api/User/Get?userName={userName}

Get a user info based on user name.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
userName

User login name

string

Required

Body Parameters

None.

Response Information

Resource Description

Get a user info based on user name.

API_Data_TLoginInfo
NameDescriptionTypeAdditional information
Success

boolean

None.

Error

ErrorInfo

None.

Data

TLoginInfo

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Error": {
    "ErrorCode": 1,
    "ErrorMessage": "sample string 1"
  },
  "Data": {
    "PersonID": 1,
    "LoginName": "sample string 2",
    "FName": "sample string 3",
    "LName": "sample string 4",
    "IsActive": true,
    "IsAdministrator": true,
    "Address": "sample string 7",
    "EmailAddress": "sample string 8",
    "MobilePhone": "sample string 9",
    "HomePhone": "sample string 10",
    "Phone": "sample string 11",
    "FaxNumber": "sample string 12",
    "ExtUserCode": "sample string 13",
    "FID": "sample string 14",
    "Password": "sample string 15"
  }
}

application/xml, text/xml

Sample:
<API_Data_TLoginInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.Common">
  <Data xmlns:d2p1="http://schemas.datacontract.org/2004/07/TechExcel.DTKService.Model.SystemManage">
    <d2p1:Address>sample string 7</d2p1:Address>
    <d2p1:EmailAddress>sample string 8</d2p1:EmailAddress>
    <d2p1:ExtUserCode>sample string 13</d2p1:ExtUserCode>
    <d2p1:FID>sample string 14</d2p1:FID>
    <d2p1:FName>sample string 3</d2p1:FName>
    <d2p1:FaxNumber>sample string 12</d2p1:FaxNumber>
    <d2p1:HomePhone>sample string 10</d2p1:HomePhone>
    <d2p1:IsActive>true</d2p1:IsActive>
    <d2p1:IsAdministrator>true</d2p1:IsAdministrator>
    <d2p1:LName>sample string 4</d2p1:LName>
    <d2p1:LoginName>sample string 2</d2p1:LoginName>
    <d2p1:MobilePhone>sample string 9</d2p1:MobilePhone>
    <d2p1:Password>sample string 15</d2p1:Password>
    <d2p1:PersonID>1</d2p1:PersonID>
    <d2p1:Phone>sample string 11</d2p1:Phone>
  </Data>
  <Error>
    <ErrorCode>1</ErrorCode>
    <ErrorMessage>sample string 1</ErrorMessage>
  </Error>
  <Success>true</Success>
</API_Data_TLoginInfo>