This step-by-step guide explains how to set up single sign-on (SSO) in Contentstack with Google G Suite as your SAML 2.0 identity provider (IdP). You create a connection in Contentstack, set up a custom SAML app in the Google Admin console, map attributes, turn the app on for your users, and then test and enable SSO in Contentstack.
You can attach up to five SAML 2.0 IdPs to a single Contentstack organization. Each IdP is a separate connection with its own certificate, session policy, role mapping, and login URL, which is useful when one user population authenticates through Google and another through a different IdP. This guide walks through one connection. To add and organize more connections, refer to Configure Multiple Identity Providers.
The integration with Google G Suite can be done in two steps:
Let's see each of the steps in detail.
Note: SSO can be configured by the organization owner, a security manager, or a user with a custom role that has SSO write permissions.
Log in to your Contentstack account, open the App Switcher, go to Administration, and then click Single Sign-On.


Add a connection to open the New Connection dialog, and enter the following details:
Note: The SSO ID can contain only lowercase letters, numbers (0-9), and hyphens (-). You cannot change the SSO ID after you create the connection. SSO IDs are unique across all Contentstack organizations, so a name already in use elsewhere is rejected.
Let's use "sso-test" as the SSO ID.


Click Create.

Contentstack opens the connection at 1. SSO Configuration and generates the Assertion Consumer Service (ACS) URL, along with read-only details such as Entity ID, SAML Version, Attributes, and NameID Format. You need these details in Step 2. Keep this window open.
Note: The ACS URL contains this connection's SSO ID, so every connection in your organization has its own ACS URL. Use the ACS URL of the connection you are configuring.

Tip: Instead of copying the ACS URL and Entity ID individually into the Google Admin console, share Contentstack's service provider (SP) metadata with your IdP team in one step. Use Download Metadata XML. If you enable SAML encryption on this connection, the downloaded metadata also carries the public certificate your IdP uses to encrypt assertions. You can download that certificate on its own from the Contentstack public certificate link. For details, refer to Download Contentstack (SP) Metadata.
Log in to your Google Admin account, click Apps, and select SAML apps.

Click Add a service/App to your domain, or click the plus (+) icon in the bottom right corner.

This opens the Enable SSO for SAML Application window. Click SETUP MY OWN CUSTOM APP.

Copy the link in the SSO URL field, and download the certificate using the Download button. You can also click DOWNLOAD METADATA to get Google's IdP metadata XML, which lets you import all the details into Contentstack in one step.
In Contentstack, go to 2. IdP Configuration for this connection and provide Google's details in one of the following ways:
Tip: Importing metadata reduces manual entry and errors. Signature algorithm and SAML encryption are not part of IdP metadata, so you always set those by hand. For the full procedure and error handling, refer to Import IdP Metadata.
Warning: A connection stores one signing certificate. Contentstack shows its expiry date next to the field. When your IdP switches to a new signing certificate, every SAML assertion arrives signed by a certificate Contentstack does not recognize, and sign-in through this connection fails until you upload the new certificate here. Coordinate the replacement with the switch on the IdP side rather than waiting for the current certificate to expire.

Next, you will see the Basic information for your Custom App window, where you can provide an application name and upload a logo. Then click Next to proceed to SAML settings.
Tip: In an organization with more than one connection, name each Google SAML app after the Contentstack connection it serves, for example "Contentstack (Acme Employees)."

In the Service Provider Details window, provide the ACS URL and the Entity ID of your Contentstack connection.

In the Name ID field, select Basic information and Primary Email. For the Name ID Format field, select EMAIL. Click Next.

In the Attribute Mapping window, click ADD NEW MAPPING.

Enter "email," and select Basic information and Primary Email; enter "first_name," and select Basic information and First Name; and enter "last_name," and select Basic information and Last Name.

On the following prompt, click OK.

Now, you will see your SAML app.

Click the three dots at the top of the gray box. You will see three options: On for everyone, OFF, and On for some organizations.

Select the option that matches the user population for this connection, and confirm.
Note: Turn the app on only for the users who authenticate through this connection. In an organization with more than one connection, a user is identified by email address across every IdP, and the same email cannot map to different users in different IdPs.

Your app is now turned on for the selected users.

With this, you are done with setting up the Contentstack app in Google G Suite. You can now proceed to configuring the remaining steps in Contentstack.
In Contentstack, save your settings and go to 3. User Management for this connection.
Note: Strict mode is set per connection, but it takes effect across the whole organization. If any enabled connection has strict mode on, the entire organization is SSO-only. Because of this, only one connection can hold the strict mode toggle at a time, and enabling strict mode on one connection disables the toggle on the others. Disabling a connection that has strict mode on removes strict mode for the organization, because a disabled connection does not contribute to the organization's strict state.
Note: This is a plan-based feature. For access, contact our support team.
Note: IdP Role Mapping is currently supported for Okta, OneLogin, and Microsoft Entra ID. To know how it works, refer to IdP Role Mapping.

Go to 4. Test & Enable for this connection in Contentstack.
Click Test SSO to check that your settings are configured properly. On the Login via SSO page, specify this connection's SSO ID. It is highly recommended that you test your settings before enabling the connection.
To enable SSO for your Contentstack organization, click Enable SSO. Once enabled, users can access the organization through this connection.
You can then disable the connection from the same page when required.
Note: The first connection you enable becomes the organization's primary connection. In an organization with more than one connection:
For the full set of connection actions, refer to Manage SSO Connections.
Additional Resource: To add more identity providers, refer to Configure Multiple Identity Providers. To import Google's metadata instead of entering details by hand, refer to Import IdP Metadata.


