Setup Google Workspace SSO

Overview

Before using this document, read the general Mixpanel SSO set-up instructions.

You have two setup options in order to use Single Sign-On (SSO) for Mixpanel through Google Workspace IDP:

A. For most use cases, you can use the Mixpanel app within Google Workspace app store

B. If you have a more custom setup, follow Google Workspace’s documentation on setting up a new application to create a custom Mixpanel app.

Configure SSO in Mixpanel

Follow the general SSO set-up instructions.

Make sure to collect your postback URL and successfully claim your domain.

Configure the Mixpanel App in Google Workspace

A. Use the Mixpanel app within Google Workspace’s app store, or

B. Follow Google Workspace’s documentation on setting up a new application to create a custom Mixpanel app.

Configure SAML

A. If you use the Mixpanel app from the store, the following SAML configuration is already built into the app.

use_existing_app

B. If you create a custom app, you must fill the form found in the Configure SAML menu in Google Workspace. Make sure that the following fields are adjusted to exactly match the corresponding values:

The following screenshot highlights what you should place in the fields:

custom_saml_app

Additionally, it is required that you use email as an attribute statement, other attributes we recommend include firstName and lastName.

attr_mapping

Obtain Information From Google Workspace

In order to configure Mixpanel use with Google Workspace, you must first obtain your Public Certificate, SSO URL, and Entity ID.

To access this information, access the Mixpanel app in Google Workspace (or create a custom app) first select DOWNLOAD METADATA. Then, grab the SSO URL and Entity ID as well as the certificate to upload in Mixpanel (we recommend adding the expiration date to the file name to make it easier to manage in Mixpanel).

google_metadata

Enable SSO

From Mixpanel, navigate to your Organization Settings and then the Access Security tab. From the 2FA & SSO menu, upload your Public Certificate and add your SSO URL and Entity ID to the Identity Provider Sign-In URL and Issuer URL, respectively.

sso_settings_in_mp

Optionally toggle Require Single Sign-On to prevent your users from logging in with a username and password. Organization Owners and Admins will still be able to log in using username and password in case SSO is not set up correctly.

Troubleshooting

  1. If a Mixpanel account has already been created with the Google Workspace user’s email (their Google Workspace Username) and that account is not a member of your Mixpanel organization, provisioning setup for that Google Workspace user will fail. To resolve this, manually invite the existing user to your organization.

  2. Provisioning will also fail if the domain of the user’s email has not been claimed by your organization. To resolve this, manually invite the existing user to your organization.

Was this page useful?