Edit

Configure Grafana Team Sync with Microsoft Entra groups

In this guide, you learn how to use Microsoft Entra groups with Grafana Team Sync to manage dashboard permissions in Azure Managed Grafana.

In Azure Managed Grafana, Azure role-based access control (RBAC) roles grant access to the workspace and map users to Grafana roles. By default, roles such as Grafana Viewer and Grafana Editor provide access across the workspace. Grafana folder and dashboard permissions let you adjust this access for specific resources. For example, you can grant the Viewer role permission to edit a dashboard or change the dashboard permission for the Editor role from Edit to View.

Microsoft Entra group sync helps you manage these permissions at scale. Create a Grafana team, link it to a Microsoft Entra group, and assign folder or dashboard permissions to the team. When group membership changes, Grafana synchronizes the corresponding team membership.

Prerequisites

Assign a Grafana role to a Microsoft Entra group

The Microsoft Entra group must have a Grafana role to access the Grafana workspace.

  1. In the Azure portal, open your Grafana workspace, and then select Access control (IAM).

  2. Select Add > Add role assignment.

    Screenshot of the Azure portal. Adding a new role assignment.

  3. Assign a Grafana role to the Microsoft Entra group. To restrict members to selected folders and dashboards, assign Grafana Limited Viewer. For workspace-wide view access, assign Grafana Viewer. For detailed steps, see Assign a Grafana role.

After you assign a Grafana role to the Microsoft Entra group, choose one of the following methods to create and link a Grafana team.

  1. In the Azure portal, open your Grafana workspace. In the left menu, select Settings > Configuration.

  2. Select Microsoft Entra Team Sync Settings.

  3. Select Create new Grafana team.

    Screenshot of the Azure portal. Configuring Microsoft Entra Team Sync.

  4. Enter a name for the Grafana team and select Add.

    Screenshot of the Azure portal. Creating a new Grafana team.

  5. In Assign access to, select the newly created Grafana team.

  6. Select + Add a Microsoft Entra group.

  7. In the search box, enter a Microsoft Entra group name and select the group name in the results. Choose Select to confirm.

    Screenshot of the Azure portal. Finding and selecting a Microsoft Entra group.

  8. Optionally repeat the previous three steps to add more Microsoft Entra groups to the Grafana team.

  1. In the Azure portal, open your Azure Managed Grafana workspace and select the Endpoint link to open the Grafana UI.
  2. In the Grafana UI, select Administration > Users and Access > Teams.
  3. Select New team. Screenshot of the Grafana UI, selecting the New team action.
  4. Enter a team name and, optionally, an email address, and then select Create.
  5. Open the team, and then select External group sync.
  6. Select Add group. Screenshot of the Grafana UI, selecting the Add group action.
  7. In the Azure portal, open the Microsoft Entra group that you want to link. On the group's Overview page, copy its Object ID.
  8. Return to the Grafana UI, paste the object ID into External group, and then select Add group.
  9. Verify that Grafana displays a success notification and lists the group ID under External group sync.

After a user in the linked Microsoft Entra group signs in to the Grafana workspace, Grafana adds the user to the team.Synchronization might take a few minutes.

Assign access to a Grafana folder or dashboard

  1. In the Grafana UI, open a folder or a dashboard.

  2. Select Settings.

  3. On the Permissions tab, select Add a permission.

    Screenshot of the Grafana UI, selecting Add a permission.

  4. Under Add permission for, select Team. Select the team name and the View, Edit, or Admin permission, and then save the permission.

    Screenshot of the Grafana UI, adding a permission for a team in a Grafana folder.

    Important

    Grafana applies the highest permission granted through a role, user, team, or parent folder. Assigning a lower permission to a user or team doesn't override a higher permission. To reduce access, change or remove the higher permission that grants it. You can't restrict Grafana Admin access.

    Tip

    To check existing access permissions for a dashboard, open a dashboard and go to the Permissions tab. This page shows all permissions assigned for this dashboard and all inherited permissions.

    Screenshot of the Grafana UI, showing permission for a Grafana dashboard.

Restrict Grafana Viewer access

Users with the Grafana Viewer role can view all folders by default. To hide a folder from all users with this role, remove the Viewer permission from the folder. This change affects all Grafana Viewers, not only members of the synchronized Microsoft Entra group.

If group members have the Grafana Limited Viewer role, skip this procedure. They can access only the folders and dashboards that you explicitly grant them permission to view.

  1. In the Grafana UI, go to a folder you want to hide from Grafana Viewers.

  2. In the Permissions tab, select the X button to the right of the Viewer permission to remove this permission from this folder.

  3. Repeat this step for all folders you want to hide from Grafana Viewers.

    Screenshot of the Grafana UI, removing the Viewer permission in a Grafana folder.

Remove a Grafana team

If you no longer need a Grafana team, follow these steps to delete it. Deleting a Grafana team also removes the link to the Microsoft Entra group.

  1. In the Grafana UI, select Administration > Users and Access > Teams.

  2. Select the X button to the right of a team you're deleting.

    Screenshot of the Grafana platform. Removing a Grafana team.

  3. Select Delete to confirm.

Stop synchronizing a Microsoft Entra group

Remove the external group link when you no longer want the Microsoft Entra group to determine membership in the Grafana team.

  1. In the Grafana UI, select Administration > Users and Access > Teams.
  2. Open the team, and then select External group sync.
  3. Select the X button next to the group ID that you want to unlink.
  4. Verify that Grafana displays a success notification and removes the group ID from the list.

After users from the unlinked Microsoft Entra group sign in to the Grafana workspace, Grafana removes them from the team. Synchronization might take a few minutes.

Note

Unlinking a Microsoft Entra group from a Grafana team doesn’t remove the group’s Azure role assignment on the workspace. To revoke access, remove the applicable Azure role assignment for the group.

Next step

In this how-to guide, you learned how to set up Grafana teams backed by Microsoft Entra groups. To learn how to use teams to control access to dashboards in your workspace, see Manage dashboard permissions.