P
P
photosho2019-10-09 17:37:03
1C-Bitrix
photosho, 2019-10-09 17:37:03

Is it possible to get information about the current user using BX?

Is it possible to somehow get information about the current user from the BX object?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eugene, 2019-10-09
@photosho

BX.message('USER_ID');
Returns the user ID as a string, if not authorized then an empty string
Nothing prevents you from pushing data from PHP into JS using the built-in method

let something = <?=CUtil::PhpToJSObject($someArray)?>;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question