How to automate the assignment access rights


Need an idea how to automate the assignment access rights on a new module.
For example, I installed a new module in the system and I want to make it available to all roles only for viewing.
By default, the rights on the module are not installed and must be turned on by hand.
This is normal if the roles are less than 10. But we have 41 roles…and it is a pain. :frowning:

Maybe someone did it through the API or some coding?
Thanx in advance to anyone, who’d like to share experience. :slight_smile:

We use SuiteCRM 7.10.10 + Mysql 5.7

Hi you just need to create one group of security and add your roles with the authority tu use your modules and you add users into your group of security.