You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I have a setup with multiple teams and projects which contribute toward a mobile release train on a 3 week cadence.
The Version Synchroniser Listener does exactly what I need in terms of Version syncing but unfortunately requires users to have admin in all projects.
I'm looking for a way to grant permissions to allow this to work without giving full admin across all the projects that need to sync. Is there a way to modify this listener so it runs as an admin user regardless of the permissions of the user who created the version?
You could plausibly set up a REST endpoint which everyone has access to that calls the Version Synchronizer listener. With that said, this is no trivial task and you need to be careful with admin impersonation of scripts as this could possibly create a security leak.
Due to ScriptRunner's advanced capabilities, as a rule of thumb, I would do my best to keep all its functionalities to the way they were designed, that is for administrators only.