Skip to main content

Capabilities

The Grafana connector supports both self-hosted Grafana instances and Grafana Cloud. The required credentials and provisioning behavior differ between the two — see Gather Grafana credentials below. The Grafana connector supports automatic account provisioning and deprovisioning. For self-hosted Grafana, when a new account is created by C1, the account’s password is sent to a vault. For Grafana Cloud, account creation is invite-based and no connector-generated password is returned.
Grafana Cloud: enabling the basic login form is a prerequisite for creating brand-new usersGrafana Cloud instances ship with the basic login form disabled by default (users authenticate through grafana.com / SSO). While it is disabled, Grafana rejects instance-level invites for users who do not yet exist in the instance, and account creation fails with:
With the service-account token the connector uses, this means:
  • Users who already exist in the instance (provisioned earlier via SSO, SCIM, or grafana.com) are added to the organization normally — account provisioning works for them without any change.
  • Brand-new users cannot be created until you either:
    • enable SCIM provisioning (Grafana’s recommended path for automatic user lifecycle in Cloud), so users are provisioned by your identity provider before C1 assigns organization roles; or
    • enable the basic login form on the instance (set disable_login_form = false), which permits instance-level invites for external users.
Managing membership directly through the grafana.com portal is a separate API and credential (a Grafana Cloud Access Policy token) that the connector’s instance service-account token cannot use.
Grafana Cloud: provisioning organization roles for externally synced usersIn Grafana Cloud, users who sign in through an external identity provider (such as Grafana.com SSO, Okta, Azure AD, or any OAuth/SAML provider) have their organization roles controlled by that provider. By default, Grafana blocks API-level role changes for these users, which prevents C1 from provisioning organization entitlements for them.To allow C1 to manage organization roles for these users, enable Skip org role sync for the relevant SSO provider in your Grafana instance:
  1. In Grafana, go to AdministrationAuthentication.
  2. Select the SSO provider your users log in with.
  3. Enable Skip org role sync (equivalent to setting skip_org_role_sync = true).
Once this is enabled, Grafana stops overriding org roles on login and C1 becomes the authoritative source for role assignments. This is a global setting that applies to all users under that provider.This step is not required for self-hosted Grafana instances using basic (username/password) authentication.

Account access origin

Starting with connector version 0.2.3, each synced account’s profile includes attributes that identify how the user’s access originated. They appear in the account’s Profile attributes in C1 and support access reviews where the origin of access matters: is_externally_synced surfaces Grafana’s native isExternallySynced flag verbatim and only when Grafana actually returns it. Whether the flag is returned depends on the endpoint the connector reads, which differs by mode:
  • Grafana Cloud reads the organization users endpoint (/api/org/users), which always returns the flag, so is_externally_synced is present and mirrors Grafana’s value exactly. It reflects only whether the user’s organization role is managed by an external identity provider (role sync) — it is not derived from auth_labels, which is a different concept (how the user authenticated). In Grafana Cloud every user authenticates through grafana.com, so auth_labels is effectively always grafana.com; an admin whose role is managed locally therefore reports is_externally_synced: false even though their auth_labels show grafana.com.
  • Self-hosted Grafana reads the global users endpoint (/api/users), which does not return the flag. Rather than derive a value from a different concept, the connector omits is_externally_synced from the profile entirely. Use auth_labels to reason about authentication provenance in this mode.

Gather Grafana credentials

Configuring the connector requires credentials obtained in your Grafana instance. The credentials you need depend on whether you are connecting to Grafana Cloud or a self-hosted Grafana instance.
For Grafana Cloud, the connector authenticates using a service account token. Basic username/password authentication is not supported in Cloud mode.To create a service account token:
  1. In your Grafana Cloud instance, go to AdministrationUsers and accessService accounts.
  2. Click Add service account, give it a name, and assign it the Admin role.
  3. Open the new service account and click Add service account token.
  4. Copy and save the generated token — it will not be shown again.
You will need:
  • Your Grafana Cloud instance URL (e.g., https://your-org.grafana.net)
  • The service account token generated above
Done. Next, move on to the connector configuration instructions.

Configure the Grafana connector

To complete this task, you’ll need:
  • The Connector Administrator or Super Administrator role in C1
  • Access to the set of Grafana credentials gathered by following the instructions above
Follow these instructions to use a built-in, no-code connector hosted by C1.
1
In C1, navigate to Integrations > Connectors and click Add connector.
2
Search for Grafana and click Add.
3
Choose how to set up the new Grafana connector:
  • Add the connector to a currently unmanaged app (select from the list of apps that were discovered in your identity, SSO, or federation provider that aren’t yet managed with C1)
  • Add the connector to a managed app (select from the list of existing managed apps)
  • Create a new managed app
4
Set the owner for this connector. You can manage the connector yourself, or choose someone else from the list of C1 users. Setting multiple owners is allowed.If you choose someone else, C1 will notify the new connector owner by email that their help is needed to complete the setup process.
5
Click Next.
6
Find the Settings area of the page and click Edit.
7
Paste your Grafana instance URL into the Instance URL field.
8
Enter your credentials based on your Grafana deployment type:
  • Grafana Cloud: Select “API Key” as the auth method and paste your service account token into the API Token field.
  • Self-hosted Grafana: Select “Basic Authentication” as the auth method and paste the admin account’s username and password into the Username and Password fields.
9
Click Save.
10
The connector’s label changes to Syncing, followed by Connected. You can view the logs to ensure that information is syncing.
Done. Your Grafana connector is now pulling access data into C1.