You will learn

Learn how to set up single sign-on (SSO) for your Klaviyo account or portfolio using an identity provider (IdP).

Why use SSO?

Single sign-on (SSO) helps protect you, as well as your customers, by making your account more secure. If you have SSO set up for your business, you can require your Klaviyo users to log in using their SSO credentials.

Plus, if you use SSO for your organization, you and your users can remain logged in to Klaviyo for a longer period of time before re-entering your credentials.

Before you begin

We strongly suggest reaching out to your company’s IT department to help you set this up because there are certain steps you will need to take within your company’s identity provider. If needed, you can temporarily make them an admin in your account to set up SSO.

Please note:

  • You must have a paid plan to use SSO in an account. SSO is also available for portfolios, without a separate paid-plan requirement.
  • To follow these steps, sign in as an Owner or Admin for an account, or a Portfolio Owner or Portfolio Admin for a portfolio.
  • Users can start SSO from Klaviyo using their workplace ID or custom SSO URL. To let users start from their IdP, turn on IdP initiated log in.

If you use identity provider (IdP) single sign-on (SSO), you can use this to log in to Klaviyo. Security assertion markup language 2.0 (SAML 2.0) SSO gives members access to Klaviyo through an IdP of your choice.

Examples of IdP SSO providers include Okta, OneLogin, Microsoft Entra ID, and more.

If you enforce SSO for all users, any new user will need to accept the invitation and then log in using SSO.

View and use the exemption list

Users added to the exemption list will be able to bypass SSO and log in with a username and password when SSO is enforced for a company. This is important if there is an IdP outage or when you do not want to add a partner, contractor, or agency member to your IdP instance.

You can view the exemption list once SSO is set up. Go to Settings > Security, then under User exemption list, click Set up List or Manage List.

What is a workplace ID?

Also called the SSO login identifier, the workplace ID is required to set up SAML SSO in Klaviyo. It is usually the same name as your company. You'll create this ID in step 3 of the SSO configuration page, described under Finish setup in Klaviyo below.

After setting up a workplace ID, users can go directly to your company's custom URL (e.g., www.klaviyo.com/sso/workplace/<id>) to log in to Klaviyo. We recommend telling users to bookmark this URL to speed up the login process.

Tips for creating a workplace ID:

  • The ID must be unique and 3–63 characters long.
  • The ID can contain only upper- or lowercase letters, numbers, hyphens (-), and underscores (_).
  • The ID should be simple and easy for users to remember (such as your company name).
    • For example, Klaviyo’s workplace ID is “Klaviyo.”

About just-in-time (JIT) provisioning

Just-in-time (JIT) provisioning is enabled when you first save a new SSO configuration. You can turn it off in Settings > Security. When a user is added to an account with JIT provisioning, the user will need to accept the invite in their email to start accessing the account.

When SSO and JIT provisioning are on, manage the user's Klaviyo role in your IdP. Users on the exemption list can still have their roles changed in Klaviyo, and the Owner can still transfer ownership in Klaviyo. For other users, changing roles in Klaviyo requires turning off JIT and, if enabled, SCIM. If you turn JIT back on, the role sent by your IdP can update the user's role again at their next SSO login.

What is JIT?

When JIT provisioning is enabled, IT admins no longer need to create accounts manually for each user in each of their applications. Instead, user accounts are created the first time users try to log in to an application, as long as the user has permission for that app.

For instance, IT admins can automatically grant Klaviyo access to all users in their IdP so that those users' accounts will automatically be created the first time they log in to Klaviyo via their SSO portal or through Klaviyo-initiated login.

Set up SAML SSO

  1. In Klaviyo, click your organization name in the bottom left corner.
  2. Click Settings.
  3. Select Security.
  4. Click Set up SSO. (Note that multi-factor authentication is not required.)
Security tab in Klaviyo
Security tab in Klaviyo
  1. Copy the Klaviyo SSO URL and Audience URI (Service Provider Entity ID) for use in the next section.
Top of the SSO configuration page, where you copy the Klaviyo SSO URL and audience URI
Top of the SSO configuration page, where you copy the Klaviyo SSO URL and audience URI

Log in to your SSO provider

