View access can still click button

  • What Grafana version and what operating system are you using?
    Grafana v9.0.2, Ubuntu 20.04.4 LTS

  • What are you trying to achieve?
    Restrict anonymous access to view access only on certain dashboards.

  • How are you trying to achieve it?
    Adjust permissions so that Anonymous can only view certain dashboards. View role has been given to the necessary folder and Dashboard(s), and removed from those that do not need it.
    Because I have to give the View role access to the parent folder, all sub-Dashboards inherit that access, including some with button panels. These buttons still work with View only access causing the background code to run.

  • What happened?
    As above. View users can still action the code associated to buttons.

  • What did you expect to happen?

  • 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.

  • Did you follow any online instructions? If so, what is the URL?

For more detail, it is this button panel I’m using:

I realise that the easiest way could be adjusting where the dashboards are housed, but I want to make sure I’m not missing something, or doing something stupid.


Just bumping this in case someone can help.