diff --git a/cherrypy/lib/filter/sessionauthenticatefilter.py b/cherrypy/lib/filter/sessionauthenticatefilter.py
index <HASH>..<HASH> 100644
--- a/cherrypy/lib/filter/sessionauthenticatefilter.py
+++ b/cherrypy/lib/filter/sessionauthenticatefilter.py
@@ -98,3 +98,4 @@ class SessionAuthenticateFilter(BaseFilter):
         if loadUserByUsername:
             username = cherrypy.session[sessionKey]
             cherrypy.request.user = loadUserByUsername(username)
+            cherrypy.threadData.user = loadUserByUsername(username)
Stick logged-in user in cherrypy.threadData