global $USER; $userId = $USER->GetID();
$userEmail = CUser::GetEmail($userId);
$userData = CUser::GetByID($userId)->Fetch();This code retrieves the user data associated with the given ID using the GetByID() static method of the CUser class, and then fetches the data using the Fetch() method. The CUser class is part of the Bitrix CMS framework, which is a proprietary PHP-based content management system. The class is included in the framework's core library, which provides a wide range of classes and functions for developing web applications.