I read about the identity-tp CLI commands to set permissions. Is it possible to do the same with JavaScript code? Like create policy, roles and send a transaction to identity-tp using JavaScript?
My use case is to set a permissioned network to store sensitive data. Only the users registered with the app will get permission to do the transaction.