Grafana SSO with Microsoft Entra ID (OIDC)

Use the Grafana Entra integration and map application-specific roles instead of giving all tenant users the same Grafana privilege.

Last updated

On this page (5)

Grafana · Microsoft Entra ID · OIDC

Before you start

  • Grafana and Entra app registration administration.
  • Tenant-specific app, web callback and client secret.

Configure sign-in

  1. Register a single-tenant web app with https://<grafana-host>/login/azuread as a redirect URI and create a client credential.
  2. Define and assign Entra app roles corresponding to the desired Grafana Viewer, Editor and Admin levels. Use a user-assignment restriction where appropriate.
  3. Configure Grafana’s Entra ID provider ([auth.azuread]) with tenant-specific authorization/token endpoints and credentials. Check the role claim and require a recognized role if users should not fall back to a default.

Verify the result

  • Confirm Viewer cannot edit and unassigned/guest identities cannot enter unless intended. Inventory existing Grafana logins before enabling account linking; test renamed email and avoid insecure email matching.
  • Test changed role after reauthentication and session termination separately from IdP removal.

Official documentation

Have Pilae connect your identity provider

Pilae can deploy Grafana with your identity provider already connected. We agree the edition, account mapping and access tests with your team before rollout.