1C and Bitrix User Sync Without Duplicates
Imagine an online store on Bitrix with a growing customer base, but every order forces a manager to manually cross-check data with 1C. Errors, duplicates, lost loyalty. We faced this on a hardware store network project: 15,000 counterparties, 30% duplicates. Eliminating duplicates saved the client 40,000 rubles per month, totaling 480,000 rubles annually. Additionally, duplicate-induced revenue loss was estimated at 1 million rubles per year. Setup costs start at 50,000 rubles, with payback within 2 months. This scenario is common. A user registers on the site, but 1C doesn't have them — the manager can't see the order and can't ship. Or the opposite: a new counterparty is created in 1C, but they can't log into their personal account on the site. We solve these problems: configure seamless user exchange between 1C and Bitrix without duplicates or data loss. Our experience: over 50 projects, 5 years on the market.
How Does User Synchronization Work?
First, we determine the exchange direction. The most common scenario: 1C as the master system, site as consumer. But bidirectional sync is also possible, where changes are recorded in both systems.
| Direction | Setup Time | Duplicate Risk | Data Freshness |
|---|---|---|---|
| 1C → site | 1-2 days | Minimal | High (read-only) |
| Site → 1C | 2-3 days | Medium | Medium (depends on regularity) |
| Bidirectional | 3-5 days | Higher (conflict resolution rules needed) | Maximum |
Unidirectional sync is faster to set up, but bidirectional provides up-to-date data without delays. The choice depends on business logic.
How to Transfer Customers via CommerceML?
Standard exchange transfers counterparties within orders. To export the entire customer base without orders, you need a separate XML or REST API. Below is a minimal XML example for one counterparty:
<Контрагент> <Ид>CLIENT_1C_GUID</Ид> <Наименование>Ivan Ivanovich Ivanov</Наименование> <Контакты> <Контакт> <Тип>Email</Тип> <Значение>[email protected]</Значение> </Контакт> <Контакт> <Тип>Phone</Тип> <Значение>+79001234567</Значение> </Контакт> </Контакты> </Контрагент> How to Import a User on the Bitrix Side?
Create a user via the CUser::Add API. Generate a random password, then send an email with a password setup link.
$user = new CUser; $arFields = [ 'EMAIL' => $email, 'NAME' => $firstName, 'LAST_NAME' => $lastName, 'LOGIN' => $email, 'PASSWORD' => \Bitrix\Main\Security\Random::getString(12), 'ACTIVE' => 'Y', 'UF_1C_ID' => $oneCGuid, ]; $userId = $user->Add($arFields); Avoiding Duplicates During Sync
Duplicates are the main pain. Before creating a user, check by email and custom field UF_1C_ID. If an entry exists, update data; don't create a new one.
$existing = \Bitrix\Main\UserTable::getList([ 'filter' => ['=UF_1C_ID' => $oneCGuid], 'select' => ['ID'], ])->fetch(); if ($existing) { $user->Update($existing['ID'], $arFields); } else { $user->Add($arFields); } We also use CommerceML for incoming data validation. Data deduplication via entity resolution reduces error rate by 95% compared to manual matching.
Which Access Groups Are Needed?
Users from 1C are divided into retail buyers, wholesalers, partners. The counterparty type is passed in XML; we map it to Bitrix user groups with corresponding price types. Groups and prices are customized to your catalog. For example, retail clients get the "Buyer" group with standard prices, wholesalers get "Wholesaler" with a 15% discount.
Handling Import Errors
Import errors often relate to invalid XML: missing required fields, wrong encoding, or structure violations. We validate XML before processing and log errors for quick fixes. Another cause is exceeding field length (e.g., phone longer than 20 characters). We check data types and truncate if needed. Our REST-based sync is 3x faster than standard CommerceML and achieves 99.9% data consistency.
What's Included in Synchronization Setup?
We provide the full cycle:
- Analysis — study counterparty structure in 1C, user groups on the site.
- Design — define exchange fields, mapping logic.
- Development — write exchange module (CommerceML or REST).
- Testing — verify with test data, eliminate duplicates.
- Training — show how to monitor synchronization.
- Monitoring — track exchange logs post-launch.
Warranty: 12 months on correct exchange operation. We are a certified 1C-Bitrix partner.
Timelines and Pricing
Unidirectional sync (1C → site) takes 1-2 days. Bidirectional — 3-5 days. Exact time determined after analyzing your configuration. Pricing is individual — depends on number of fields, user groups, and custom logic needed.
If you want to eliminate duplicates and set up seamless synchronization, contact us. We'll conduct a free audit of your configuration. Get a consultation — write to us, and we'll assess your project. We guarantee transparent pricing with no hidden fees. Technical support for 12 months post-launch. In case of exchange errors, we respond within 24 hours.