Open the dropdowns below for IdP-specific instructions. For current provider navigation, see Okta’s SAML app integration guide or Microsoft’s SAML SSO guide. In general, you will need to:

  1. Open a new tab and log in to your SSO provider.
  2. Find the SAML configuration settings for your provider.
  3. Paste in both the Klaviyo SSO URL and Audience URI (Service Provider Entity ID) in the corresponding fields, then save.
  4. Download or locate your IdP’s metadata.
  5. Assign users and their roles to the Klaviyo app, including the person who will test SSO.
    • To create users with JIT provisioning, configure your IdP to send a SAML attribute named role with the appropriate Klaviyo role key below. We recommend using the key format because some IdPs convert attributes to lowercase, so the label format is not recommended.

Account user roles

Portfolio user roles

owner

portfolio_owner

admin

portfolio_admin

manager

portfolio_manager

analyst

portfolio_analyst

campaign_coordinator

content_creator

support

The roles depend on the type of account where you're setting up SSO. In a normal account, only account user roles are applicable. In a portfolio account, only portfolio user roles are applicable.

Use owner or portfolio_owner only for the existing Owner. JIT provisioning cannot create an Owner or transfer ownership. Transfer ownership in Klaviyo instead.

Okta
  1. Log in to your Okta admin account.
  2. Navigate to Applications and Resources > Applications.
  3. Select Create App Integration, then Classic experience.
Applications page in Okta, where you can create app integration
Applications page in Okta, where you can create app integration
  1. In the modal, select the option for SAML 2.0.
Sign-in options when SAML 2.0 is selected
Sign-in options when SAML 2.0 is selected
  1. Click Next.
  2. Name the integration (e.g., “Klaviyo”).
Step 1 of the Okta integration wizard, where you can name the app
Step 1 of the Okta integration wizard, where you can name the app
  1. Click Next.
  2. In the Single sign-on URL field, paste in the Klaviyo SSO URL from the Klaviyo SSO setup screen.
  3. In the Audience URI (SP Entity ID) field, paste the Audience URI (Service Provider Entity ID) from Klaviyo.
  4. Set the Name ID format field to EmailAddress.
  5. Change the Application username to Email.
  6. Check that the Update application username on is set to Create and update.
SAML configuration settings to for the Klaviyo integration
SAML configuration settings to for the Klaviyo integration
  1. Click Next.
  2. Select I’m an Okta customer adding an internal app.
  3. Scroll to the bottom of the page and click Finish.
  4. Go to the Sign On tab.
Sign On tab for an app in Okta
Sign On tab for an app in Okta
  1. Scroll down to the SAML Signing Certificates section.
  2. Find an active certificate and then click the Actions dropdown.
  3. Click View IdP metadata.
Actions dropdown when View IdP metadata is selected
Actions dropdown when View IdP metadata is selected
  1. A new tab will open that should look like the one below.
Example of the XML metadata page
Example of the XML metadata page
  1. In the new tab, right click and select Save as > Save so that you can upload this file to Klaviyo later.
  2. Navigate back to Okta.
  3. Go to the Assignments tab.
  4. Click Assign.
  5. Choose whether to assign the app to an individual (i.e., people) or to a group.
Options to assign users to an app by people or groups
Options to assign users to an app by people or groups
  1. Find the people or groups you want to assign Klaviyo to, and click Assign next to their name(s).
Example of assigning a user by the People option
Example of assigning a user by the People option
  1. If you’re selecting individuals:
    • Choose the username for each individual; the default is their username in Okta.
    • Click Save and go back.
Modal to assign a username to an individual
Modal to assign a username to an individual
  1. When you are finished, click Done.
One Login
  1. Log in to your One Login account.
  2. Navigate to Applications > Applications.
Applications dropdown when the subitem Applications is highlighted
Applications dropdown when the subitem Applications is highlighted
  1. Click Add App in the upper right corner.
Applications page in One Login when Add App is selected
Applications page in One Login when Add App is selected
  1. Search for “Klaviyo” and then select the result that appears.
Searching Klaviyo in the One Login apps
Searching Klaviyo in the One Login apps
  1. Optional: choose the display name, upload a new icon, or add a description for this app.
  2. Click Save in the upper right.
  3. Navigate to Configuration in the left sidebar.
Configuration page with no information in it
Configuration page with no information in it
  1. In the SAML Consumer URL field, paste your Klaviyo SSO URL.
  2. In the Audience (SP EntityID) field, paste your Audience URI (Service Provider Entity ID).
  3. Click Save.
  4. Click SSO in the left sidebar.
  5. Open the SAML Signature Algorithm dropdown.
  6. Select SHA-256.
SAML Signature Algorithm dropdown when SHA-256 is highlighted
SAML Signature Algorithm dropdown when SHA-256 is highlighted
  1. Optional: scroll down to change your login display settings.
