cstanislawski / grafana-db-exporter

Export your ClickOps'ed Grafana dashboards into the repository
Apache License 2.0
1 stars 0 forks source link

Add support for Grafana Org ID #43

Closed cstanislawski closed 1 month ago

cstanislawski commented 1 month ago

fixes: https://github.com/cstanislawski/grafana-db-exporter/issues/41

cstanislawski commented 1 month ago

it is not possible to achieve this on a code level - Grafana manages access to organizations via service accounts

service account can only have access to a single org, from the docs:

Service accounts can only act in the organization they are created for. If you have the same task that is needed for multiple organizations, we recommend creating service accounts in each organization.

Service accounts can’t be used for instance-wide operations, such as global user management and organization management. For these tasks, you need to use a user with [Grafana server administrator permissions](https://grafana.com/docs/grafana/latest/administration/roles-and-permissions/).

link: https://grafana.com/docs/grafana/latest/administration/service-accounts/

I'll add appropriate info to the readme and the related issue