User Block USER

The USER block displays the user's card within the attachment: name, avatar, and a link for navigation.

User Block

Block Parameters

Name
type

Description

NAME*
string

The name displayed in the block

AVATAR
string

Avatar URL. Absolute URLs (http://, https://) and relative paths from the root of Bitrix are allowed

LINK
string

URL for navigation when clicking on the block. It is preferable to use USER_ID, CHAT_ID, BOT_ID for navigation within the messenger

USER_ID
integer

Link to the Bitrix user

CHAT_ID
integer

Link to the Bitrix chat

BOT_ID
integer

Link to the Bitrix chatbot

NETWORK_ID
string

Link to the Bitrix24 Network user

AVATAR_TYPE
string

Type of avatar display. Allowed values: USER, CHAT, BOT

Example

How to Use Examples in Documentation

{
            USER: {
                NAME: 'John Smith',
                AVATAR: 'https://files.shelenkov.com/bitrix/images/avatar.png',
                LINK: 'https://shelenkov.com'
            }
        }
        
[
            'USER' => [
                'NAME' => 'John Smith',
                'AVATAR' => 'https://files.shelenkov.com/bitrix/images/avatar.png',
                'LINK' => 'https://shelenkov.com'
            ]
        ]
        

Continue Learning