Grafana Guide: Users, Teams and Folder Permissions

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Checked on 2026-11-11 against Grafana 13.3.x.

What you build

You create a user guide-viewer and a team guide-team, add the user to the team, and give the team the View permission on the folder Guides. You then sign in as the new user in a private window to see that it reaches the dashboard Bookshelf (guides) but cannot edit it. Finally you create a service account with a token and use the token against the Grafana HTTP API.

The dashboard Bookshelf (guides) seen by guide-viewer: the panel Requests per second by status is shown and the toolbar offers the time range, Refresh and Share but no Edit button

Before you start

  • Start the Grafana profile of the hands-on lab and wait about a minute:

    cd lab
    docker compose --profile grafana up -d
  • Open http://localhost:3000, sign in as admin with the password admin, and click Skip when Grafana 13.3 asks you to update the default password. admin is a Grafana administrator and an organization administrator, which creating users, teams and service accounts requires.

  • Do the earlier guides that create the folder Guides and the dashboard Bookshelf (guides): First steps in Grafana and Create a dashboard and the first panel. The previous guide is Silence, schedule and review alerts.

  • The lab runs without single sign-on, so a user created in the interface can sign in with a password. Choose a password of your own for the new user and remember it for step 19.

  • The guide was checked on Grafana Enterprise 13.3.0 (the free image, no licence key); the permission features used here are available without a licence.

  • The figures are drawings of the Grafana 13.3 user interface, not screenshots, so small details can differ from your screen. A highlighted box with a number marks the control of the step with the same number. The user page, the team page, the folder permissions dialog and the service account forms were not read in the lab, so those steps name the controls by their function and the figures do not draw them.

Steps

The guide works on three areas of the navigation: Administration → Users and access (Users, Teams and Service accounts), the folder page of Guides under Dashboards, and a private browser window for the check.

Create a user

  1. In the left navigation, click Administration, then Users and access, then Users.

  2. Click New user.

    Users page of Grafana 13.3 with the Administration group of the navigation open: callout 1 marks Users under Users and access, and callout 2 marks the New user button; the group also lists Teams and Service accounts
  3. In Name, type Guide Viewer.

  4. In Email, type guide.viewer@example.com.

  5. In Username, type guide-viewer.

  6. In Password, type a password of your own.

  7. Click Create user.

    New user form: the field Name holds Guide Viewer (callout 3), Email holds guide.viewer@example.com (callout 4), Username holds guide-viewer (callout 5), Password holds dots (callout 6) and the Create user button is marked by callout 7
  8. On the page of the new user, change the role of the user in the organization to No basic role, so that it sees only what is granted to it. Without this change a user with the Viewer role can see every folder, and the check at the end would not show the effect of the team permission.

Create a team

  1. In Administration → Users and access → Teams, click the button that creates a new team. The form is titled New team.

  2. In Name, type guide-team.

  3. Leave Auto-create a team folder switched off. The option creates a folder owned by the team; this guide grants access to the existing folder Guides instead.

  4. Click Create.

    New team form: the field Name holds guide-team (callout 10), the Team folder option Auto-create a team folder is switched off (callout 11) and the Create button is marked by callout 12
  5. On the page of the new team, add the user guide-viewer as a member.

Give the team access to the folder

  1. Open Dashboards, click the folder Guides and click Folder actions.

    Folder page Guides with the tabs Dashboards, Panels and Alert rules and the dashboard Bookshelf (guides) listed; the Folder actions button at the top right is marked by callout 14
  2. Choose the entry that opens the permissions of the folder. The entries of this menu were not read in the lab; look for the one named after permissions.

  3. Add a permission for the team: choose Team, select guide-team, choose the permission View and save it.

Check as the new user

  1. Keep your own session as admin and open a private (incognito) window of your browser at http://localhost:3000.

  2. In Email or username, type guide-viewer.

  3. In Password, type the password you chose in step 6.

  4. Click Log in.

    Sign-in page of Grafana 13.3 in a private window: the field Email or username holds guide-viewer (callout 18), the field Password holds dots (callout 19) and the Log in button is marked by callout 20
  5. In the left navigation, click Dashboards.

  6. In the list, click the folder Guides. The folder bookshelf of the lab is not listed, because the user has no permission on it.

    Dashboards page of Grafana 13.3 signed in as guide-viewer: callout 21 marks Dashboards in the navigation, and callout 22 marks the folder Guides in the list, which has no folder bookshelf
  7. Open the dashboard Bookshelf (guides). It shows its panel, and the toolbar has no Edit button: the permission View allows reading, not changing.

Create a service account and a token

  1. Back in your own window as admin, open Administration → Users and access → Service accounts.

  2. Click Add service account.

    Service accounts page with the filters All, With expired tokens and Disabled and the empty state You have not created any service accounts yet; the Add service account button is marked by callout 25
  3. In the form, type guide-sa as the display name and choose the role Viewer.

  4. Create the service account.

  5. On its page, add a service account token with the button that generates a new token, and confirm.

  6. Copy the token when it is shown: Grafana shows it only once.

  7. Use the token against the HTTP API, replacing <token> with the value you copied:

    curl -s -H "Authorization: Bearer <token>" "http://localhost:3000/api/search?query=Bookshelf"

    The answer is a JSON list that contains the dashboard Bookshelf (guides).

Check the result

  • Administration → Users and access → Users lists guide-viewer, and Teams lists guide-team with one member.

  • Signed in as guide-viewer, you see the folder Guides, the dashboard Bookshelf (guides) in view mode and no Edit button.

  • The curl command with the token returns the dashboard; with a wrong token it answers 401.

  • Provoking traffic is not needed here. If you want live data in the panel, send curl -X POST localhost:8090/mode/failing and restore it with curl -X POST localhost:8090/mode/normal.

Variations

  • Give the team Edit instead of View on the folder, sign in again and compare: the Edit button appears.

  • Create the team with Auto-create a team folder switched on and see the folder under My team folders of the Dashboards page.

  • Give the user the role Viewer instead of No basic role and check that the folder bookshelf becomes visible too.

What can go wrong

Symptom Cause Fix

The new user sees the folder bookshelf and every other folder

The user has the organization role Viewer, which includes read access to all folders.

Change the role to No basic role on the user page, then sign in again.

The new user sees no folder at all

The user is not a member of guide-team, or the team has no permission on Guides.

Add the user to the team, and check the permissions of the folder Guides.

The token is lost

Grafana shows a service account token only once.

Create a new token on the service account page and delete the old one.

curl answers 401

The token was copied with a trailing space, or the service account is disabled.

Copy the token again, and check the filters Disabled and With expired tokens of the service accounts page.

Clean up

Keep the user, the team and the service account if you want to explore further; none of them affects the lab dashboards. To remove them, delete the user, the team and the service account from their own pages under Administration → Users and access, and remove the permission of the team from the folder Guides. To delete everything the lab stores, stop the profile with docker compose --profile grafana down -v.

Where to go next