Hi I'm wondering how to make a plugin that would change the logged in user. Say you're an admin, and you select a user in a list, and you want to be connected as this user. I didn't find how to do this, and i tried a filter creating a custom HttpServletRequestWrapper implelementation, but my getRemoteUSer is never called.
Any idea ?
Community moderators have prevented the ability to post new answers.
I agree with Nick in statement "you better do not do it". But if you really need you can try to play with jiraAuthenticationContext.setLoggedInUser.
Thanks @Volodymyr Krupach , That was the good way to do it. I already tried that but not in the right place. Now it works fine thanks !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Generally there's no particularly good reason to do this - I've not run into any strong case where impersonating a user in order to debug a problem is better than understanding the root cause of the problem.
However, there are a few add-ons that will let you do it. I am aware of two (but I think there are more) - the SU add-on does nothing more than letting an admin re-login as a user, and the Script Runner has the same function amongst loads of others.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Perhaps you may want to try SU for JIRA? Sounds like this will give you the functionality you're after.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, no doubt, but it's not free, and I want full control on the plugin providing this functionality, given its sensitive nature.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.