Adding orgizations through config ini

Hello guys,

I need your help. Just installed granafa. I need to add organizations but I dont wanna do this through UI. I am trying to figure out through config ini.
It looks like:

orgs:

  • id: 1
    name: first org

But this does not work for me. Any other solution through config.

Also I have one more important question. When the argocd syncs, it deletes the last changes. How can I avoid that and make the changes to be persistent ?

Grafana version: v9.2.1

Thank you in advance.

Hi @axito,

Welcome to the :grafana: community support forums !!

For the 1st part of your question i.e. Adding Org. but not via UI. For that, the best way would be to use the documentation about the HTTP API for Org.

You can also do some of that using Provisioning

For the 2nd part of your question i.e. ArgoCD sync deletes the last changes.

We would appreciate it if you can open a bug report about this in our official GitHub repository using this link.

Provide all the information (as much as you can).

Lastly, paste the link to your GitHub issue here so that all other community users can also track it.

Let us know if this helps.