findCompaniesByName
This method searches for all managed companies containing the specified string in their name.
Parameters
Parameter | Type | Optional | Description |
|---|---|---|---|
| String | No | The string to be searched in the company name. Use the asterisk symbol ( |
| Integer | Yes | Determines the maximum number of entries returned by the request. Possible values: Default value: |
Return value
This method returns an Array containing company objects whose names contain the given search criteria. The maximum size of the returned array is based on the maxResults parameter. Each entry in the array has the following structure:
type(Integer) - the company type:0for Partner,1for Customername(String) - the name of the companyid(String) - the ID of the companyaddress(String) - the address of the companyphone(String) - the phone of the companycanBeManagedByAbove(Boolean) - the security management status for the company:true, if the security can be managed by parent companiesenforce2FA(Boolean) - specifies if the Two Factor Authentication (2FA) is enforced for user accounts belonging to the selected companyskip2FAPeriod(Integer) - specifies the duration, in days, that the users can be exempted from providing a two-factor authentication code at loginisSuspended(Boolean) - company account status:true, if the company is suspendedcreatedAt(String) - the UTC date and time at which the company was createdcountry(String) - the country code in ISO 3166 format. If the code is not specified, the String has the valueN/Astate(String) - the country state code in ISO 3166 format. If the code is not specified, the String has the valueN/Aindustry(Integer) - the industry the company operates in. It can have one of the following values:0- UNDEFINED1- AEROSPACE101- AEROSPACE_MANUFACTURING102- AEROSPACE_TECHNOLOGY_RESEARCH2- AGRICULTURE201- AGRICULTURE_CHEMICALS_FERTILIZERS202- AGRICULTURE_CROP_AND_ANIMAL_PRODUCTION203- AGRICULTURE_FARM_MACHINERY204- AGRICULTURE_FARMING205- AGRICULTURE_FISHING206- AGRICULTURE_FORESTRY207- AGRICULTURE_HUNTING208- AGRICULTURE_PRODUCTS3- ARTS_ENTERTAINMENT301- ARTS_ENTERTAINMENT_CULTURAL_ACTIVITIES302- ARTS_ENTERTAINMENT_GAMBLING4- AUTOMOTIVE401- AUTOMOTIVE_AUTO_TRUCK_MOTORCYCLE_PARTS402- AUTOMOTIVE_MACHINERY403- AUTOMOTIVE_MANUFACTURERS404- AUTOMOTIVE_MARKETING5- BUSINESS_ASSOCIATIONS6- CHEMICALS7- COMMERCIAL_SERVICES701- COMMERCIAL_SERVICES_VETERINARY8- CONGLOMERATE9- CONSTRUCTION901- CONSTRUCTION_CIVIL_ENGINEERING902- CONSTRUCTION_CONSTRUCTION_OF_BUILDINGS903- CONSTRUCTION_CONTRACTORS904- CONSTRUCTION_ENGINEERING905- CONSTRUCTION_MATERIALS906- CONSTRUCTION_SPECIALISED907- CONSTRUCTION_UTILITY_SYSTEMS10- CONSULTING11- CONTAINERS_PACKAGING12- DEFENSE1201- DEFENSE_SHIPBUILDING_AIRCRAFT1202- DEFENSE_SPACE1203- DEFENSE_WEAPONS13- EDUCATION_RESEARCH1301- EDUCATION_RESEARCH_SCIENTIFIC_RESEARCH_AND_DEVELOPMENT14- ENERGY1401- ENERGY_EQUIPMENT_TECHNOLOGIES1402- ENERGY_INFRASTRUCTURE1403- ENERGY_OIL_GAS_CONSUMABLE_FUELS1404- ENERGY_RENEWABLE_ENERGY15- ENGINEERING16- FINANCIAL_SERVICES1601- FINANCIAL_SERVICES_BANKS1602- FINANCIAL_SERVICES_DIVERSIFIED1603- FINANCIAL_SERVICES_INSURANCE1604- FINANCIAL_SERVICES_INVESTMENT1605- FINANCIAL_SERVICES_REAL_ESTATE17- FOOD_BEVERAGES18- GOVERNMENT1801- GOVERNMENT_LOCAL1802- GOVERNMENT_NATIONAL1803- GOVERNMENT_PRIVATE_CONTRACTORS1804- GOVERNMENT_PUBLIC_ADMINISTRATION_AND_DEFENSE1805- GOVERNMENT_PUBLIC_SERVICES1806- GOVERNMENT_REGIONAL19- HEALTHCARE1901- HEALTHCARE_EQUIPMENT_SERVICES1902- HEALTHCARE_PHARMACEUTICALS_BIOTECHNOLOGY_LIFE_SCIENCES1903- HEALTHCARE_RESEARCH20- HOSPITALITY_LEISURE2001- HOSPITALITY_LEISURE_HOTEL_MOTELS_CRUISE_LINES2002- HOSPITALITY_LEISURE_LEISURE_RECREATION2003- HOSPITALITY_LEISURE_RESTAURANT_BARS21- MANUFACTURING2101- MANUFACTURING_BASIC_METALS2102- MANUFACTURING_BEVERAGES2103- MANUFACTURING_CHEMICALS_PRODUCTS2104- MANUFACTURING_ELECTRICAL_EQUIPMENT2105- MANUFACTURING_ELECTRONICS2106- MANUFACTURING_FABRICATED_METAL_PRODUCTS2107- MANUFACTURING_FOOD_PRODUCTS2108- MANUFACTURING_FURNITURE2109- MANUFACTURING_MACHINERY_EQUIPMENT2110- MANUFACTURING_MOTOR_VEHICLES2111- MANUFACTURING_NON_METALLIC_MINERAL_PRODUCTS2112- MANUFACTURING_PAPER_PRODUCTS2113- MANUFACTURING_PETROLEUM_PRODUCTS2114- MANUFACTURING_PHARMACEUTICAL_PRODUCTS2115- MANUFACTURING_TEXTILES2116- MANUFACTURING_TOBACCO2117- MANUFACTURING_TRANSPORT2118- MANUFACTURING_WEARING_APPAREL2119- MANUFACTURING_WOOD22- MARINE23- MEDIA2301- MEDIA_ADVERTISING_MARKETING2302- MEDIA_BROADCASTING2303- MEDIA_ENTERTAINMENT2304- MEDIA_PUBLISHING24- MINING2401- MINING_COAL_AND_LIGNITE2402- MINING_METAL_ORES2403- MINING_PETROLEUM_AND_NATURAL_GAS2404- MINING_PRECIOUS_METALS2405- MINING_QUARRYING2406- MINING_SERVICES25- NON_PROFIT26- OFFICES_OF_LAWYERS27- PAPER_FOREST_PRODUCTS28- RETAIL2801- RETAIL_BEVERAGES2802- RETAIL_BOOKS_AND_NEWS2803- RETAIL_BUILDING_MATERIALS2804- RETAIL_CLOTHING_STORES2805- RETAIL_DISTRIBUTORS2806- RETAIL_ELECTRONIC_SHOPPING2807- RETAIL_ELECTRONICS2808- RETAIL_GASOLINE_STATIONS2809- RETAIL_HOME_FURNISHING2810- RETAIL_LUXURY_STORES2811- RETAIL_MULTILINE_RETAIL2812- RETAIL_PERSONAL_CARE_STORES2813- RETAIL_SPECIALTY_FOOD_STORES2814- RETAIL_SUPERMARKETS2815- RETAIL_SUPPLIES_STORES2816- RETAIL_VEHICLES29- SUPPORT_SERVICE_ACTIVITIES2901- SUPPORT_SERVICE_ACTIVITIES_BUSINESS_SUPPORT2902- SUPPORT_SERVICE_ACTIVITIES_EMPLOYMENT2903- SUPPORT_SERVICE_ACTIVITIES_MAINTENANCE_SERVICES2904- SUPPORT_SERVICE_ACTIVITIES_RENTAL_AND_LEASING2905- SUPPORT_SERVICE_ACTIVITIES_SECURITY_AND_INVESTIGATION2906- SUPPORT_SERVICE_ACTIVITIES_SOCIAL_ASSISTANCE2907- SUPPORT_SERVICE_ACTIVITIES_TRAVEL_AGENCY30- TECHNOLOGY3001- TECHNOLOGY_ARTIFICIAL_INTELLIGENCE3002- TECHNOLOGY_ELECTRONIC_EQUIPMENT_COMPONENTS3003- TECHNOLOGY_HARDWARE3004- TECHNOLOGY_IT_SERVICES3005- TECHNOLOGY_SECURITY3006- TECHNOLOGY_SEMICONDUCTORS_SEMICONDUCTOR_EQUIPMENT3007- TECHNOLOGY_SOFTWARE31- TELECOMMUNICATIONS_SERVICES3101- TELECOMMUNICATIONS_SERVICES_COMMUNICATIONS_INFRASTRUCTURE3102- TELECOMMUNICATIONS_SERVICES_INTEGRATED_TELECOMMUNICATIONS3103- TELECOMMUNICATIONS_SERVICES_WIRELESS_TELECOMMUNICATIONS32- TRANSPORTATION3201- TRANSPORTATION_AIR_TRANSPORTATION3202- TRANSPORTATION_DEEP_SEA_COASTAL_AND_GREAT_LAKES_WATER_TRANSPORTATION3203- TRANSPORTATION_GENERAL_FREIGHT_TRUCKING3204- TRANSPORTATION_INFRASTRUCTURE3205- TRANSPORTATION_INLAND_WATER_TRANSPORTATION3206- TRANSPORTATION_PIPELINE_TRANSPORTATION3207- TRANSPORTATION_POSTAL_AND_COURIER3208- TRANSPORTATION_RAIL_TRANSPORTATION3209- TRANSPORTATION_ROAD_TRANSPORTATION3210- TRANSPORTATION_SIGHTSEEING3211- TRANSPORTATION_URBAN_TRANSIT_SYSTEMS3212- TRANSPORTATION_WATER_TRANSPORTATION33- UTILITIES3301- UTILITIES_ELECTRICITY_GAS3302- UTILITIES_WATER_SUPPLY34- WHOLESALE3401- WHOLESALE_APPAREL3402- WHOLESALE_BEVERAGES3403- WHOLESALE_BUILDING_MATERIALS3404- WHOLESALE_CHEMICALS3405- WHOLESALE_DRUGS3406- WHOLESALE_ELECTRONIC_MARKETS3407- WHOLESALE_ELECTRONICS3408- WHOLESALE_FARM_PRODUCTS3409- WHOLESALE_GROCERY3410- WHOLESALE_HOME_FURNISHING3411- WHOLESALE_METAL_AND_MINERAL3412- WHOLESALE_NONDURABLE_GOODS3413- WHOLESALE_PETROLEUM3414- WHOLESALE_SUPPLIES3415- WHOLESALE_VEHICLES
contactPerson(Object) - the details of the contact person:fullName(String) - their first name and surnameemail(String) - their business email addressphoneNumber(String) - their business phone numbercompanyRole(String) - their position in the company
Note
This attribute is present only when the company has a contact person configured.
customFields(Object) - the custom field values for the company:custom field name 1, custom field value 1,custom field name 2, custom field value 2
Note
This attribute is present only when the company has at least one custom field configured.
mdrContactInformation(Object) - the details of the contact person for MDR:fullName(String) - the first name and surname of the contact person for MDRemail(String) - the business email address of the contact person for MDRphoneNumber(String) - the business phone number of the contact person for MDR
Important
MDR contact details are returned exclusively for companies enrolled in MDR or with a valid annual MDR license.
duplicateClosedIncidentsOnUpdate(Boolean) - when set to:true: Updates found on a closed incident trigger the creation of a new incident.false: If updates are detected on a closed incident, the incident is reopened.
Example
Request:
{
"params": {
"nameFilter": "Test",
"maxResults": 100
},
"jsonrpc": "2.0",
"method": "findCompaniesByName",
"id": "ae037403-7947-4f2b-b0b2-af190a8b44eb"
} Response:
{
"id": "ae037403-7947-4f2b-b0b2-af190a8b44eb",
"jsonrpc": "2.0",
"result": [{
"type": 1,
"name": "Test customer",
"id": "55191c7ab1a43d1f107b23c7",
"address": "Str Example No 1",
"phone": "0040740000001",
"canBeManagedByAbove": true,
"enforce2FA": true,
"skip2FAPeriod": 1,
"isSuspended": false,
"createdAt": "2017-01-28T15:01:15",
"country": "CA",
"state": "CA-BC",
"industry": 2,
"contactPerson": {
"fullName": "Stephen Jhonson",
"email": "stephen.jhonsons@example.email.com",
"phoneNumber": "0040740000001",
"companyRole": "Owner / President"
},
"duplicateClosedIncidentsOnUpdate": true
},
{
"type": 0,
"name": "Test partner",
"id": "55191c5fb1a43da8107b23c6",
"address": "Str Example No 2",
"phone": "0040740000002",
"canBeManagedByAbove": true,
"enforce2FA": false,
"isSuspended": false,
"createdAt": "2017-01-28T15:01:15",
"country": "CA",
"state": "CA-BC",
"industry": 2,
"contactPerson": {
"fullName": "Stephen Jhonson",
"email": "stephen.jhonsons@example.email.com",
"phoneNumber": "0040740000001",
"companyRole": "Owner / President"
},
"customFields":{
"referenceID": "004562",
"vertical": "healthcare",
"partner_type": "platinum",
"security_level": "high",
"payment_status": "goodstanding"
},
"duplicateClosedIncidentsOnUpdate": true
}]
}