{"componentChunkName":"component---src-templates-markdown-template-jsx","path":"/guides/data-warehouse/composable-audiences/connections/snowflake/","result":{"data":{"pageMetadata":{"title":"Snowflake","path":"/guides/data-warehouse/composable-audiences/connections/snowflake/","sourceCode":null,"metadataParent":{"title":"Connections","path":"/guides/data-warehouse/composable-audiences/connections/","sourceCode":null,"hasVersionPicker":null,"metadataChildren":[{"title":"Connections Overview","path":"/guides/data-warehouse/composable-audiences/connections/overview/","order":1,"label":null},{"title":"Google BigQuery","path":"/guides/data-warehouse/composable-audiences/connections/bigquery/","order":2,"label":null},{"title":"Databricks","path":"/guides/data-warehouse/composable-audiences/connections/databricks/","order":3,"label":null},{"title":"Amazon Redshift","path":"/guides/data-warehouse/composable-audiences/connections/redshift/","order":4,"label":null},{"title":"Snowflake","path":"/guides/data-warehouse/composable-audiences/connections/snowflake/","order":5,"label":null}],"metadataParent":{"title":"Composable Audiences","path":"/guides/data-warehouse/composable-audiences/","metadataChildren":[{"title":"Warehouse Setup Overview","path":"/guides/data-warehouse/composable-audiences/overview/","order":0.5,"label":null},{"title":"Connections","path":"/guides/data-warehouse/composable-audiences/connections/","order":1,"label":null},{"title":"Data Models","path":"/guides/data-warehouse/composable-audiences/data-models/","order":2,"label":null}],"metadataParent":{"title":"Data Warehouse","path":"/guides/data-warehouse/","metadataChildren":[{"title":"Composable Audiences","path":"/guides/data-warehouse/composable-audiences/","order":1,"label":null},{"title":"Warehouse Sync","path":"/guides/data-warehouse/warehouse-sync/","order":4,"label":null}],"metadataParent":{"title":"Guides","path":"/guides/","metadataChildren":[{"title":"Platform Overview","path":"/guides/platform-overview/","order":0.5,"label":null},{"title":"Getting Started","path":"/guides/getting-started/","order":1,"label":null},{"title":"mParticle Agent","path":"/guides/mparticle-agent/","order":1.5,"label":null},{"title":"Oversight","path":"/guides/oversight/","order":2,"label":null},{"title":"Data Platform","path":"/guides/data-platform/","order":3,"label":null},{"title":"Data Warehouse","path":"/guides/data-warehouse/","order":4,"label":null},{"title":"Customer 360","path":"/guides/customer-360/","order":5,"label":null},{"title":"Analytics","path":"/guides/analytics/","order":6,"label":null},{"title":"Audiences","path":"/guides/audiences/","order":7,"label":null},{"title":"Settings","path":"/guides/settings/","order":8,"label":null},{"title":"Troubleshooting mParticle","path":"/guides/troubleshooting/","order":10,"label":null},{"title":"Default Service Limits","path":"/guides/default-service-limits/","order":11,"label":null},{"title":"Glossary","path":"/guides/glossary/","order":12,"label":null}],"metadataParent":null}}}}},"markdownRemark":{"html":"<p>This guide explains how to connect your Snowflake data warehouse to mParticle for Composable Audiences. The setup process is interactive: as you enter values in the mParticle UI form, the SQL snippets on the right-hand side will update. You’ll copy those snippets and run them in Snowflake to configure the necessary resources.</p>\n<p><strong>What you’ll need:</strong></p>\n<ul>\n<li>Administrative access to your Snowflake account.</li>\n</ul>\n<p><strong>What you’ll accomplish:</strong><br>\nA configured connection that allows mParticle to securely query your Snowflake warehouse to build and manage Composable Audiences.</p>\n<h2 id=\"step-1-begin-creating-the-connection-in-mparticle\" style=\"position:relative;\"><a href=\"#step-1-begin-creating-the-connection-in-mparticle\" aria-label=\"step 1 begin creating the connection in mparticle permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Step 1: Begin creating the connection in mParticle</h2>\n<ol>\n<li>In the mParticle UI, go to <strong>Data Warehouse > Connections</strong>.</li>\n<li>Click <strong>+ Add Connection</strong> and select <strong>Snowflake</strong>.</li>\n<li>\n<p>Enter the required fields:</p>\n<ul>\n<li><strong>Connection Name</strong>: A descriptive name for the connection so your team can identify it later.</li>\n<li><strong>Account Identifier</strong>: The unique identifier for your Snowflake account. This usually looks like <code class=\"language-text\">&lt;organization&gt;-&lt;account&gt;</code> (for example, <code class=\"language-text\">acme-org-account123</code>).</li>\n<li><strong>Region</strong>: The Snowflake region where your account is hosted (for example, <code class=\"language-text\">us-east-1</code>).</li>\n<li><strong>Warehouse</strong>: The name of the Snowflake virtual warehouse that mParticle will use to run queries.</li>\n<li><strong>Database</strong>: The name of the Snowflake database that contains the schemas and tables you want to query.</li>\n<li><strong>Role</strong>: The Snowflake role associated with the service user you will create for mParticle. This role must have the necessary privileges on the MPARTICLE schema and on your source data schemas/tables.</li>\n</ul>\n</li>\n</ol>\n<p>As you enter these values, the <strong>SQL snippets on the right-hand side</strong> will update to include your account-specific details.</p>\n<h2 id=\"step-2-apply-the-generated-sql-snippets-in-snowflake\" style=\"position:relative;\"><a href=\"#step-2-apply-the-generated-sql-snippets-in-snowflake\" aria-label=\"step 2 apply the generated sql snippets in snowflake permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Step 2: Apply the generated SQL snippets in Snowflake</h2>\n<p>Follow the steps shown in the mParticle UI. For each one, copy the SQL and run it in your Snowflake worksheet, making sure that each placeholder is replaced with the appropriate value for your account:</p>\n<ol>\n<li><strong>Create a service user and role</strong><br>\nDefine a new service user dedicated to mParticle, along with a role. See <a href=\"https://docs.snowflake.com/en/user-guide/admin-user-management\">Snowflake user management</a> for more info.</li>\n<li><strong>Configure storage integration and access</strong><br>\nRun the SQL provided to create a storage integration. </li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"sql\"><pre style=\"counter-reset: linenumber NaN\" class=\"language-sql line-numbers\"><code class=\"language-sql\"><span class=\"token comment\">-- Create storage integration</span>\n<span class=\"token keyword\">CREATE</span> <span class=\"token operator\">OR</span> <span class=\"token keyword\">REPLACE</span> STORAGE INTEGRATION mp_st1_1_1_s3\n    <span class=\"token keyword\">WITH</span> <span class=\"token keyword\">TYPE</span> <span class=\"token operator\">=</span> EXTERNAL_STAGE\n    STORAGE_PROVIDER <span class=\"token operator\">=</span> <span class=\"token string\">'S3'</span>\n    ENABLED <span class=\"token operator\">=</span> <span class=\"token boolean\">TRUE</span>\n    STORAGE_AWS_ROLE_ARN <span class=\"token operator\">=</span> <span class=\"token string\">\"arn:aws:iam::154561493631:role/ingest-pipeline-data-external-1-1\"</span>\n    STORAGE_AWS_OBJECT_ACL <span class=\"token operator\">=</span> <span class=\"token string\">\"bucket-owner-full-control\"</span>\n    STORAGE_ALLOWED_LOCATIONS <span class=\"token operator\">=</span> <span class=\"token punctuation\">(</span><span class=\"token string\">\"s3://st1-ingest-pipeline-data/1/1\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">USAGE</span> <span class=\"token keyword\">ON</span> INTEGRATION mp_st1_1_1_s3 <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span></code><span aria-hidden=\"true\" class=\"line-numbers-rows\" style=\"white-space: normal; width: auto; left: 0;\"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></div>\n<ol start=\"3\">\n<li><strong>Grant access to the warehouse</strong>\nRun the SQL provided to grant mParticle access to your Snowflake warehouse.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"sql\"><pre style=\"counter-reset: linenumber NaN\" class=\"language-sql line-numbers\"><code class=\"language-sql\"><span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">USAGE</span> <span class=\"token keyword\">ON</span> WAREHOUSE <span class=\"token string\">\"[your_warehouse]\"</span> <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span></code><span aria-hidden=\"true\" class=\"line-numbers-rows\" style=\"white-space: normal; width: auto; left: 0;\"><span></span></span></pre></div>\n<ol start=\"4\">\n<li><strong>Grant access to the schema</strong>\nRun the SQL provided to grant access to your warehouse’s schema.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"sql\"><pre style=\"counter-reset: linenumber NaN\" class=\"language-sql line-numbers\"><code class=\"language-sql\"><span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">USAGE</span> <span class=\"token keyword\">ON</span> <span class=\"token keyword\">SCHEMA</span> <span class=\"token string\">\"[your_database]\"</span><span class=\"token punctuation\">.</span><span class=\"token string\">\"[your schema]\"</span> <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span></code><span aria-hidden=\"true\" class=\"line-numbers-rows\" style=\"white-space: normal; width: auto; left: 0;\"><span></span></span></pre></div>\n<ol start=\"5\">\n<li><strong>Grant read access to tables</strong>\nRun the SQL provided to grant mParticle read access to the tables in your warehouse.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"sql\"><pre style=\"counter-reset: linenumber NaN\" class=\"language-sql line-numbers\"><code class=\"language-sql\"><span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">SELECT</span> <span class=\"token keyword\">ON</span> <span class=\"token keyword\">TABLE</span> <span class=\"token string\">\"[your_database]\"</span><span class=\"token punctuation\">.</span><span class=\"token string\">\"[your schema]\"</span><span class=\"token punctuation\">.</span><span class=\"token string\">\"[your table]\"</span> <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span></code><span aria-hidden=\"true\" class=\"line-numbers-rows\" style=\"white-space: normal; width: auto; left: 0;\"><span></span></span></pre></div>\n<ol start=\"6\">\n<li><strong>Grant write access to mParticle schema</strong>\nAudiences requires a dedicated schema named MPARTICLE to store temporary data and intermediate results. Run the provided SQL to create and grant the necessary access to the MPARTICLE schema.</li>\n</ol>\n<div class=\"gatsby-highlight\" data-language=\"sql\"><pre style=\"counter-reset: linenumber NaN\" class=\"language-sql line-numbers\"><code class=\"language-sql\"><span class=\"token keyword\">CREATE</span> <span class=\"token keyword\">SCHEMA</span> <span class=\"token keyword\">IF</span> <span class=\"token operator\">NOT</span> <span class=\"token keyword\">EXISTS</span> <span class=\"token string\">\"MPARTICLE\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">USAGE</span> <span class=\"token keyword\">ON</span> <span class=\"token keyword\">SCHEMA</span> <span class=\"token string\">\"MPARTICLE\"</span> <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span>\n<span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">CREATE</span> <span class=\"token keyword\">TABLE</span> <span class=\"token keyword\">ON</span> <span class=\"token keyword\">SCHEMA</span> <span class=\"token string\">\"MPARTICLE\"</span> <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token comment\">-- Grant full table-level DML access within the schema</span>\n<span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">SELECT</span><span class=\"token punctuation\">,</span> <span class=\"token keyword\">INSERT</span><span class=\"token punctuation\">,</span> <span class=\"token keyword\">UPDATE</span><span class=\"token punctuation\">,</span> <span class=\"token keyword\">DELETE</span> <span class=\"token keyword\">ON</span> <span class=\"token keyword\">ALL</span> <span class=\"token keyword\">TABLES</span> <span class=\"token operator\">IN</span> <span class=\"token keyword\">SCHEMA</span> <span class=\"token string\">\"MPARTICLE\"</span> <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span>\n\n<span class=\"token comment\">-- Ensure future tables are also accessible</span>\n<span class=\"token keyword\">GRANT</span> <span class=\"token keyword\">SELECT</span><span class=\"token punctuation\">,</span> <span class=\"token keyword\">INSERT</span><span class=\"token punctuation\">,</span> <span class=\"token keyword\">UPDATE</span><span class=\"token punctuation\">,</span> <span class=\"token keyword\">DELETE</span> <span class=\"token keyword\">ON</span> FUTURE <span class=\"token keyword\">TABLES</span> <span class=\"token operator\">IN</span> <span class=\"token keyword\">SCHEMA</span> <span class=\"token string\">\"MPARTICLE\"</span> <span class=\"token keyword\">TO</span> ROLE <span class=\"token string\">\"[your_role]\"</span><span class=\"token punctuation\">;</span></code><span aria-hidden=\"true\" class=\"line-numbers-rows\" style=\"white-space: normal; width: auto; left: 0;\"><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span><span></span></span></pre></div>\n<h2 id=\"step-3-complete-the-connection-in-mparticle\" style=\"position:relative;\"><a href=\"#step-3-complete-the-connection-in-mparticle\" aria-label=\"step 3 complete the connection in mparticle permalink\" class=\"anchor before\"><svg width=\"16px\" height=\"17px\" viewBox=\"0 0 16 17\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n                <g id=\"Symbols\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n                    <g id=\"Icon/Link\" fill=\"#98A0A3\" fill-rule=\"nonzero\">\n                        <g id=\"link\">\n                            <path d=\"M9.5,12.4 C9.6,12.4 9.7,12.4 9.9,12.4 C9.8,12.5 9.8,12.5 9.7,12.6 L7.5,14.8 C5.8,16.5 3,16.5 1.3,14.8 C-0.4,13.1 -0.4,10.3 1.3,8.6 L3.5,6.4 C3.6,6.3 3.6,6.3 3.7,6.2 C5,5 6.9,4.8 8.4,5.5 C8.8,5.7 9.3,6 9.6,6.4 C10,6.7 10.2,7.2 10.5,7.6 C10.2,7.9 9.9,8 9.5,8 C9.4,8 9.2,8 9.1,7.9 C8.9,7.5 8.5,7.2 8.1,6.9 C7,6.2 5.5,6.4 4.5,7.3 L3.8,8 L2.3,9.5 C1.2,10.6 1.2,12.5 2.3,13.6 C3.4,14.7 5.3,14.7 6.4,13.6 L7.9,12.1 C8.4,12.3 8.9,12.4 9.5,12.4 Z M14.7,1.3 C13,-0.4 10.2,-0.4 8.5,1.3 L6.3,3.5 C6.2,3.6 6.2,3.6 6.1,3.7 C6.7,3.7 7.4,3.7 8,3.9 L9.5,2.4 C10.6,1.3 12.5,1.3 13.6,2.4 C14.7,3.5 14.7,5.4 13.6,6.5 L12.1,8 L11.4,8.7 C10.4,9.7 8.9,9.8 7.8,9.1 C7.4,8.9 7.1,8.5 6.8,8.1 C6.7,8.1 6.5,8 6.4,8 C6,8 5.6,8.2 5.4,8.4 C5.6,8.8 5.9,9.3 6.3,9.6 C6.6,10 7.1,10.2 7.5,10.5 C9,11.2 10.9,11 12.3,9.8 C12.4,9.7 12.4,9.7 12.5,9.6 L14.7,7.4 C16.4,5.7 16.4,3 14.7,1.3 Z\" id=\"Shape\"></path>\n                        </g>\n                    </g>\n                </g>\n            </svg></a>Step 3: Complete the connection in mParticle</h2>\n<ol>\n<li>Return to the mParticle UI.</li>\n<li>Confirm the values you entered, and enter any that were created as a result of completing Step 2.</li>\n<li>Click <strong>Create Connection</strong>.</li>\n</ol>\n<aside class=\"note\">\nAlways use the SQL snippets provided in the mParticle UI, as they include environment-specific details like IAM role ARNs, bucket paths, and account IDs.\n</aside>","frontmatter":{"title":"Snowflake","order":5,"seoTitle":null,"seoDescription":null},"parent":{"__typename":"File","modifiedTime":"October 12, 2026"}}},"pageContext":{"slug":"/guides/data-warehouse/composable-audiences/connections/snowflake/"}},"staticQueryHashes":["2950460867"]}