- What Grafana version and what operating system are you using?
- What are you trying to achieve?
I have enabled anonymous users with admin-level roles. I want them to be able to see my provisioned dashboard, without needing an admin to do a first-time login for a freshly instantiated Grafana instance.
The problem is I can see the dashboard without logging in, but someone has to do the initial admin login and password setting form AT LEAST ONCE for anyone to be able to see it. Then any anonymous user can see it. I feel this shouldn’t be necessary if anonymous users are already allowed and the dashboard is already created.
- How are you trying to achieve it?
Most ideally, I would’ve figured this should just work since I’ve already enabled anonymous users with admin level roles. But because this issue might be related to the organization not being instantiated, it would nice to be able to create an org provision. But that seems like a feature request that’s been asked about for a long time.
- What happened?
I have created an embedded iframe visualization from a grafana dashboard that I’m sharing on my webapp. I’ve created a provision file for my dashboard, and can confirm it’s being created and displaying correctly on a freshly instantiated grafana container. I don’t want to bother my users with creating accounts, so I’ve went ahead and enable anonymous users and given them admin level roles.
anyone can see the dashboard without logging in, but I have to login with the admin account AT LEAST ONCE for anyone to be able to see it.
This is problematic because I’m trying to spin up a stateless grafana instance from Kubernetes, and I have the whole thing automated except for this first-time admin login. To be totally clear,
unauthenticated, totally anonymous users are able to see the dashboard, but only if an admin has logged in at least once. So it doesn’t seem like a permissions issue. If anything, it seems like maybe logging in for the first time creates the org. So I think making a provision for organization might work but that’s still not a feature yet.
- What did you expect to happen?
I expected that if I started up my container, and just went to my dashboard view, it would just show and not display a 404.
Can you copy/paste the configuration(s) that you are having problems with?
Did you receive any errors in the Grafana UI or in related logs? If so, please tell us exactly what they were.
If I try to view the dashboard url, it’s a 404 + an unauthorized message
If I view the iframe of the visualization from the dashboard, it says panel not found and an unauthorized message. I’m assuming the “unauthorized” isn’t really the issue as anon users should have admin level roles.
- Did you follow any online instructions? If so, what is the URL?
I haven’t found anyone else with this exact issue, but it seems like there are other people who have encountered errors with needing to specify the dashboard’s org before it is visible.