GET api/accounts/validate
Retrieves the profile associated with the currently authenticated user.
Request Information
URI Parameters
None.
Body Parameters
None.
Response Information
Resource Description
A representation of the account profile.
ProfileName | Description | Type | Additional information |
---|---|---|---|
UserId |
The user's API ID |
string |
None. |
AvailableBusinessUnits |
A list of the business units available to the user |
Collection of BusinessUnitDetail |
None. |
Response Formats
application/json, text/json
Sample:
{ "UserId": "sample string 1", "AvailableBusinessUnits": [ { "BusinessUnitId": 1, "BusinessUnitName": "sample string 2", "BusinessUnitDisplay": "sample string 3" }, { "BusinessUnitId": 1, "BusinessUnitName": "sample string 2", "BusinessUnitDisplay": "sample string 3" } ] }
application/xml, text/xml
Sample:
<Profile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <UserId>sample string 1</UserId> <AvailableBusinessUnits> <BusinessUnitDetail> <BusinessUnitId>1</BusinessUnitId> <BusinessUnitName>sample string 2</BusinessUnitName> <BusinessUnitDisplay>sample string 3</BusinessUnitDisplay> </BusinessUnitDetail> <BusinessUnitDetail> <BusinessUnitId>1</BusinessUnitId> <BusinessUnitName>sample string 2</BusinessUnitName> <BusinessUnitDisplay>sample string 3</BusinessUnitDisplay> </BusinessUnitDetail> </AvailableBusinessUnits> </Profile>