Dear All,
I want to get the information of user who is currently logging in Confluence 4.3 from my plugin. As I have tried to search, the RemoteUser API is proper for this problem. But when I tried to use this api, the problem occurs. Also, I tried to find out the document of the API usage, but I cannot find.So my question is:
- Does RemoteUser API is the proper api in order to get informaiton of currently login user in Confluence? if not, I hope you could point out the way to solve this poblem. If yes, I hope you could tell me how to use this API.
Thanks in advance,
Hi !
this should work:
HttpServletRequest request = ServletActionContext.getRequest(); String remoteUserName = request.getRemoteUser(); or: this.remoteUser = AuthenticatedUserThreadLocal.getUser();
cheers
I tried the these two ways. They all work properly! Thanks you so much, Thomas.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
have your tried to use :
AuthenticatedUserThreadLocal.getUser()
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.