The User class (see here) (not to be confused with the SystemUser) seems to be obsolete based on the documentation as the documentation link is not working anymore and in the overview no replacement could be found.
The history shows the code was last changed six years ago.