Owners with same emails (different remotes) in Owners API


#1

Hello!

We stumbled on something strange in one of the integrations. Looks like the portal can have several owners with the same email as long as they have different remotes.

Usually, we've seen 1 owner that has a list of remotes (e.g. HUBSPOT, SALESFORCE) E.g.:
{
"portalId"=>3075783,
"ownerId"=>32251606,
"type"=>"PERSON",
"firstName"=>"***",
"lastName"=>"***",
"email"=>"***",
"createdAt"=>1527086571385,
"updatedAt"=>1534238858720,
"remoteList"=> [
{"id"=>27809151, "portalId"=>3075783, "ownerId"=>32251606, "remoteId"=>"5894110", "remoteType"=>"HUBSPOT", "active"=>true},
{"id"=>27934394, "portalId"=>3075783, "ownerId"=>32251606, "remoteId"=>"***", "remoteType"=>"SALESFORCE", "active"=>true}
],
"hasContactsAccess"=>false
}

In this case we get 2 distinct owner which it seems should have been joined as the one above.. but they are sperate:
{
"portalId" => 3075783,
"ownerId" => 32251612,
"type" => "PERSON",
"firstName" => "***",
"lastName" => "***",
"email" => "***",
"createdAt" => 1527086572018,
"updatedAt" => 1527088112243,
"remoteList" => [{ "id" => 27809157, "portalId" => 3075783, "ownerId" => 32251612, "remoteId" => "5894106", "remoteType" => "HUBSPOT", "active" => true }],
"hasContactsAccess" => false
},
{
"portalId" => 3075783,
"ownerId" => 32537345,
"type" => "PERSON",
"firstName" => "***",
"lastName" => "***",
"email" => "***",
"createdAt" => 1528295637093,
"updatedAt" => 1528295637093,
"remoteList" => [{ "id" => 27934382, "portalId" => 3075783, "ownerId" => 32537345, "remoteId" => "***", "remoteType" => "SALESFORCE", "active" => true }]
}

Is there any explanation why the latter happens?

thanks,
Anton


#4

Hi @Anton_Litvinenko,

This seems to happen when a HubSpot owner isn't mapped to a corresponding Salesforce owner on the Salesforce owner mappings page.

In this case, HubSpot can detect a Salesforce owner with the same email as the HubSpot owner 32251612, but the two aren't connected in settings.