> For the complete documentation index, see [llms.txt](https://help.cloudstoragesec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.cloudstoragesec.com/how-it-works/sso-integrations/google-sso-integration.md).

# Google SSO Integration

This page teaches you how to integrate Google Workspace (SAML 2.0) into your Amazon Cognito User Pool.

## Google Workspace SSO Integration

Follow the information and steps below to let your Google Workspace users sign in to the CSS Console with SSO.

{% hint style="info" %}
You will need **Super Admin** access to the Google Admin console ([admin.google.com](https://admin.google.com)) and access to the Amazon Cognito User Pool created by your CSS application.
{% endhint %}

#### Set up Cognito

1. Capture the Cognito User Pool ID

In the AWS Console, navigate to the User Pool created by your application. It'll generally look like "CloudStorageSecUserPool-{appid}".

Copy the **User Pool ID**.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2FKhrUvtYPRFnLXe7Vp2XG%2FCaptura%20de%20pantalla%202026-10-19%20131728.png?alt=media&amp;token=81a6c8de-22d5-49c4-9924-68970235c7fa" alt=""><figcaption></figcaption></figure>

2. Create a Cognito Domain

In the User Pool, navigate to Domain and select 'Create Cognito Domain'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2F8QU77TKo3efHnXyqHM5X%2FCaptura%20de%20pantalla%202026-10-19%20131919.png?alt=media&amp;token=272ce1ef-33d9-4bed-8855-9a13ab1a274f" alt=""><figcaption></figcaption></figure>

Create the domain of your choice and copy the full domain (it should end in ...auth.{region}.amazoncognito.com).

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2F068pVaNBSKrB5BaybUUi%2FCaptura%20de%20pantalla%202026-10-19%20132054.png?alt=media&amp;token=a48722d2-ed1c-4a0b-9728-a8da95bbdd04" alt=""><figcaption></figcaption></figure>

#### Google: Create a custom SAML app

1. Add a new app

In the Google Admin console, navigate to **Apps > Web and mobile apps**. Select 'Add app' and then 'Add custom SAML app'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2F0YK2GjHx38UZzQNLLyuw%2FCaptura%20de%20pantalla%202026-10-19%20135637.png?alt=media&amp;token=0d0f272f-4026-4c64-acbe-04c882ff793c" alt=""><figcaption></figcaption></figure>

2. Enter the app details

Enter an app name of your choice (for example, "CloudStorageSec Console"). Upload an app icon if you would like. Select 'Continue'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2FNqXze1XUZe32jGlWmPYY%2FCaptura%20de%20pantalla%202026-10-19%20143643.png?alt=media&amp;token=4ed05b6c-707f-45d7-a3b3-255b99627cfc" alt=""><figcaption></figcaption></figure>

3. Download the Google IdP metadata

On the 'Google Identity Provider details' page, select **'Download metadata'** to download the `GoogleIDPMetadata.xml` file. You will upload this file to Cognito later. Select 'Continue'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2F9alv85UI39eenGUzkhMQ%2FCaptura%20de%20pantalla%202026-10-19%20143708.png?alt=media&amp;token=05a7c0da-ea56-4460-b10a-77fcc1911300" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Unlike Entra ID and Okta, Google does not provide a metadata URL. Keep the downloaded `GoogleIDPMetadata.xml` file, as it is required in the Cognito step.
{% endhint %}

4. Enter the service provider details

Here's a chart for the items that must be entered in. After these values, select 'Continue'.

| Key            | Value                                                                                                                                                                       | Example                                                               |
| -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |
| ACS URL        | enter 'https\://{cognito\_domain\_prefix}.auth.{your\_region}.amazoncognito.com/saml2/idpresponse'. Refer back to the domain created in the 'Create a Cognito Domain' step. | <https://css-demo.auth.us-west-2.amazoncognito.com/saml2/idpresponse> |
| Entity ID      | enter 'urn:amazon:cognito:sp:{userpoolid}'                                                                                                                                  | urn:amazon:cognito:sp:us-west-2\_abcd123                              |
| Name ID format | EMAIL                                                                                                                                                                       | EMAIL                                                                 |
| Name ID        | Basic Information > Primary email                                                                                                                                           | Basic Information > Primary email                                     |

Leave 'Start URL' empty and leave 'Signed response' unchecked.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2FPzpH6HSYugEqkUFM2Srn%2FCaptura%20de%20pantalla%202026-10-19%20144310.png?alt=media&amp;token=7a203263-6757-4ab2-91d4-7f8db93af55a" alt=""><figcaption></figcaption></figure>

5. Add the attribute mapping

On the 'Attribute mapping' page, select 'Add mapping' and enter the following:

| Google Directory attributes | App attributes                                                       |
| --------------------------- | -------------------------------------------------------------------- |
| Primary email               | <http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress> |

Select 'Finish'.

#### Google: Turn on the app for your users

New custom SAML apps are turned **OFF** for everyone by default. Users will not be able to sign in until the app is turned on for them.

1. In **Apps > Web and mobile apps**, select the app you just created.
2. Select the 'User access' panel.
3. Select 'ON for everyone', or select the organizational unit or group that should have access and set the service status to 'ON'.
4. Select 'Save'.

{% hint style="info" %}
Changes to user access can take a few minutes (and up to 24 hours) to take effect in Google Workspace.
{% endhint %}

#### AWS: Add Google as an Identity Provider

In the AWS Console:

1. Navigate back to your Cognito User Pool and select 'Social and external providers'.
2. Select 'Add identity provider' and select 'SAML'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2FtjRSJ4qppi1CCISYSvIv%2FCaptura%20de%20pantalla%202026-10-19%20145109.png?alt=media&amp;token=2f623fb5-d51d-4ac2-be40-8781085008b3" alt=""><figcaption></figcaption></figure>

3. Enter a provider name, for example `GoogleWorkspace`. Do not add spaces. This name is shown on the CSS Console sign-in button.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2F6LKhNZ9BEFG1J9cx1bTu%2FCaptura%20de%20pantalla%202026-10-19%20145523.png?alt=media&amp;token=94905e6f-632a-44c7-80bd-c89e99cfd7b6" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Do not name the provider `Google`. That name is reserved by Cognito for its built-in Google social login.
{% endhint %}

4. Under 'Metadata document source', select **'Upload metadata document'** and upload the `GoogleIDPMetadata.xml` file you downloaded from Google.
5. Under 'Map attributes between your SAML provider and your user pool', add the following:
   * User pool attribute: **email**
   * SAML attribute: <http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress>
6. Select 'Add identity provider'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2Fcr8CEm4fnReAVSKJJg7O%2FCaptura%20de%20pantalla%202026-10-19%20145611.png?alt=media&amp;token=38cf19b4-2375-473a-a2ff-9543ea5eb72a" alt=""><figcaption></figcaption></figure>

#### AWS: Configure the Cognito App Client

In Cognito, navigate to App Clients -> {your app client} and select 'Login pages'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2Fz4fKu5FdyQXhwjBb3q5c%2FCaptura%20de%20pantalla%202026-10-19%20145743.png?alt=media&amp;token=24176f58-0bc9-41c5-af3d-6d8cb391c693" alt=""><figcaption></figcaption></figure>

Select the 'Edit' button and enter in the following:

* Allowed callback URLs: CSS Console URL
* Allowed sign-out URLs: CSS Console URL
* Identity Providers: the Google identity provider you just created and 'Cognito user pool'

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2F4BOapdqRvYRGGiHSoehR%2FCaptura%20de%20pantalla%202026-10-19%20150131.png?alt=media&amp;token=59597dae-be9f-4a28-8c3b-d7389f7380d3" alt=""><figcaption></figcaption></figure>

* OAuth 2.0 grant types: 'Authorization code grant', 'Implicit grant'
* OpenID Connect scopes: 'OpenID', 'Email', 'Profile'

Select 'Save changes'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2Fjen6ia0Z5Ec3Zh1QjM2t%2FCaptura%20de%20pantalla%202026-10-19%20150341.png?alt=media&amp;token=c6289eea-0ed4-409d-9aea-41cc8c59cebd" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
The callback URL must match the CSS Console URL exactly (for example, `https://{subdomain}.cloudstoragesecapp.com`), with no trailing path.
{% endhint %}

#### CSS Console: Verify Changes

In the CSS Console:

View the sign-in page and note that a 'Sign In With GoogleWorkspace' button (or the provider name you chose) now appears.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2FkhZLzDgbxvX98vAZkXXZ%2FCaptura%20de%20pantalla%202026-10-19%20150421.png?alt=media&amp;token=a84c008a-1c89-46b4-a11a-ac0a9571640b" alt=""><figcaption></figcaption></figure>

#### CSS Console: Set SSO Defaults (Optional)

New users who sign in with SSO for the first time are automatically assigned a default role and group.

1. Log in as a user that has Admin permissions.
2. Go to Configuration -> Console Settings and scroll to 'SSO Defaults'.
3. Select the 'Default Role' and 'Default Group' for new SSO users and select 'Save'.

<figure><img src="https://905555942-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FlGcQw8I2CHyi1loKBlfi%2Fuploads%2Fj5HWGPXm0hFD5bKdmWgJ%2FCaptura%20de%20pantalla%202026-10-19%20150609.png?alt=media&amp;token=56ca6067-22b3-41d4-bcf9-85d674a15efc" alt=""><figcaption></figcaption></figure>

#### CSS Console: Set Up User

1. Click on the 'Sign In With GoogleWorkspace' button and sign in with your Google account. This will create the user in Cognito.
2. Log in as a user that has Admin permissions.
3. Go to Access Management -> Manage Users. There will be a new user created with the format {provider\_name}\_{google\_user\_email} in the Manage Users page.
4. (Optional) Click the 3 buttons next to the Status and choose 'Change Groups' to assign the user to a different group.
5. If the user is disabled, enable the user by clicking the button with 3 dots on the rightmost column and selecting 'Enable User'.
6. (Optional) Click the 3 buttons next to the Status and choose 'Change Role'. The user gets the default role from 'SSO Defaults' and can be adjusted to another role if needed.

Your user is now set up! Log out and click the SSO button. You are now logged in as the SSO user!

#### Troubleshooting

| Error                                                 | Cause and fix                                                                                                                                   |
| ----------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
| Google shows 'app\_not\_configured\_for\_user'        | The app is not turned ON for this user. Review the 'Google: Turn on the app for your users' step, and allow time for the change to take effect. |
| Google shows 'Invalid ACS URL' or 'Invalid Entity ID' | The ACS URL or Entity ID in Google does not match Cognito. Confirm the Cognito domain and User Pool ID were entered exactly.                    |
| Cognito shows 'redirect\_mismatch' after signing in   | The Allowed callback URL in the Cognito App Client does not exactly match the CSS Console URL.                                                  |
| The user is created without an email                  | The 'Primary email' attribute mapping is missing in Google, or the email attribute mapping is missing in Cognito.                               |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://help.cloudstoragesec.com/how-it-works/sso-integrations/google-sso-integration.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
