boolean public static \Bitrix\Crm\Integration\IntranetManager::isExternalUser( integer $userID );
Method checks, if user is a Extranet user. Static method.