sharepoint online – How to give permissions to all workflow subsites created from a site template?

I have a site with a workflow, which requires permissions to perform certain actions. I put the required permissions using _layouts / 15 / appinv.aspx and save this site as a template. However, and I create another site based on this template, I still need to give the workflow permissions manually again.

Someone already knows how to create this new site with the necessary permissions on the workflow? I do not want to put this permission every time I create a site.