Configure SAML authentication
Configuring SAML authentication enables your users to sign in to Grafana Cloud using your organization’s identity provider. This eliminates the need for separate Grafana credentials and enables automated user provisioning based on group memberships.
This milestone configures SAML in the Grafana Cloud UI, which is a prerequisite for the Terraform-managed team sync you’ll configure in the next milestone.
To configure SAML authentication, complete the following steps:
Sign in to your identity provider (OKTA is used in this example).
Create a new SAML 2.0 application integration.
Configure the SAML settings:
- Set Single sign-on URL to
https://<YOUR_STACK>.grafana.net/saml/acs - Set Audience URI to
https://<YOUR_STACK>.grafana.net/saml/metadata
- Set Single sign-on URL to
Configure the attribute statements:
login→user.loginemail→user.emaildisplayName→user.firstName
Add a group attribute statement:
groups→ Matches regex →.*
Make sure your identity provider is correctly configured with the groups you want to use for access management. For this example, add the groups Finance, Marketing, and IT.
- If you’re using OKTA, go to Directory > Groups and then click on Add Group.
- Assign the Grafana Cloud application to each group.
- Refer to the OKTA documentation for more details.
Copy the Metadata URL from your identity provider’s Sign On tab.
Next, in Grafana Cloud, navigate to Administration > Authentication > SAML.
In the Display name field, enter your identity provider name. For example, enter
OKTA.Paste the Metadata URL from your identity provider.
Configure the assertion attribute mappings and role mapping with a least privilege approach:
- Set the default role for the
Everyonegroup toNone - Access rights will be granted through team sync
- Set the default role for the
Click Test and enable.
Click Save and enable.
SAML authentication is configured and users can sign in using your identity provider.
In the next milestone, you’ll create teams with external group synchronization using Terraform.
