Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

With what rights does RunOnStartUp execute?

David Skopalik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2025

I am trying to do automatic dependency management using Grapes. The dependencies are to be cached on Jira startup. For that purpose i have created in Scriptrunner Script Editor package called "startup" with script "RunOnStartup"

The intended behavior of the grabs works only when a user with SysAdmin rights runs them.

Using logging I have found that upon startup of Jira, the script does get executed, however, currentUser was null when i tried to retrieve it.

My questions is: With what rights does this script get executed? Is it same as SysAdmin? Or something else?

Thanks

 

Script content:

 

package startup
class RunOnStartUp {
   RunOnStartUp() {
      // do grabs here
   }
}

1 answer

0 votes
Ram Kumar Aravindakshan _Adaptavist_
Community Champion
March 31, 2025

Hi @David Skopalik

When it comes to script execution, it mainly requires a user with Jira Admin access.

If it is project specific, you could also try to set to a user with Project Admin permission.

I am looking forward to your feedback.

Thank you and Kind regards,
Ram

David Skopalik
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 31, 2025

This script is executed automatically on instance startup.

When executed manually, it requires a SysAdmin user to launch it, lower admin accounts are insufficient for the Grabs to work.

My question is not what rights does a user need to execute the script, my question is with what rights does the script run, as it does not get executed by any user explicitly. It gets executed by the system when starting.

Thanks,

David

Suggest an answer

Log in or Sign up to answer