When restoring site template from source to target environment the custom permission doesn't copy. According to Microsoft article, this is how it behaves.
Is there any other OOB way(no code or script) to copy a site from one environment to another with custom permission?