Default grants in custom global permissions for Jira Server

Would it be possible to have default grants , so that all groups get access by default ?

I figured out the default-grants is mentioned in the Jira Cloud Documentation, but couldn’t figure if there is support for Server.

<global-permission key="sample.jira.globalpermission"
                   ** default-grants="all" **

Hi @ajay,

Take a look here: Custom Global Permissions for Addon

They might have the answer, or you can try to example code posted by @daniel