Confluence Docs 3.0 : How do I find the logged in user? This page last changed on Feb 25, 2006 by dhardiker@adaptavist.com. ### Cannot resolve external resource into attachment. How do I find the logged in user? This can be retrieved easily from the `com.atlassian.confluence.user.AuthenticatedUserThreadLocal` class which will give you the current logged in user as a `com.atlassian.user.User` object.
    User user = AuthenticatedUserThreadLocal.getUser();
Should the user not be logged in the `user` object will be null.

Document generated by Confluence on Nov 05, 2009 23:34