| title | SAML with Google | |
|---|---|---|
| redirect_from |
|
{% include plans-blockquote.html feature="Google SAML authentication" %}
- Set up a custom SAML app in your Google admin console.
- As you follow Google's instructions, you'll need to:
- Save information about Google for Metabase.
- Provide Google info to Metabase.
- Provide Metabase info to Google .
- Set up attribute mappings in Google.
See authenticating with SAML for general SAML info.
On the Google Identity Provider details page:
- Download the IdP metadata.
- Copy the SSO URL.
- Download the certificate.
- From your Google IdP metadata, locate the issuer.
- The issuer looks like this:
https://accounts.google.com/o/saml2/.
- The issuer looks like this:
- Go to your Metabase SAML form (Admin > Settings > Authentication > SAML).
- Put the issuer in the Metabase SAML Identity Provider Issuer field.
- Put the SSO URL in the Metabase SAML Identity Provider URL field.
- Paste the certificate in the Metabase SAML Identity Provider Certificate field.
- Make sure to include any header and footer comments (like
---BEGIN CERTIFICATE---).
On the Service provider details page:
- Put the Metabase URL the IdP should redirect to in the Google ACS URL field.
- Put the Metabase SAML Application Name in the Google Entity ID field.
- The SAML Application Name can be anything you like (e.g., "yourcompany-metabase").
- Start URL and Signed response are optional fields.
On the Attribute mappings page, you'll need to add "First name", "Last name", and "Email" as attributes, so that Google can pass them to Metabase during authentication.
For example, to add the attribute "First name":
- Click Add another mapping.
- Under Google Directory attributes, choose Basic information > First name as the attribute field name.
- Go to your Metabase SAML form, and look for SAML attributes > User's first name attribute.
- The attribute looks like this:
http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname.
- The attribute looks like this:
- Paste the User's first name attribute under your Google App attributes.
- Repeat steps 1-3 for the attributes "Last name" and "Email".
- In Google Admin, you can EITHER:
- Set up a multi-value custom user attribute for your users. Recommended if you manage multiple SAML app permissions in Google or if you lack existing Google Groups that align with your desired Metabase groups.
- Map to existing Google Groups.
- Follow the instructions for Configuring the group schema using the
App attributethat you used in Google as the Group attribute name in Metabase.