T
T
TechNOIR2019-07-03 18:50:48
1C-Bitrix
TechNOIR, 2019-07-03 18:50:48

1C-Bitrix. How to get the user by login?

Hello.
How to get a user by login in Bitrix?
I am trying to use this method on a test page https://dev.1c-bitrix.ru/api_help/main/reference/c... + examples from it. But the answer is emptiness.
What needs to be connected first to receive data?
I would like to simply receive data without connecting the prologue, etc., since only data will be needed from this page, without an interface.
thanks in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
serginhold, 2019-07-03
@serginhold

I would like to just receive data without connecting the prologue, etc., since only data will be needed from this page, without an interface

if anything, the kernel is loaded in the prologue, so if you don’t have a prologue, it’s not that there will be a void, but there should be a fatal error with an excellent inscription that the class was not found,
in short, the prologue is required
require_once $_SERVER['DOCUMENT_ROOT'] . '/bitrix/modules/main/include/prolog_before.php';

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question