GET api/Account/GetRequestorUser/{id}
Gets the details about user's account.
Request Information
URI Parameters
Name | Description | Type | Additional 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.
GetRequestorUserResultName | Description | Type | Additional 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": "8eb01b5e-8eea-4b87-a742-55df656d2f86", "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, "AdditionalInformation": 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, "SecondaryEmails": [ "john.doe@mymail.com" ] }, "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: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:Phones xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays" i:nil="true" /> <d2p1:PhotoLastUpdatedUtc i:nil="true" /> <d2p1:SecondaryEmails xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:string>john.doe@mymail.com</d3p1:string> </d2p1:SecondaryEmails> <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>8eb01b5e-8eea-4b87-a742-55df656d2f86</d2p1:UserProviderKey> </User> </GetRequestorUserResult>