Login display settings for an app in One Login
Login display settings for an app in One Login
  1. Click Save.
  2. Open the More Actions dropdown in the upper right.
  3. Select SAML Metadata. This will download the file you need to upload in the next section.
More Actions dropdown when SAML metadata is highlighted
More Actions dropdown when SAML metadata is highlighted

Before moving on to the next section, you need to add users to the Klaviyo app in One Login and then assign their roles.

  1. To add users to the Klaviyo app, click Users > Users in the upper left.
Users menu dropdown
Users menu dropdown
  1. Select a user to access Klaviyo. We recommend assigning the person who is setting up SSO in Klaviyo.
  2. Select Applications in the left sidebar.
  3. Click the plus button on the right side to add an application to this user.
  4. Select Klaviyo from the dropdown.
Selecting Klaviyo as the application for a user
Selecting Klaviyo as the application for a user
  1. Click Continue.
  2. In the resulting modal, scroll down to the role dropdown.
  3. Open this dropdown and select the Klaviyo role this user should be assigned.
Selecting a Klaviyo role for a user
Selecting a Klaviyo role for a user
  1. Click Save.
Microsoft Entra ID (Azure AD)
  1. Log in to Microsoft Entra ID (formerly known as Azure AD).
  2. Click Microsoft Entra ID.
  3. Select the Add dropdown and then click Enterprise Application.
  4. Click Create your own application.
Microsoft Entra ID Gallery, where you can create an application
Microsoft Entra ID Gallery, where you can create an application
  1. Name the application “Klaviyo,” then click Create.
  2. Click Single sign-on in the left sidebar.
Single sign-on method page for an application, which defaults to disabled
Single sign-on method page for an application, which defaults to disabled
  1. Select SAML.
  2. Click Edit in the Basic SAML Configuration box.
Basic SAML configuration box, step 1 in the single sign-on page
Basic SAML configuration box, step 1 in the single sign-on page
  1. In the right sidebar that appears, click Add identifier under Identifier (Entity ID).
Sidebar to configure SAML for an application's SSO
Sidebar to configure SAML for an application's SSO
  1. In the field that appears, paste in the Audience URI (Service Provider Entity ID) from Klaviyo.
  2. Under Reply URL (Assertion Consumer Service URL), click Add reply URL.
  3. Here, paste the Klaviyo SSO URL from Klaviyo.
Example of SAML configuration after adding an identifier and Reply URL
Example of SAML configuration after adding an identifier and Reply URL
  1. Note: if you want to add in a Sign on URL, you must first create a workplace ID, which is discussed in the next section. We recommend finishing the setup process and then coming back to this step.
  2. Click Save in the top left corner of the sidebar before clicking the X in the upper right.
  3. Scroll down to the SAML Certificates box (step 3 on the Single sign-on page in Entra).
Step 3 of the Single sign-on page
Step 3 of the Single sign-on page
  1. Next to Federation Metadata XML, click Download.
SAML certificates box where only the Federated Metadata XML option is highlighted
SAML certificates box where only the Federated Metadata XML option is highlighted
  1. Still within the SAML Certificates box, click Edit in the upper right.
  2. In the sidebar that appears on the right, check that the:
    • Signing Option requires that the SAML assertion be signed (here, we set it to Sign SAML assertion). Note that signing the response is optional.
    • Signing Algorithm is set to SHA-256.
Sidebar to edit the SAML certificates' signing option and algorithm
Sidebar to edit the SAML certificates' signing option and algorithm
  1. Scroll back up to the Attributes & Claims box (step 2 on Single sign-on page in Entra) and click Edit.
Step 2 of the Single sign-on page, which is the Attributes and claims box
Step 2 of the Single sign-on page, which is the Attributes and claims box
  1. Click Unique User Identifier (Name ID) in the Required Claim section.
Manage claim modal where the Unique User Identifier row is highlighted
Manage claim modal where the Unique User Identifier row is highlighted
  1. Click the Source attribute dropdown.
Source attribute field for the unique user identifier
Source attribute field for the unique user identifier
  1. Search for “user.mail” and then select it.
Searching user.mail for the source attribute
Searching user.mail for the source attribute
  1. Click Save in the upper left corner to go back to the Attributes & Claims page.
  2. Select Add new claim in the upper left.
Adding new claim in the Attributes & Claim page
Adding new claim in the Attributes & Claim page
  1. Enter “role” for the name.
  2. Change the Source attribute to "user.assignedroles."
