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"
                   i18n-name-key="sample.globalpermission.name"
                   i18n-description-key="sample.globalpermission.description"
                   ** default-grants="all" **
                   anonymous-allowed="true"/>

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