[auth.github] Pre-defined admins from organization's team


I’m deploying Grafana with Ansible in VMs with github oauth, and I’m looking for a way to set up admins without using the web interface nor asking them to login first.

The main idea here is to be able to create a new VM, then install Grafana and be sure that relevant people will be granted the admin rights by default, from the initial setup.

I saw two options, the first is to edit the Grafana’s DB and the second to use curl to access the Grafana’s API. Before trying that, I just want to know if there is a simpler way to do it, i.e. within the configuration ini files.

Thanks in advance,