Azure 14 new role claim.png
Azure 14 new role claim.png
  1. Click Save.
  2. Click Home to go back to the directory.
  3. In the left sidebar, click App registrations.
App registrations tab in the left sidebar
App registrations tab in the left sidebar
  1. Go to the All applications tab.
All applications tab in the app registrations page
All applications tab in the app registrations page
  1. Click into the Klaviyo app.
  2. Select App roles > Create app role.
Create app role in the app roles page
Create app role in the app roles page
  1. Create the display name for each role.
  2. Select Users/Groups as the Allowed member types.
  3. For an account, assign one of the non-owner role values below exactly as shown. For a portfolio, use portfolio_admin, portfolio_manager, or portfolio_analyst instead. For the existing Owner, use owner or portfolio_owner as appropriate.
    • admin
    • manager
    • analyst
    • campaign_coordinator
    • content_creator
    • support
Example of assigning a user as the owner of a Klaviyo account
Example of assigning a user as the owner of a Klaviyo account
  1. Add a description, then click Apply.

Then, to assign users to the Klaviyo app, follow these steps:

  1. Navigate to Microsoft Entra ID > Enterprise applications.
  2. Click the Klaviyo app.
  3. Navigate to Users and groups > Add user/group.
Users and groups page for the example Klaviyo application
Users and groups page for the example Klaviyo application
  1. Click into Users to populate the right sidebar.
Selecting users for an app
Selecting users for an app
  1. Select the user(s) you want to add to the Klaviyo app.
  2. Click Select.
  3. Click into Select a role.
Assigning roles for the selected users
Assigning roles for the selected users
  1. Choose the role this user should have in Klaviyo.
  2. Click Select to confirm the role.
  3. Click Assign in the bottom left.

Finish setup in Klaviyo

  1. Navigate back to your Klaviyo tab to the Set up single-sign on (SSO) page.
  2. Choose to either:
    • Enter your IdP Issuer, IdP SSO URL, and IdP certificate manually.
    • Upload your IdP’s metadata file (.xml) to fill in these fields.
Second step of the SSO configuration page, where you add information about your iDP issuer
Second step of the SSO configuration page, where you add information about your iDP issuer
  1. Create your SSO Login identifier (Workplace ID); often, this is the same name as your company.
    • The ID must be unique and 3–63 characters long.
    • The ID can contain only upper- or lowercase letters, numbers, hyphens (-), and underscores (_).
    • The ID should be simple and easy for users to remember (such as your company name).
      • For example, Klaviyo’s workplace ID is “Klaviyo.”
Third step of the SSO configuration page, where you add your workplace ID
Third step of the SSO configuration page, where you add your workplace ID
  1. Click Test SSO and complete the sign-in through your IdP. This saves your configuration and enables SSO.
  2. When the test succeeds, click Continue to return to Security. If it fails, correct the reported error and test again before proceeding.
  3. Confirm that Enable SSO is selected. This allows SSO login but does not require it.
  4. Review the following settings. Changes save automatically. Turning a setting off opens a confirmation where you click Disable.
    • Require SSO for all users: require SSO login for users who are not on the exemption list.
    • IdP initiated log in: allow users to start SSO from their IdP’s dashboard or browser extension.
    • Just-in-time (JIT) provisioning: create users and update their roles through the IdP when they log in with SSO. This is enabled for new configurations. If you turn it off, add users to Klaviyo before they try to log in.
Options for using SSO once it's been set up
Options for using SSO once it's been set up

Outcome

Now you'll be able to log in to Klaviyo using your SSO provider.

Additional resources

  • Troubleshoot SSO and SCIM errors

    Learn how to troubleshoot errors for single sign-on (SSO) with Klaviyo. This article is meant for those familiar with SSO, such as IT professionals.

  • How to set up multi-factor authentication (MFA)

    Learn how to set up multi-factor authentication (MFA) to help make your Klaviyo account or portfolio more secure. With MFA enabled, you sign in using a username and password, then verify your identity (such as by entering a code).

  • How to set up SCIM user provisioning

    Learn how to set up a system for cross-domain identity management (SCIM) user provisioning in an account or portfolio.

Was this article helpful?
Use this form only for article feedback. Learn how to contact support.

Explore more from Klaviyo

Community
Connect with peers, partners, and Klaviyo experts to find inspiration, share insights, and get answers to all of your questions.
Partners
Hire a Klaviyo-certified expert to help you with a specific task, or for ongoing marketing management.
Support

Access support through your account.

Email support (free trial and paid accounts) Available 24/7

Chat/virtual assistance
Availability varies by location and plan type