getUser

Get the basic details about the user (impersonation, locale, current domain...)

Syntax

messageHandler.getUser().then(function(state){//do something});
  
  // or
  
let status=await messageHandler.getUser();

The User object

  1. brandHost: The domain of the partner site the user came from (app.vcita.com)
  2. businessUid: The unique identifier of the user's business
  3. staffUid: The unique identifier of the user
  4. impersonate: A boolean indicating this user uses impersonation to access. (for example, a support rep helping the business owner)
  5. language: the user locale
{
  "brandHost": "home",
  "businessUid": "widget",
  "staffUid": "dfsfas12312",
  "impersonate": true,
  "language": "en-US"
}