I am trying to find a way to modify the org id in Grafana. For example, I would like to change the Org ID from 6 to 1.
Hi @lihtian285,
Welcome to the community support forums !!
This is not possible because when you install Grafana, there is already an Org. (Main Org) created for admin (Server admin) with id=1
Hey, Is it possible to change Org ID in grafana?
If I create a “test” org and lets say grafana gives its Org ID as 2. If I delete it and again create it, then it gives a new Org ID 3 by using a counter.
If some Org is deleted, then grafana never provides that Org ID to any other future Org that are being created.
I wanted to know how to change Org ID? If this is not possible, what is the possible reason grafana does not allows to use those Org IDs?
I guess: security
it looks like this ID is provided by a relational database as auto increment.
But the issue is many Grafana settings such as datasources, dashboards depends on orgID and thats something not deterministic. We could say its random. Even grafana will not work if there are some datasources related to not existent organizations.
So it would be nice at least to have this configuration based on organization name.Since its something we can be assertive it will match. Another option would be to have one ID for database control and another one for user management.