Sometimes administrators need to temporarily 'log in as' a particular user, in order to debug some problem. There is the SU for Jira/Confluence plugin for this, and the Switch to a different user built-in script in the ScriptRunner plugin.
Just drop it into the right directory:
For JIRA 8.x and above
For JIRA 7.x and earlier
cd /opt/atlassian/jira/$version/atlassian-jira/secure/admin/ curl -LOJ 'https://bitbucket.org/!api/2.0/snippets/redradish/Re98Xk/90e18149194202d4149540a2324829abd34fef24/files/switchuser.jsp' chown root:jira switchuser.jsp
These JSPs work with Okta (unlike ScriptRunner - see SRPLAT-192), and will also pacify websudo initially, so you are not prompted for the user's password when doing certain admin operations.