Custom User field not getting read from compat.py during ApiAuthentication

Issue #1009