GET api/Account/GetRequestorUser/{id}

Gets the details about user's account.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

(Optional) UserName or User id. If specified, the administration role is required. If not specified, the logged in user details are returned.

string

None.

Body Parameters

None.

Response Information

Resource Description

HttpStatusCode 200 OK.

GetRequestorUserResult
NameDescriptionTypeAdditional information
User

User details of the Requestor user account.

RequestorUser

None.

AccountExists

True if the Requestor user account exists.

boolean

None.

IsInApprovalProcess

True if the UserName is still in approval process.

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "User": {
    "UserProviderKey": "9ff593dc-8345-4b60-8aa6-1bbb57164f20",
    "UserName": "john.doe",
    "Email": "john.doe@domain.com",
    "FirstName": "John",
    "LastName": "Doe",
    "MiddleName": null,
    "DisplayName": null,
    "NoteBesideName": null,
    "FullName": "John Doe",
    "IsApproved": true,
    "IsEndUser": true,
    "IsSmartUser": false,
    "IsOperator": false,
    "IsSuperOperator": false,
    "IsAdministrator": false,
    "TimeZoneId": "Central Europe Standard Time",
    "ExternalAccount": false,
    "EmailAccount": false,
    "Customer": "Company Ltd.",
    "CustomerId": 1,
    "Customers": null,
    "Phones": null,
    "AdminNote": null,
    "OperatorNote": null,
    "AdditionalInformation": null,
    "SkypeName": null,
    "OperatorGroupIds": null,
    "InternalGroupIds": null,
    "Color": "#8D6CAB",
    "Initials": "JD",
    "PhotoLastUpdatedUtc": null,
    "CustomUserFieldsHash": 0,
    "FieldData": null,
    "LastUpdatedUtc": null,
    "Language": 0,
    "Anonymized": false,
    "Tags": [
      {
        "Id": 1,
        "Name": "Sample tag",
        "Static": true,
        "Color": "#ffffff",
        "Type": 2
      },
      {
        "Id": 2,
        "Name": "Sample 2",
        "Static": true,
        "Color": "#fafafa",
        "Type": 2
      }
    ],
    "ExternalId": null,
    "ManagerKey": null,
    "Company": null,
    "Department": null,
    "Division": null,
    "EmployeeId": null
  },
  "AccountExists": true,
  "IsInApprovalProcess": false
}

application/xml, text/xml

Sample:
<GetRequestorUserResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.Results">
  <AccountExists>true</AccountExists>
  <IsInApprovalProcess>false</IsInApprovalProcess>
  <User xmlns:d2p1="http://schemas.datacontract.org/2004/07/RequestorApiDataStructures.DataStructures">
    <d2p1:AdditionalInformation i:nil="true" />
    <d2p1:AdminNote i:nil="true" />
    <d2p1:Anonymized>false</d2p1:Anonymized>
    <d2p1:Color>#8D6CAB</d2p1:Color>
    <d2p1:Company i:nil="true" />
    <d2p1:CustomUserFieldsHash>0</d2p1:CustomUserFieldsHash>
    <d2p1:Customer>Company Ltd.</d2p1:Customer>
    <d2p1:CustomerId>1</d2p1:CustomerId>
    <d2p1:Customers i:nil="true" />
    <d2p1:Department i:nil="true" />
    <d2p1:DisplayName i:nil="true" />
    <d2p1:Division i:nil="true" />
    <d2p1:Email>john.doe@domain.com</d2p1:Email>
    <d2p1:EmailAccount>false</d2p1:EmailAccount>
    <d2p1:EmployeeId i:nil="true" />
    <d2p1:ExternalAccount>false</d2p1:ExternalAccount>
    <d2p1:ExternalId i:nil="true" />
    <d2p1:FieldData i:nil="true" />
    <d2p1:FirstName>John</d2p1:FirstName>
    <d2p1:FullName>John Doe</d2p1:FullName>
    <d2p1:Initials>JD</d2p1:Initials>
    <d2p1:InternalGroupIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <d2p1:IsAdministrator>false</d2p1:IsAdministrator>
    <d2p1:IsApproved>true</d2p1:IsApproved>
    <d2p1:IsEndUser>true</d2p1:IsEndUser>
    <d2p1:IsOperator>false</d2p1:IsOperator>
    <d2p1:IsSmartUser>false</d2p1:IsSmartUser>
    <d2p1:IsSuperOperator>false</d2p1:IsSuperOperator>
    <d2p1:Language>en</d2p1:Language>
    <d2p1:LastName>Doe</d2p1:LastName>
    <d2p1:LastUpdatedUtc i:nil="true" />
    <d2p1:ManagerKey i:nil="true" />
    <d2p1:MiddleName i:nil="true" />
    <d2p1:NoteBesideName i:nil="true" />
    <d2p1:OperatorGroupIds xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <d2p1:OperatorNote i:nil="true" />
    <d2p1:Phones xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" />
    <d2p1:PhotoLastUpdatedUtc i:nil="true" />
    <d2p1:SkypeName i:nil="true" />
    <d2p1:Tags>
      <d2p1:TagData>
        <d2p1:Color>#ffffff</d2p1:Color>
        <d2p1:Id>1</d2p1:Id>
        <d2p1:Name>Sample tag</d2p1:Name>
        <d2p1:Static>true</d2p1:Static>
        <d2p1:Type>UserAndCompany</d2p1:Type>
      </d2p1:TagData>
      <d2p1:TagData>
        <d2p1:Color>#fafafa</d2p1:Color>
        <d2p1:Id>2</d2p1:Id>
        <d2p1:Name>Sample 2</d2p1:Name>
        <d2p1:Static>true</d2p1:Static>
        <d2p1:Type>UserAndCompany</d2p1:Type>
      </d2p1:TagData>
    </d2p1:Tags>
    <d2p1:TimeZoneId>Central Europe Standard Time</d2p1:TimeZoneId>
    <d2p1:UserName>john.doe</d2p1:UserName>
    <d2p1:UserProviderKey>9ff593dc-8345-4b60-8aa6-1bbb57164f20</d2p1:UserProviderKey>
  </User>
</GetRequestorUserResult>