docs/sources/setup-grafana/configure-access/configure-scim-provisioning/configure-scim-with-okta/_index.md
{{< admonition type="note" >}} Available in Grafana Enterprise and Grafana Cloud. {{< /admonition >}}
This guide explains how to configure SCIM provisioning with Okta to automate user and team management in Grafana.
Before configuring SCIM with Okta, ensure you have:
{{< admonition type="note" >}} Important SAML and SCIM Configuration: When using SAML for authentication alongside SCIM provisioning with Okta, it is crucial to correctly align user identifiers. For detailed information on why this is critical for security and how to configure it, refer to the main SCIM provisioning documentation.
Ensure your Okta SAML application is configured to send a stable, unique identifier (that will map to the Grafana SCIM externalId) as a SAML claim. Then, configure the Grafana SAML settings to use this claim. For general Okta SAML setup, refer to Set up SAML with Okta.
{{< /admonition >}}
To enable SCIM provisioning in Grafana, create a service account and generate an access token that will be used to authenticate SCIM requests from Okta.
Configure both SAML authentication and SCIM provisioning in Okta to enable automated user and team synchronization with Grafana. Start by creating a SAML application, then enable and configure SCIM provisioning for that application.
To enable user provisioning through SCIM, configure the SCIM integration settings in Grafana by specifying the connector URL, authentication mode, and supported provisioning actions. Follow these steps to complete the integration.
In the Integration tab, configure:
SCIM Connector base URL:
You can copy the complete SCIM Connector base URL directly from the SCIM UI at Administration > Authentication > SCIM. This is displayed as the Tenant URL in the UI. Your stack domain and stack ID can also be found in the SCIM UI.
Alternatively, you can construct the URL manually:
https://{stack-name}.grafana.net/apis/scim.grafana.app/v0alpha1/namespaces/stacks-{stack-id}
{stack-name} and {stack-id} with your Grafana Cloud stack name and ID.https://{your-grafana-domain}/apis/scim.grafana.app/v0alpha1/namespaces/default
{your-grafana-domain} with your Grafana instance's domain (e.g., grafana.yourcompany.com).Unique identifier field: userName
Supported provisioning actions:
Authentication Mode: HTTP Header
Authorization: Bearer {your-grafana-service-account-token}
Click Test Connector Configuration and then save the configuration
In the To App tab, enable:
After completing the configuration: