Snowflake integration guide
Snowflake is a cloud data warehousing solution, where you as a partner can store your data and integrate with the EUID framework. Using Snowflake, EUID enables you to securely share consumer identifier data without exposing sensitive personal data. Even though you have the option to query the Operator Web Services directly for the consumer identifier data, the Snowflake EUID integration offers a more seamless experience.
This document is for those using the latest Snowflake marketplace listing. If you're using an earlier version, see Snowflake integration guide (pre-July 2025). If you're using the earlier implementation, we recommend that you migrate to the newer version to take advantage of the updates and enhancements: for details, see Changes from previous version. For migration information, see Migration guide.
Snowflake marketplace listing
The following listing for EUID is available on the Snowflake Marketplace:
For a summary of all integration options and steps for advertisers and data providers, see Advertiser/data provider integration overview.
Functionality
The following table summarizes the functionality available with the EUID Snowflake integration.
| Encrypt raw EUID to EUID token | Decrypt EUID token to raw EUID | Generate EUID token from personal data | Refresh EUID token | Map personal data to raw EUID |
|---|---|---|---|---|
| — | — | — | —* | ✅ |
*You cannot use Snowflake to generate an EUID token directly from personal data. However, you can convert personal data to a raw EUID, and then encrypt the raw EUID into an EUID token.
Changes from previous version
The July 2025 update to the EUID Snowflake Marketplace integration introduces a new identity mapping function that simplifies EUID refresh management and allows accessing previous raw EUIDs for 90 days after rotation.
These changes assume that your code integration uses the version of Snowflake functions published before July 2025: see Snowflake integration guide (pre-July 2025). For details on migrating to this version, see Migration guide.
The following table shows the differences between the old and new identity mapping functions.
| Function | Version | Return fields | Key differences | Comments |
|---|---|---|---|---|
FN_T_IDENTITY_MAP | Previous | UID, BUCKET_ID, UNMAPPED | Basic identity mapping with salt bucket tracking | Legacy function using salt bucket monitoring for refresh management. For details, see Snowflake integration guide (pre-July 2025). |
FN_T_IDENTITY_MAP_V3 | Current | UID, PREV_UID, REFRESH_FROM, UNMAPPED | Enhanced with previous EUID access and refresh timestamps | Returns previous EUID for 90 days after rotation and uses refresh timestamps instead of salt bucket monitoring. For details, see Map personal data. |
Key benefits
This update provides two major benefits:
- Simplified Refresh Management: You can monitor for EUIDs reaching
REFRESH_FROMtimestamps instead of polling salt buckets for rotation. - Previous EUID Access: You have access to previous raw EUIDs for 90 days after rotation for campaign measurement.
Workflow diagram
The following diagram and table illustrate the different parts of the EUID integration process in Snowflake, and the workflow.

