Skip to Content
PlatformProduction DeploymentEnabling Single Sign-On (SSO)Single Sign-On with Google

Single Sign-On with Google

Step 1: Open the Single Sign-On Settings

  1. In the Platform sidebar, click on your user, then click Organization settings.
  2. Under Organization, in the Users & access group, click Single sign-on. The values that CloudQuery gives to your identity provider use the domain you host CloudQuery Platform on, such as https://cloudquery.example.com:

The CloudQuery Platform single sign-on settings page

Step 2: Create a SAML app in Google Admin

  1. In a new tab, open https://admin.google.com/
  2. Click AppsWeb and mobile appsAdd appAdd custom SAML app

Creating a SAML app in Google Admin

Step 3: Complete App Details

  1. In the App Name field, enter a name to identify your application with. CloudQuery is a good choice in most cases.
  2. (Optional) Enter a description
  3. (Optional) Provide an App icon for your users. You can use this icon: Google CloudQuery icon (Right-click on the image → Save Image As… → Save to your drive. Then upload it in the Google interface.)
  4. Click Continue

Google CloudQuery app details

Step 4: Download & Upload Metadata

  1. On the next page, click Download Metadata:

Google Admin SAML app setup page with the Download Metadata button highlighted

This will download a GoogleIDPMetadata.xml file onto your drive. Click Continue.

  1. On the CloudQuery single sign-on settings page, under Map information from Identity Provider, keep Metadata file selected and click Upload metadata file:

CloudQuery Platform SSO settings with the Upload metadata file button for importing Google IdP metadata

Step 5: Enter ACS URL and Entity ID

Back in the Google Admin interface, enter the value for ACS URL and Entity ID. Copy both values from Map information in Identity Provider on the CloudQuery single sign-on settings page: Single sign-on URL is the ACS URL, and Audience URI (SP Entity ID) is the Entity ID:

Copying the Single sign-on URL and Audience URI from CloudQuery

Copy these values into the highlighted fields:

Entering ACS URL and Entity ID

When done, click Continue on the Google page.

Step 6: Set Attribute Mappings

Next, enter some basic attribute mapping information:

  1. First namefirst_name
  2. Last namelast_name
  3. Primary emailemail

Setting attribute mappings

Step 7: Configure Group Membership

On the same screen, configure group membership so that CloudQuery Platform can assign roles based on your Google Workspace groups.

  1. In the Group membership section of the Google SAML app, add the groups you want to map to CloudQuery Platform roles. Set the App attribute to the name you want to use as the group claim (e.g., groups).

Setting group membership

  1. In the CloudQuery single sign-on settings, under Role mapping, set the Group attribute field to the same value as the App attribute you configured in Google (e.g., groups). Then click Add new group, enter the Google group in Group name, and pick the CloudQuery roles for it.

Setting the group attribute and a group-to-role mapping in CloudQuery Platform

  1. Click Continue in the Google UI.

You can map multiple groups to different roles in CloudQuery Platform. For the full configuration, including default roles for users not in any group and multiple group-to-role mappings, see Map Groups to User Roles.

The Group attribute value in CloudQuery must exactly match the App attribute value in Google. This is case-sensitive.

Step 8: Enable User Access

Now, click on the User access section.

The entire User access block is clickable

Google Admin SAML app overview page with the User access section to click for enabling access

Select ON for everyone. Then click SAVE.

Google Admin User access settings with ON for everyone selected to enable SSO for all organization users

Though not covered in this guide, you can also specify which users in your organization should have access by only turning it on for certain groups.

Step 9: Save and Test

  1. On the CloudQuery single sign-on settings page, turn on Enable single sign-on in the Single sign-on status card at the top of the page:

The Enable single sign-on switch turned on in the CloudQuery Platform status card

  1. The switch is part of the form, so nothing is stored until you submit it. The button at the bottom of the page now reads Save and enable. Click it to save the configuration and turn single sign-on on:

The Save and enable button at the bottom of the CloudQuery Platform SSO settings page

On the Google Admin page, click TEST SAML LOGIN.

Google Admin SAML app page with the TEST SAML LOGIN button to verify the SSO configuration

If everything is set up correctly, you should now be logged into CloudQuery Platform with your Google account.

Next Steps

Was this page helpful?

Last updated on