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

# Google

## Google as a SAML Identity Provider

Enable SAML in your Google Workspace. Check [Set up your own custom SAML app](https://support.google.com/a/answer/6087519?hl=en) for more details.

<Warning>
  **CAUTION**

  You need to be a **super-admin** in the Google Workspace to configure a SAML application.
</Warning>

* Go to `Google`, click on **Download Metadata** in the left sidebar and **copy** the XML.
* Select **Email** as the Name ID format.
* Select **Basic Information > Primary email** as the Name ID.

<Frame>
  <img src="https://mintcdn.com/datafold/9DgdnO4sVNte36u-/images/saml_google_settings-22d5c2a5018e3bd88139f63f41aeb5a8.png?fit=max&auto=format&n=9DgdnO4sVNte36u-&q=85&s=8d366ab86b7b5ea4da4f28610f663a7a" width="1036" height="1092" data-path="images/saml_google_settings-22d5c2a5018e3bd88139f63f41aeb5a8.png" />
</Frame>

* Go to `Datafold` and create a new SSO integration. Navigate to **Settings** → **Integrations** → **Add new integration** → **SAML**.

<Frame>
  <img src="https://mintcdn.com/datafold/9DgdnO4sVNte36u-/images/saml_create-3716c6fe01352ea69c647a7856adf189.png?fit=max&auto=format&n=9DgdnO4sVNte36u-&q=85&s=d664571269b205f66ed0bfb051107a91" width="2088" height="1452" data-path="images/saml_create-3716c6fe01352ea69c647a7856adf189.png" />
</Frame>

* Copy the read-only field **Service Provider ACS URL**, go to `Google` and paste it into **ACS URL**.
* Copy the read-only field **Service Provider Entity ID**, go to `Google` and paste it into **Entity ID**.
* Paste the **copied** XML into `Datafold`'s **Identity Provider Metadata XML** field.
* Click **Save** to create the integration.
* (Optional step) Configure the attribute mapping as follows:
  * **First Name** → `first_name`
  * **Last Name** → `last_name`

<Frame>
  <img src="https://mintcdn.com/datafold/9DgdnO4sVNte36u-/images/saml_google_mappings-60f0f4105c1debd2b14a95aa982727fa.png?fit=max&auto=format&n=9DgdnO4sVNte36u-&q=85&s=ab8e093dd14d4ee27f8ace796fcbde82" width="710" height="454" data-path="images/saml_google_mappings-60f0f4105c1debd2b14a95aa982727fa.png" />
</Frame>
