Dynamic permissions using admin plugin

As per admin plugin doc we manage roles and permissions in one file but i want to save permission in database because my roles and permissions are not fixed it's dynamic from system user can add new role and it's permission.

How can i handle it? Guide me for this
Was this page helpful?