| Partner Snowflake account | EUID Snowflake account | EUID core opt-out cloud setup |
|---|---|---|
| As a partner, you set up a Snowflake account to host your data and engage in EUID integration by consuming functions and views through the EUID Share. | EUID integration, hosted in a Snowflake account, grants you access to authorized functions and views that draw data from private tables. You can't access the private tables. The EUID Share reveals only essential data needed for you to perform EUID-related tasks. NOTE: We store salts and encryption keys in the private tables. No personal data is stored at any point. | ETL (Extract Transform Load) jobs constantly update the EUID Core/Optout Snowflake storage with internal data that powers the EUID Operator Web Services. The data used by the Operator Web Services is also available through the EUID Share. |
| When you use shared functions and views, you pay Snowflake for transactional computation costs. | These private tables, secured in the EUID Snowflake account, automatically synchronize with the EUID Core/Optout Snowflake storage that holds internal data used to complete EUID-related tasks. |
Preparing personal data for processing
It's critical that the input data, which you are converting to EUID, is in an acceptable format. If it isn't, you won't get the expected results. For example, you must normalize phone numbers to include the country code, as explained in Phone number normalization.
For details, see Preparing emails and phone numbers for processing.
To validate the full token generation pipeline end to end, confirming that tokens generated from your normalized, hashed, and encoded values are correct, use the EUID Token Validator.
Summary of integration steps
To be able to request data, you must use the ACCOUNTADMIN role or another role with the CREATE DATABASE and IMPORT SHARE privileges in your Snowflake account.
The following list summarizes the integration steps for EUID mapping in Snowflake in the production environment:
If you want to try out an integration before using the production environment, see Testing in the integ environment.
-
Make sure that the EUID POC paperwork is signed with your EUID contact. If you're not sure who to ask, see Contact info.
-
Request access to the EUID share:
-
Request access through the Snowflake marketplace listing. In your request, include your Snowflake account number and the region.
-
Let your EUID contact know that you've requested access.
-
-
Your EUID contact arranges for your Snowflake account to be provisioned with access to the EUID mapping share.
If you did any initial testing (see Testing in the integ environment), be sure to update the functions to reflect the production EUID share, along with your own relevant table names.
Testing in the integ environment
If you'd like to test the mapping share before signing an EUID POC, you can ask your EUID contact for access to the Snowflake share in the integ (integration) environment. This environment is for testing only, and has no production data. In the request, be sure to include your account number and region.
In this scenario, the following steps occur:
-
Your EUID contact provisions the share listing in the Snowflake Private Marketplace, and lets you know when this step is complete.
-
You can then view the Private Marketplace listing and request access to the integ share.
-
When you've requested access, your EUID contact provisions the integ share to your account.
Shared objects
You can map personal data to EUIDs by using the following function:
FN_T_IDENTITY_MAP_V3(for details, see Map personal data)
The following function is deprecated in favor of FN_T_IDENTITY_MAP_V3. You can still use it if you are on the previous Snowflake version (see Snowflake integration guide (pre-July 2025)), but we recommend upgrading as soon as possible:
FN_T_IDENTITY_MAP(deprecated)
If you are using the deprecated function, and need help migrating to the newer function, see Migration guide.
To identify the EUIDs that you must regenerate, monitor the REFRESH_FROM timestamps returned by the FN_T_IDENTITY_MAP_V3 function. For details, see Monitor raw EUID refresh and regenerate raw EUIDs.
Database and schema names
The following sections include query examples for each solution, which are identical except for the database and schema name variables:
{DATABASE_NAME}.{SCHEMA_NAME}
For example:
select UID, PREV_UID, REFRESH_FROM, UNMAPPED from table({DATABASE_NAME}.{SCHEMA_NAME}.FN_T_IDENTITY_MAP_V3('validate@example.com', 'email'));
All query examples use the following default values for each name variable:
| Variable | Default value | Comments |
|---|---|---|
{DATABASE_NAME} | EUID_PROD_UID_SH | If needed, you can change the default database name when creating a new database after you are granted access to the selected EUID Share. |
{SCHEMA_NAME} | UID | This is an immutable name. |
Map personal data
To map all types of personal data, use the FN_T_IDENTITY_MAP_V3 function.
If the personal data is an email address, the service normalizes the data using the EUID Email address normalization rules.
If the personal data is a phone number, you must normalize it before sending it to the service, using the EUID Phone number normalization rules.
| Argument | Data type | Description |
|---|---|---|
INPUT | varchar(256) | The personal data to map to the EUID, refresh timestamp and previous EUID for 90 days after rotation. |
INPUT_TYPE | varchar(256) | The type of personal data to map. Allowed values: email, email_hash, phone, and phone_hash. |
A successful query returns the following information for the specified personal data.
| Column name | Data type | Description |
|---|---|---|
UID | TEXT | The value is one of the following:
|
PREV_UID | TEXT | The value is one of the following:
|
REFRESH_FROM | NUMBER | The value is one of the following:
|
UNMAPPED | TEXT | The value is one of the following:
|
Values for the UNMAPPED column
The following table shows possible values for the UNMAPPED column.
| Value | Meaning |
|---|---|
NULL | The personal data was successfully mapped. |
OPTOUT | The user has opted out. |
INVALID IDENTIFIER | The email address or phone number is invalid. |
INVALID INPUT TYPE | The value of INPUT_TYPE is invalid. Valid values for INPUT_TYPE are: email, email_hash, phone, phone_hash. |
Examples
Mapping request examples in this section:
- Single unhashed email
- Multiple unhashed emails
- Single unhashed phone number
- Multiple unhashed phone numbers
- Single hashed email
- Multiple hashed emails
- Single hashed phone number
- Multiple hashed phone numbers
The input and output data in these examples is fictitious, for illustrative purposes only. The values provided are not real values.