I created SharePoint-hosted app. When it is installed a new web is created. I would like to break role inheritance for this web and configure own groups.
I found out that I can perform these actions by JS. But my solution is ugly and I'm looking for correct way. Do you have any ideas?