// include the Bitrix framework require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); // get an instance of the CUser class $user = new CUser; // retrieve a list of all users $userList = $user->GetList(); // iterate over the results and print out each user's information while ($user = $userList->Fetch()) { echo "User ID: ".$user["ID"]."This code example uses the `GetList()` method to retrieve a list of all users in the system and then iterates over the results to print out each user's information. The code is written for the Bitrix Framework and makes use of the `$_SERVER` superglobal to include the framework.
"; echo "Username: ".$user["LOGIN"]."
"; echo "Email: ".$user["EMAIL"]."
"; echo "
"; }