Summary
This article provides a resolution for the error: Current user admin doesn't have script admin role, please contact your System Administrator.Symptoms
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
Resolution
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 http://servername:8888/palamida/
Conversely, the -scan_server flag now takes just servername:8888
3. Ensure that the -c flag provides the core server location followed by a "/". For example:
http://<CORESERVER_URL>:8888/palamida/
Note that the trailing slash is necessary.
4. Check $palamida/scriptRunner/log/scriptRunner.log for any additional stacktrace/exception.
Related Articles
How do I get a JWT token to authorize scriptRunner for FlexNet Code Insight 6.8 5Number of Views FlexNet Code Insight Scripting - Getting Started 3Number of Views FlexNet Code Insight Group Builder Script - Add-On 3Number of Views Portal admin user cannot see portal user role in the End user portal 6Number of Views Check whether the current user is admin or not through Evaluate custom rule 4Number of Views
Hi, I am Reva - Ask me anything.
No new updates
Thanks for the feedback!
Your feedback has been saved.Rate this response:
Add Additional feedback ( Optional )
Are you sure you want to cancel
the case creation?
Are you sure you want to cancel the case creation?
Are you sure you want to close this case
| Products | Region | Phone Numbers |
|---|---|---|
| FlexNet Operations FlexNet Embedded FlexNet Publisher FlexNet Connect FlexNet Code Insight InstallAnywhere InstallShield |
North America * |
+1 630-332-2513 (toll) +1 877-279-2853 (toll-free in North America) |
| Europe * |
+44 1925 944367 (toll) +44 800 047 8642 (toll-free in Europe) |
|
| Japan * | +81 3-4540-5335 (select option 2) | |
| Australia * |
+61 3 9895 2177 +61 1800 560 603 (toll-free in Australia) |
|
|
Usage Intelligence (formerly
Revulytics) Compliance Intelligence |
Please use the Case Portal to submit your support ticket or reach out to your Revenera contact. | |
Case id: 00001065
Activity: Status change: 2 hours ago