> ## Documentation Index
> Fetch the complete documentation index at: https://help.allthenticate.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Set up SAML single sign-on for Grafana Cloud

> Sign in to your Grafana Cloud stack with Allthenticate over SAML using Grafana's SAML wizard, the Allthenticate metadata URL and an email-based user mapping.

Grafana Cloud stacks configure SAML inside the stack itself, under **Administration** > **Authentication**. Grafana reads Allthenticate's metadata from a URL, so you only copy two Grafana URLs into Allthenticate. SAML on Grafana Cloud needs a plan that includes it; the **Advanced Auth** page on grafana.com links to each stack's SAML settings.

## Before you start

* Admin access to the Allthenticate admin portal.
* The **Admin** role on the Grafana Cloud stack.
* Users who will sign in have the Allthenticator app set up.

## Configure in Allthenticate

**1. Add the service provider**

In the admin portal, go to **SSO** > **SAML** and select **Add Service Provider**. Enter `Grafana Cloud` as the **Provider Name**, uncheck **Use Metadata File**, and enter your stack's values, replacing `<stack>` with your stack's name:

| Field | Value |
| - | - |
| **Entity ID** | `https://<stack>.grafana.net/saml/metadata` |
| **ACS URL** | `https://<stack>.grafana.net/saml/acs` |

Grafana shows both on its **Connect Grafana with Identity Provider** step as **SP metadata URL / SP Entity ID** and **Assertion consumer service POST binding URL**.

**2. Add the attributes**

Under **Custom Attribute Statements**, select **Add Attribute** for each:

| Name | Value |
| - | - |
| `email` | `user.email` |
| `login` | `user.email` |
| `name` | `user.firstName` |

**3. Save and copy the metadata URL**

Select **Save**, open the service provider from the list, and copy its **Entity ID**. That URL also serves Allthenticate's metadata, which Grafana reads in the next section.

## Configure in Grafana

In your stack, go to **Administration** > **Authentication** and select **SAML**. The wizard has five steps.

**1. General settings**

Set **Display name** to `Allthenticate`. Leave **Entity ID** empty to use the default, and leave **Allow signup** on so people without a Grafana account yet can sign in.

**2. Sign requests**

Leave **Sign outgoing requests to IdP** off.

**3. Connect Grafana with Identity Provider**

Under **IdP's metadata**, choose **URL for metadata** and paste Allthenticate's **Entity ID** into **Metadata URL**.

**4. User mapping**

| Grafana field | Value |
| - | - |
| **Name attribute** | `name` |
| **Login attribute** | `email` |
| **Email attribute** | `email` |
| **External UID attribute** | Leave empty |
| **Name identifier format** | **Email address** |

Check **Skip organization role sync**. Allthenticate doesn't send a role attribute, so without this Grafana resets every SAML user's organization role to the default each time they sign in, including admins.

**5. Test and enable**

Select **Save and enable**. The status changes to **Enabled**. Grafana keeps its other sign-in methods.

## Test sign-in

1. Open `https://<stack>.grafana.net/login/saml` in a private browser window. In a window that is already signed in to Grafana, this page goes straight to Grafana without asking Allthenticate.
2. Approve the sign-in on your phone.
3. You land in Grafana. Grafana matches an existing user by email address, so existing users keep their dashboards and roles.

For other problems, see [SAML troubleshooting](https://help.allthenticate.com/help/sso/saml.md#troubleshooting).

## Related

* [Set up Allthenticate as a SAML identity provider](https://help.allthenticate.com/help/sso/saml.md)
* [Single sign-on overview](https://help.allthenticate.com/help/sso/overview.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.