How to set automatic viewer role without challenge

WAS THIS PAGE HELPFUL? Leave Feedback

Overview

This How To explains the setup for an automatic viewer role without a challenge, so users will not be prompted for Grafana credentials. In the defaults.ini file the role "Viewer" can be assigned to an Anonymous login.

Steps
  1. To set the viewer role to automatically login, at the command line enter:
  2. cd /usr/local/groundwork/grafana/conf

    then edit the defaults.ini file:

    vi defaults.ini
  3. Scroll to the Anonymous Auth section.
  4. Change the following line to your organization name, e.g., ABC versus Main Org:
    # specify organization name that should be used for unauthenticated users
    org_name = Main Org.

    Example:

    # specify organization name that should be used for unauthenticated users
    org_name = ABC
  5. Change the following line to Viewer:
    # Valid values are Viewer, Editor, Admin
    org_role = Editor

    Example:

    # Valid values are Viewer, Editor, Admin
    org_role = Viewer
  6. Save the file.
  7. Restart Grafana service:
    /etc/init.d/groundwork restart grafana
  8. To match the Organization name to the configuration file setting, go to Dashboards > Grafana > Settings (cog) > Preferences. For additional documentation see Grafana Labs.
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.