Hello,
If you have s full source code of Kentico
CMS you can take a look at the implementation of the CMSContext class.
The CurrentUserInfo class inherits from an UserInfo object that represent one record of CMS_User table. The API related to user's management can be found here:
Managing users.The same API is used also to get the CurrentUserInfo - the
UserInfoProvider.GetUserInfo method.
Best regards,
Michal Legen