Anonymous access works in v8 but doesn't in v9

  • What Grafana version and what operating system are you using?
    v9.5.2

  • What are you trying to achieve?
    Enable unauthorized access for my dashboard

  • How are you trying to achieve it?
    Setting up the following fields in grafana.ini

#################################### Users ###############################
[users]
# disable user signup / registration
allow_sign_up = false

# Allow non admin users to create organizations
allow_org_create = true


[auth]
# Set to true to disable (hide) the login form, useful if you use OAuth, defaults to false
disable_login_form = true

#################################### Anonymous Auth ######################
[auth.anonymous]
# enable anonymous access
enabled = true

# specify organization name that should be used for unauthenticated users
org_name = Main Org.

# specify role for unauthenticated users
org_role = Admin

# mask the Grafana version number for unauthenticated users
hide_version = true

#################################### Basic Auth ##########################
[auth.basic]
enabled = false
  • What happened?
    When opening a dashboard I get “Unautorized” message.

  • What did you expect to happen?
    Dashboard loads.

The anonymous access works if I simply change grafana version from v9 to latest v8

@dodinroman I noticed the unauthorized message with Anonymous access enabled when I was logged in and restarted Grafana 9.5.X.

Usually, I log in and log out to clear my cookies and refresh.

omg, thanks @mikhailvolkov this was exactly it!

1 Like