Switch User

The Switch User function allows administrator users to temporarily assume the identity of another user. You can switch user using the built-in script below, or you can switch user within Jira. The switch user function is enabled by default. However, you may wish to disable this feature as described on the Switch User Function page.

To switch back to your original user, click the Return to session as [your name] link in the Switch User banner, or log out and in again.

  1. Navigate to Built-in Scripts > Switch to a Different User.

  2. Under User, type the name of the target user.

  3. Click Preview to see if the user switch is valid.

    You cannot switch to a user with a higher permission level than your own.

  4. If valid, click Run.

Results

After you select Run, you are taken to Jira home and see it as that user would.

Example of how switch user built in script works

This is what the audit log entry would look like: 

Image of switch user audit log

To prevent the impersonation of system administrator users by other system administrators enable the following dark feature:

scriptrunner.canned.jira.admin.switchuser.denyimpersonatesysadmin

Click here for more information on dark features.

On this page