Starting with v4.5.5 Power Scripts™ has the ability to let Jira administrators quickly switch to another user. The Switch User feature allows administrators to switch to any user without knowing their password. Sometimes it’s just easier to understand a users problem if you can experience it first hand. This feature allows you to switch user sessions with any user in order to use the tool with the tool as if the user had logged in themselves. This is useful for troubleshooting permissions issues or assisting the user in setting up personal settings, all without asking for the user's credentials or involving the user in other ways.
Who can use the Switch User feature?
Only Jira administrators are able to use this feature to switch to another user.
Which users can be impersonated?
Any user who IS NOT a Jira administrator can be impersonated with this feature. A Jira administrator CAN NOT impersonate another Jira administrator and become an admin user who may have higher permissions than themselves.
Switching to Another User
- You can access this feature anywhere inside Jira or Confluence by opening the Profile menu in the upper right corner and selecting Switch User
- Or, navigate to the Administration > Add-ons > Switch User page.
- Once on the Switch User User Page, enter the name of the user who you would like to switch to and press Switch
When the Jira administrator has finished their investigation and would like to return to their own account they may do so by clicking Switch Back to Admin from the Profile menu.
Disabling or Enabling the Switch User Feature
- In order to disable/enable the Switch User feature, navigate to the Administration > Add-ons > Switch User page
- Click the Configure link
- Then check/uncheck the Enable setting to enable/disable the feature
Disabling completely the Switch User Feature from Jira
In order to disable this feature for good you would need to follow a few simple steps:
- Create a "traceflags.properties" file somewhere on your local.
- Define on the first line of the file the key=value pair "disable.impersonate.user=1" which will set the feature to be disabled.
- Set the Java properties on Jira startup with "-Dtraceflags.resource=file:filepath" where the filepath is the absolute path to the properties file created above.
To Configure System Properties in Linux/Windows Installations,
<jira-install>/bin, open setenv.sh(for Linux)/setenv.bat(for Windows).
- Find the section JVM_SUPPORT_RECOMMENDED_ARGS=
- Add the "-Dtraceflags.resource=file:filepath" parameter in the space-separted list
In order for the changes to take effect you would need to restart you Jira instance. For more information on how to configure System Properties you can check this link.