Hi, there is no specific API to do this, but you can modify pageInstance.page.permissions and save the resulting object (DispatcherLogic.savePage).
In Portofino 5 those would be actionInstance.actionDescriptor instead of pageInstance.page and ActionLogic instead of DispatcherLogic.