<p>We have configured Grafana <code>user</code> and <code>admin</code> roles using <code>Grafana.ini</code> which works great.</p>
<p>Now we want to provide some permission to user  to
see <strong>specific dashboards</strong>, e.g. user X can see 5 dashboard and user Y can see 8 dashboards according to some configurations (permissions).</p>
<p>We were able to keep this config in Grafana UI but if the pod (K8S) is fail the details is deleted,  we are using latest <a href="https://github.com/grafana/helm-charts" rel="nofollow noreferrer">prom helm</a> .</p>
<p>My question is how should we
store this data right, even if the pod is restarted?</p>
<p><a href="https://grafana.com/docs/grafana/latest/permissions/dashboard-folder-permissions/" rel="nofollow noreferrer">https://grafana.com/docs/grafana/latest/permissions/dashboard-folder-permissions/</a></p>
<p><a href="https://github.com/grafana/helm-charts" rel="nofollow noreferrer">https://github.com/grafana/helm-charts</a></p>
<p><a href="https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L253" rel="nofollow noreferrer">https://github.com/grafana/helm-charts/blob/main/charts/grafana/values.yaml#L253</a></p>
<p>Any solution/direction will be helpful as I believe that grafana store this data someware but not sure where ...</p>
<p>I found this link which is talking about the store of the users on database etc
<a href="https://grafana.com/docs/grafana/latest/administration/configuration/#database" rel="nofollow noreferrer">https://grafana.com/docs/grafana/latest/administration/configuration/#database</a></p>
<p>Not sure what is missing as the data should be kept in k8s volume...
If there is any other solution or a way to solve it please let me know.</p>

<p>You need to deploy your Grafana instance with a persistent storage. Either:</p>
<ul>
<li>Keep using the built-in sqlite db - just ensure to use <a href="https://kubernetes.io/docs/concepts/storage/persistent-volumes/" rel="nofollow noreferrer">PVC</a> to store it's data. The default path can be set using this <a href="https://grafana.com/docs/grafana/latest/administration/configuration/#data" rel="nofollow noreferrer">config property</a></li>
<li>Use external db, like SQL, and configure Grafana to talk with it. See the <a href="https://grafana.com/docs/grafana/latest/administration/configuration/#database" rel="nofollow noreferrer">database</a> config section for more details.</li>
</ul>
<p>Grafana persistency will be used to persist other settings as well, and also persist dashboards, alerts etc.
All settings can be set via the <code>grafana.ini</code> helm chart variable</p>
