FlexNet Code Insight ScriptRunner returns "Current user admin doesn't have script admin role" error
SummaryThis article provides a resolution for the error: Current user admin doesn't have script admin role, please contact your System Administrator.
While running a scriptRunner script in FlexNet Code Insight 6.8 or later with a user with script admin role, you receive the following error:
Current user admin doesn't have script admin role, please contact your Palamida System Administrator
Try the following steps:
1. Try deleting the $USER/.palamida/config/scriptRunner/scriptRunner.properties file to get rid of cached scriptRunner credentials.
NOTE: The location of this file will depend on whether or not you are running scriptRunner from the server or client machines.
Then make sure that you are able to open the Groovy console using only the scriptRunner username:
./scriptRunner.sh -u admin
And enter the JWT token for admin when prompted.
If you can get to the groovy console, you?ve authenticated, and you know scriptRunner itself is not the problem.
2. Ensure that any URLs passed to scriptRunner are formatted correctly. For example:
-server flag no longer takes just hostname, but full URL like
-scan_server flag now takes just
3. Ensure that the -c flag provides the core server location followed by a "/". For example:
Note that the trailing slash is necessary.
$palamida/scriptRunner/log/scriptRunner.log for any additional stacktrace/exception.