'How to add role globally in Hasura?

Does anyone know how to add a new role globally in Hasura?

e.g. an editor role

Someone had set this up on a project I worked on in the past, and I'm curious how to do it.

I need it so any time I add a new table, for the editor role to be automatically show up in the Permissions tab.

Currently I have to go in and add it every time for each new table.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source