Viewer have access to Dashboard Settings

  • What Grafana version and what operating system are you using?
    8.5.11 on Docker

  • What are you trying to achieve?
    Users with role Viewer have the dashboard settings button. Our users can make changes to the dashboards but can’t save them, they can extract the dashboard JSON and deploy it to Grafava.
    The button is no longer available, but if a user add the query string editview=settings to the dashboard URL it as access to it

  • How are you trying to achieve it?
    Using the button “Settings” on the top right of the dashboard

  • What happened?
    the button was available on version 8.4.11

  • What did you expect to happen?
    Probably a configuration that I’m missing or it was a change

  • Can you copy/paste the configuration(s) that you are having problems with?
    { “name”: “GF_SERVER_HTTP_PORT”, “value”: “80” },
    { “name”: “GF_SERVER_DOMAIN”, “value”: “dashboards.XXXXX.net” },
    { “name”: “GF_SERVER_ROOT_URL”, “value”: “https://dashboards.XXXXXX.net” },
    { “name”: “GF_SERVER_ROUTER_LOGGING”, “value”: “true” },

      { "name": "GF_DATABASE_TYPE", "value": "mysql" },
      { "name": "GF_DATABASE_HOST", "value": "rds_host:3306" },
      { "name": "GF_DATABASE_NAME", "value": "rds_db" },
      { "name": "GF_DATABASE_USER", "value": "rds_user" },
    
      { "name": "GF_USERS_ALLOW_SIGN_UP", "value": "false" },
      { "name": "GF_USERS_ALLOW_ORG_CREATE", "value": "false" },
      { "name": "GF_USERS_AUTO_ASSIGN_ORG", "value": "true" },
      { "name": "GF_USERS_DEFAUT_THEME", "value": "dark" },
      { "name": "GF_USERS_VIEWERS_CAN_EDIT", "value": "true" },
    
      { "name": "GF_AUTH_DISABLE_LOGIN_FORM", "value": "true" },
      
      { "name": "GF_AUTH_ANONYMOUS_ENABLED", "value": "true" },
      { "name": "GF_AUTH_ANONYMOUS_ORG_NAME", "value": "XXXXX" },
      { "name": "GF_AUTH_ANONYMOUS_ORG_ROLE", "value": "Viewer" },
    
      { "name": "GF_AUTH_GENERIC_OAUTH_ENABLED", "value": "true" },
      { "name": "GF_AUTH_GENERIC_OAUTH_NAME", "value": "XXXX Authentication" },
      { "name": "GF_AUTH_GENERIC_OAUTH_ALLOW_SIGN_UP", "value": "true" },
      { "name": "GF_AUTH_GENERIC_OAUTH_CLIENT_ID", "value": "XXXXX" },
      { "name": "GF_AUTH_GENERIC_OAUTH_CLIENT_SECRET", "value": "XXXXXXX" },
      { "name": "GF_AUTH_GENERIC_OAUTH_SCOPES", "value": "email" },
      { "name": "GF_AUTH_GENERIC_OAUTH_AUTH_URL", "value": "https://XXXX/oauth2/auth" },
      { "name": "GF_AUTH_GENERIC_OAUTH_TOKEN_URL", "value": "https://XXXX/oauth2/token" },
      { "name": "GF_AUTH_GENERIC_OAUTH_API_URL", "value": "https://XXXX/userinfo" },
    
      { "name": "GF_UNIFIED_ALERTING_ENABLED", "value": "false" },
      { "name": "GF_ALERTING_ENABLED", "value": "true" },
    
      { "name": "GF_METRICS_INTERVAL_SECONDS", "value": "20" },
    
      { "name": "GF_INSTALL_PLUGINS", "value": "grafana-clock-panel,grafana-piechart-panel,cloudflare-app,briangann-gauge-panel,jdbranham-diagram-panel,mtanda-histogram-panel,grafana-image-renderer,agenty-flowcharting-panel,grafana-polystat-panel,grafana-opensearch-datasource" },
    
      { "name": "GF_RENDERING_SERVER_URL", "value": "https://XXXXXX/render" },
      { "name": "GF_RENDERING_CALLBACK", "value": "https://dashboards.XXXXX.net/" }
    
  • 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?