WhoAmI

Returns detailed information about the user account that is currently using an access token. If the access token is not valid, the request will return information about the Guest account.

Syntax

Copy
POST <<i>host_address</i>>/api/openApi/WhoAmI

Content-Type: application/json
            
token=<<i>access_token</i>>    
 
Parameter Description
host_address URL of the FintechOS platform server.
access_token Access token used to connect to the API endpoint. For details, see GetToken.

Response

Copy
{
    "NumberOfResults": 0,
    "TotalNumber": 0,
    "RequestedSkip": 0,
    "RequestedTake": 0,
    "Records": [
        {
            "picture": "[{\"Name\":\"mypicture.png\",\"RealName\":\"mypicture_17ca7108-5997-403f-8d0e-d677e80916dc.png\",\"IsSuccess\":true,\"Message\":null,\"ClientScript\":null,\"Serialized\":null,\"ErrorCode\":0,\"UIResult\":null}]",
            "systemUserTypeId": "f0481274-2b9f-4b14-b83b-c6cca4cb7c92",
            "isGuest": null,
            "externalId": 1,
            "systemuserid": "c175bfe5-eafd-422f-a57f-7d85e806c38b",
            "userName": "jdoe",
            "confirmPassword": null,
            "phoneNumber": null,
            "isAuthorized": true,
            "isAdministrator": true,
            "portalId": null,
            "externalSystemUserId": null,
            "businessUnitId": "a3d2909b-df67-49d6-b7e0-2dc912c12484",
            "email": "p2@fintechos.com",
            "password": null,
            "displayName": "Administrator",
            "primaryattributedisplayname": "jdoe",
            "aLookup1_name": "Back Office",
            "systemUserTypeId_displayname": "Back Office",
            "aLookup2_name": null,
            "portalId_displayname": null,
            "aLookup3_name": null,
            "externalSystemUserId_displayname": null,
            "aLookup4_name": "root",
            "businessUnitId_displayname": "root"
        }
    ],
    "Message": null,
    "IsSuccess": true,
    "ClientScript": null,
    "Serialized": null,
    "ErrorCode": 0,
    "UIResult": null
}
 
Key Description
picture If a profile picture was uploaded for the user account, this field indicates the filename and the real filename (internal unique name) of that picture.
systemUserTypeId Unique internal ID for the user type, such as back office, guest, Portal, or other custom types.
isGuest
  • true - this is the Guest user account
  • null - this is not the Guest user account
externalId Legacy feature
systemuserid Unique internal identifier for the user account.
userName Name used to log into the user account.
confirmPassword null - this attribute is populated only temporarily during password setup/reset
phoneNumber User's phone number
isAuthorized
  • true - user account is active
  • false - user account is disabled
isAdministrator
  • true - user account has full administrative privileges to the platform (admin user)
  • false - user account doesn't have administrative privileges
portalId Unique internal identifier of the assigned portal for portal system user types.
externalSystemUserId Legacy feature
businessUnitId Unique internal identifier of the business unit to which the user belongs.
email User account's email address.
password null - this attribute is populated only temporarily during password setup/reset
displayName User name, as it is displayed in the user interface. This value may differ from the actual user name.
primaryattributedisplayname Legacy feature
aLookup1_name User type, such as back office, guest, Portal, or other custom types.
systemUserTypeId_displayname User type, as it is displayed in the user interface. This value may differ from the actual user type name.
aLookup2_name Portal name (for portal type users only).
portalId_displayname Portal name, as it is displayed in the user interface (for portal type users only). This value may differ from the actual portal name.
aLookup3_name Legacy feature
externalSystemUserId_displayname Legacy feature
aLookup4_name Business unit to which the user belongs.
businessUnitId_displayname Business unit to which the user belongs, as it is displayed in the user interface. This value may differ from the actual business unit name.

Examples

Errors

Error 404 - Not Found