Grafana SSO with Authentik (OIDC)

Connect Grafana Generic OAuth to authentik and map app-specific entitlements to Grafana organization roles.

Last updated

On this page (5)

Grafana · Authentik · OIDC

Before you start

  • Grafana with Generic OAuth.
  • authentik with application entitlements if using the documented role-mapping recipe.

Configure sign-in

  1. Create the application and OAuth2/OpenID provider with an exact /login/generic_oauth callback and a signing key.
  2. Configure Grafana’s Generic OAuth client credentials and authentik authorize, token and userinfo URLs. Request openid profile email plus entitlements when using entitlement mapping.
  3. Bind approved users/groups to app-specific authentik entitlements. In role_attribute_path map those claim values to Grafana organization roles; explicitly decide if unmatched users should receive Viewer or be denied.
  4. Decide whether to allow local account creation on first login with allow_sign_up.

Verify the result

  • Test entitlement-bearing and unmatched users.
  • Pilot existing-account linking without relying on or altering the only recovery administrator account.

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.