Using the API it should be pretty simple.
- Get a list of all your form
- Loop through that list.
- Set permissions.
Look at the following page in Kentico code to see how they use the API to set permissions.
CMS/CMSModules/BizForms/Tools/BizForm_Edit_Security.aspx.cs