Creating User with password on grafana initialization

Hi, Can we create a new read only user with some auth-token/password during grafana initilization from some config file value ?

1 Like

Surprised no one has answered this yet. From what I can tell so far, there is not way to do this for a regular users besides the API (rest call scripts). You can set the admin password via config on containers but provisioning users like you do dashboards isn’t possible yet. I am currently looking for the best way to run an init script to setup users and groups when a new container is deployed. This will get a little more complicated because, I am expecting to also move the database off of sql lite so that I can run multiple Grafana containers and keep the state in its own separate container. Have you figured out your problem already?

1 Like