Grafana: Create Users And Teams
![Grafana: Create Users And Teams](/content/images/size/w2000/2024/07/Frame-8-2.png)
We will explore how to manage users in Grafana. Whether you are an admin or just someone looking to understand user management in Grafana, this guide will help you. We will cover how to add local users, organize them into teams, and ensure they have access only to the resources they need. Managing users and teams effectively is crucial for maintaining security and organization within your Grafana instance.
Types Of Users
In Grafana, each user is assigned an organization role that dictates what resources they can access. There are three main types of roles:
- Grafana Admin: This is a global role that allows the user to manage organizations, and users, and view server-wide settings. It provides the highest level of access and is assigned to users responsible for overall Grafana administration.
- Organization Administrator: Users with this role can manage data sources, teams, and other users within their organization. This role is suitable for department heads or team leads.
- Editor: Editors can create and edit dashboards. This role is intended for users who need to build and modify visualizations and reports.
- Viewer: Viewers can only view dashboards and cannot make any changes. This role is ideal for users who need to access information without altering the data.
Grafana also allows for anonymous access, making dashboards available to those without a Grafana user account. For instance, Grafana Labs' play.grafana.org is publicly accessible this way. This feature can be useful for sharing dashboards with external stakeholders without requiring them to log in.
Adding Users:
- Log in as a user with the Server Admin role and ensure you have the necessary permissions to add new users.
- On the sidebar, click the Administration. This will take you to the Admin panel where you can manage users.
![Administartion screen in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-7.48.23-PM-1.jpg)
- After this click on Users and Access and this will take you to the dashboard to configure and access different users, teams and service accounts.
![Administration screen in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-7.35.05-PM.jpg)
- Choose Users from the menu, then click New User. This will open a form for adding a new user.
![Creating new user in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-7.36.04-PM.jpg)
- Enter the Name, Email, Username, and Password for each user from the table above. Fill in the details for each new user as provided in the table.
![New user form in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-7.37.01-PM.jpg)
- Click Create User to create the account and this will add the new user to Grafana.
By default, new users are granted the viewer role, which means they can't change resources. We will adjust their permissions by adding them to teams.
Creating Teams:
- In the sidebar, hover over Administration > Users and Access > Teams. This will take you to the Teams management page.
![Creating Team in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-7.37.32-PM.jpg)
- Click New Team and this will open a form to create a new team.
![New team button in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-7.37.55-PM.jpg)
- Enter the team's name and click Create. Name your team appropriately based on the department and provide an optional email to allow custom team avatars.
![New team form in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-7.38.30-PM.jpg)
- Click Teams at the top of the page to return and create the second team. Repeat the process to create the second team.
Adding Users to Teams:
- Click the Team name to add members to that team. Navigate to the team you want to add members to.
- Click Add Member, This will open a dialogue to add team members.
- In the Add Member box, select the user you want to add from the drop-down menu. Choose the user from the list.
- Now select the role you want to assign to the user being added to the team.
- Click Save and this will add the user to the team.
![Assigning member to the teams with roles in grafana](https://blog.elest.io/content/images/2024/07/Screenshot-2024-07-15-at-9.39.14-PM.jpg)
Repeat these steps for each user to assign them to their respective teams. By the end, you will have two teams with two users each. This setup allows for efficient permissions management and ensures that users can access the resources they need.
Thanks for reading ❤️
By organizing users into teams and assigning appropriate roles, you can ensure that each user has the access they need while maintaining control over your resources. This tutorial has walked you through the process of adding users, creating teams, and managing permissions, setting you up for efficient user management in Grafana. Thank you so much for reading and do check out the Elestio resources and Official Grafana documentation to learn more about Grafana. You can click the button below to create your service on Elestio. See you in the next one👋
![](https://pub-da36157c854648669813f3f76c526c2b.r2.dev/deploy-on-elestio-black.png)