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 Okta: A. For most use cases, you can use the Mixpanel app within the OIN (Okta’s app store). B. If you have a more custom setup, follow Okta’s documentation on setting up a new application to create a custom Mixpanel app.Configure SSO in Mixpanel
Before configuring Okta, claim your domain in Mixpanel and get your Postback URL for use when configuring SAML in Okta.Configure the Mixpanel App in Okta
A. Use the Mixpanel app within the OIN (Okta’s app store), or B. Follow Okta’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 OIN, the following SAML configuration is already built into the app. B. If you create a custom app, you must fill the form found in the Configure SAML menu in Okta. Make sure that the following fields are adjusted to exactly match the corresponding values:- Single sign on URL: Postback URL from Mixpanel (https://mixpanel.com/security/sso/v2/authorize/?org_id=YOUR_ORG_ID)
- Requestable SSO URLs: https://sso.mixpanel.com/sso/saml2
- Recipient URL: https://sso.mixpanel.com/sso/saml2
- Destination URL: https://sso.mixpanel.com/sso/saml2
- Audience URI: https://mixpanel.com/security/sso/v2/authorize/


email as an attribute statement, other attributes we recommend include firstName and lastName.

Obtain Information From Okta
In order to configure Mixpanel use with Okta, you must first obtain your Public Certificate, Authentication URL, and Issuer URL. To access this information, first select the select the Mixpanel app under the Applications tab in Okta. Click on the Sign On tab. In the right About column under the SAML Setup section, click View SAML setup instructions.
Public Certificate
The X.509 certificate allows users signing in through a third-party identity provider to be authenticated by Mixpanel without supplying a username and password. Each identity provider account has a unique X.509 certificate that will need to be uploaded to Mixpanel during the SSO setup process. Click Download Certificate in the second entry to download your certificate.

Authentication URL
Your Authentication URL is in the third entry labeled Redirect Login URL.
Issuer URL
You will find your Issuer URL in the third entry labeled Identity Provider Issuer.
Enable SSO in Mixpanel
After configuring Okta:- Collect the Public Certificate, Authentication URL, and Issuer URL as described above.
- In Mixpanel, go to Organization Settings > Access Security > Single Sign-On.
- Enter the Public Certificate in the SAML Certificate field, the Authentication URL in the Identity Provider Sign-in URL field, and the Issuer URL in the Issuer URL field.
- Click Update.
Configuring SCIM Provisioning
SCIM provisioning uses the Mixpanel app within the OIN (Okta’s app store). The following prerequisites must be met to set up SCIM provisioning:- You must have an active Enterprise plan subscription with Mixpanel.
- You must have Okta SSO set up with Mixpanel.
- The
Usernamevalue in Okta must be an email address with a domain that you’ve claimed. - You need to have generated a SCIM OAuth token to use with the app. This token is located in SCIM menu of the Access Security tab in your Organization Settings. You will need to be an Organization Owner or Admin to access this.

- Push New Users: New users created through Okta and assigned to the application will be created in Mixpanel.
- Push Profile Updates: Updates made to the assigned user’s supported profile attributes (First Name, Last Name, Email) through Okta will be pushed to Mixpanel.
- Push User Deactivation: Deactivating the user or removing the user from the application through Okta will deactivate the user in Mixpanel (or delete the account if specified).
- Reactivate Users: Reassigning a previously unassigned user to the application will reactivate the user’s account in Mixpanel.
- New users provisioned from Okta will be automatically added as an Organization Member.
- You will need to provision other Organization Roles to users within the Mixpanel product.
- You will not be able to set the user’s Organization Role and Project access within Okta.
- Use the same name for the Group in Okta as the Team in Mixpanel.
- In the Mixpanel Team, set the Organization Role and access to projects for the group of users.
- You will not be able to provision Organization Role and Project access for the Group within Okta.
Configuration Setup
- Click the Configure API Integration button in Okta to begin.

- Check the Enable API Integration box, then enter your SCIM token.

- The following profile attributes are required to be sent from Okta to Mixpanel:
- Username
- Given name
- Family name
- Primary email

- Select and assign the users you wish to provision:

Troubleshooting
- If a Mixpanel account has already been created with the Okta user’s email (their Okta Username) and that account is not a member of your Mixpanel organization, provisioning setup for that Okta user will fail. To resolve this, manually invite the existing user to your organization.
- 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.
Configuring Universal Logout
Mixpanel supports Okta’s Universal Logout, which lets an Okta Admin trigger a logout from Okta that propagates to Mixpanel. This functionality is available after enabling SSO.OIN App
If you use the Mixpanel app within the OIN (Okta’s app store), enable it by updating the Mixpanel application in the Okta Admin Console:- Log in to your organization’s Okta Admin Console.
- Select Applications from the Applications drop-down list in the left navigation drawer.
- Select the Mixpanel app.
- Activate the Authentication or Sign On tab.
- Click Edit in the Logout section.
- Select the Okta system or admin initiates logout checkbox.
- Click Save.
Custom Apps
If you created a custom app, configure Universal Logout using the Global Token Revocation endpoint:- Log in to your organization’s Okta Admin Console.
- Select Applications from the Applications drop-down list in the left navigation drawer.
- Select your custom Mixpanel app.
- Activate the General tab.
- In the Logout section, click Edit.
- Under Global Token Revocation, select Okta system or admin initiates logout.
- In the Logout endpoint URL field, enter
https://platform-us.mixpanel.com/v1/global-token-revocation. - Set Endpoint authentication type to Signed JWT.
- For Subject format type, select Email Identifier.
- Click Save.