---
title: "WT AmoCRM library — Helper - WebTolk websites development, Joomla Extensions"
description: "Reference for the WT AmoCRM UserHelper: methods for linking Joomla users with AmoCRM contacts through the synchronization table."
url: "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-helper"
date: "2026-06-19T04:33:09+00:00"
language: "en-GB"
---

# WT AmoCRM library — Helper

WT Amo CRM library - Documentation

**Category:** [Libraries](https://web-tolk.ru/en/dev/biblioteki)

[Project](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library)[Versions](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/versions)[Documentation](https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation)[GitHub](https://github.com/WebTolk/WT-Amo-CRM-library-for-Joomla-4)

Reference for the WT AmoCRM UserHelper used to link Joomla users with AmoCRM contacts.

## WT AmoCRM library - Helper

### UserHelper

`Webtolk\Amocrm\Helper\UserHelper`

A helper for synchronizing Joomla users with AmoCRM contacts. It uses the `#__lib_wt_amocrm_users_sync` table.

#### Methods

- `checkIsAmoCRMUser(int $joomla_user_id): bool|int`
- Returns the AmoCRM contact ID linked to the Joomla user.
- `checkIsJoomlaUser(int $amocrm_user_id): bool|int`
- Returns the Joomla user ID linked to the AmoCRM contact.
- `addJoomlaAmoCRMUserSync(int $joomla_user_id, int $amocrm_contact_id, bool $is_temporary_user = false): bool`
- Creates a new synchronization link.
- `updateJoomlaAmoCRMUserSync(int $joomla_user_id, int $amocrm_contact_id, bool $is_temporary_user = false): bool`
- Updates an existing synchronization link by Joomla user ID.
- `removeJoomlaAmoCRMUserSync(array $joomla_user_ids = [], array $amocrm_user_ids = []): bool`
- Removes synchronization links by a list of Joomla IDs **or** a list of AmoCRM IDs.
- If both lists are passed at the same time, the method does not remove anything and writes an error to the log.

#### Example

```
use Webtolk\Amocrm\Helper\UserHelper;

// Link a Joomla user to an AmoCRM contact.
UserHelper::addJoomlaAmoCRMUserSync(42, 123456);

// Check the link.
$contactId = UserHelper::checkIsAmoCRMUser(42);

// Remove links by Joomla user IDs.
UserHelper::removeJoomlaAmoCRMUserSync([42, 43]);
```

## JSON-LD Schema

```json
{
    "@context": "https://schema.org",
    "@type": "BreadcrumbList",
    "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17",
    "itemListElement": [
        {
            "@type": "ListItem",
            "position": 1,
            "item": {
                "@id": "https://web-tolk.ru/en",
                "name": "Home"
            }
        },
        {
            "@type": "ListItem",
            "position": 2,
            "item": {
                "@id": "https://web-tolk.ru/en/dev",
                "name": "Joomla extensions"
            }
        },
        {
            "@type": "ListItem",
            "position": 3,
            "item": {
                "@id": "/en/dev/biblioteki",
                "name": "Libraries"
            }
        },
        {
            "@type": "ListItem",
            "position": 4,
            "item": {
                "@id": "/en/dev/biblioteki/wt-amo-crm-library",
                "name": "WT Amo CRM library"
            }
        },
        {
            "@type": "ListItem",
            "position": 5,
            "item": {
                "@id": "/en/dev/biblioteki/wt-amo-crm-library/documentation",
                "name": "Documentation"
            }
        },
        {
            "@type": "ListItem",
            "position": 6,
            "item": {
                "name": "WT AmoCRM library — Helper"
            }
        }
    ]
}
```

```json
{
    "@context": "https://schema.org",
    "@graph": [
        {
            "@type": "Organization",
            "@id": "https://web-tolk.ru/#/schema/Organization/base",
            "name": "WebTolk",
            "url": "https://web-tolk.ru/",
            "logo": {
                "@type": "ImageObject",
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo",
                "url": "images/webtolk-1080p.jpg",
                "contentUrl": "images/webtolk-1080p.jpg",
                "width": 1920,
                "height": 1080
            },
            "image": {
                "@id": "https://web-tolk.ru/#/schema/ImageObject/logo"
            },
            "sameAs": [
                "https://github.com/WebTolk",
                "https://github.com/sergeytolkachyov",
                "https://vk.com/web_tolk",
                "https://vk.com/webtolkru",
                "https://tenchat.ru/sergeytolkachyov",
                "https://t.me/sergeytolkachyov",
                "https://t.me/webtolkru"
            ]
        },
        {
            "@type": "WebSite",
            "@id": "https://web-tolk.ru/#/schema/WebSite/base",
            "url": "https://web-tolk.ru/",
            "name": "WebTolk websites development, Joomla Extensions",
            "publisher": {
                "@id": "https://web-tolk.ru/#/schema/Organization/base"
            }
        },
        {
            "@type": "WebPage",
            "@id": "https://web-tolk.ru/#/schema/WebPage/base",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-helper",
            "name": "WT AmoCRM library — Helper - WebTolk websites development, Joomla Extensions",
            "description": "Reference for the WT AmoCRM UserHelper: methods for linking Joomla users with AmoCRM contacts through the synchronization table.",
            "isPartOf": {
                "@id": "https://web-tolk.ru/#/schema/WebSite/base"
            },
            "about": {
                "@id": "https://web-tolk.ru/#/schema/TechArticle/base"
            },
            "inLanguage": "en-GB",
            "breadcrumb": {
                "@id": "https://web-tolk.ru/#/schema/BreadcrumbList/17"
            }
        },
        {
            "@type": "TechArticle",
            "headline": "WT AmoCRM library — Helper",
            "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-helper",
            "description": "Reference for the WT AmoCRM UserHelper used to link Joomla users with AmoCRM contacts.",
            "mainEntityOfPage": {
                "@type": "WebPage",
                "url": "https://web-tolk.ru/en/dev/biblioteki/wt-amo-crm-library/documentation/wt-amocrm-library-helper"
            },
            "keywords": [
                "joomla",
                " amocrm",
                " UserHelper",
                " user sync",
                " contacts",
                " webtolk"
            ]
        }
    ]
}
```
