> ## Documentation Index
> Fetch the complete documentation index at: https://developer.affinity.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Connect Your Account

> Connect your Snowflake or Databricks account to Affinity Data Share

## Prerequisites

Before you begin, make sure you have:

* **Admin access** in your Affinity organization (required to manage integrations)
* A **Snowflake** or **Databricks** account
* Your platform **account identifier** (covered in the steps below)

<Tabs>
  <Tab title="Snowflake">
    ## Connect Your Snowflake Account

    <Steps>
      <Step title="Open the Snowflake integration">
        In Affinity, go to **Settings** → **Integrations** → **Snowflake** → **Affinity Data to Snowflake**.

        Click **Add New Configuration**.

        <img src="https://mintcdn.com/affinityco/ff3lpKlq-jOgcqdr/images/data-share/setup-step1-add-config.png?fit=max&auto=format&n=ff3lpKlq-jOgcqdr&q=85&s=d4d7324de049536770cedb0b36c2524b" alt="Affinity Data to Snowflake page showing the Add New Configuration button" width="1280" height="769" data-path="images/data-share/setup-step1-add-config.png" />
      </Step>

      <Step title="Find your Snowflake Account Identifier">
        In Snowflake, locate your account identifier by:

        1. Clicking your **user profile** at the bottom-left of the Snowflake UI
        2. Selecting **Account** → **View account details**
        3. Copying the **data sharing account identifier**

        The identifier follows the format `ORG_NAME.ACCOUNT_NAME`.
      </Step>

      <Step title="Enter and verify your identifier">
        Paste your account identifier into the **Snowflake Account Identifier** field.

        The form will automatically parse it and display your **Organization Name** and **Account Name**
        in the verification panel. Confirm these match your Snowflake instance before continuing.

        <img src="https://mintcdn.com/affinityco/ff3lpKlq-jOgcqdr/images/data-share/setup-step2-config-form.png?fit=max&auto=format&n=ff3lpKlq-jOgcqdr&q=85&s=6691979f68439266bce6601406610b98" alt="Configuration form showing the account identifier field and verification panel" width="1280" height="1000" data-path="images/data-share/setup-step2-config-form.png" />
      </Step>

      <Step title="Confirm and connect">
        Check the confirmation box to acknowledge that the integration will grant access to all data
        in your Affinity workspace.

        Click **Connect to Snowflake** to save the configuration.
      </Step>
    </Steps>

    ## What Happens Next

    Once connected, Affinity will initiate the data share to your Snowflake account. This process
    typically completes within a few minutes. Account admins on your Snowflake account will receive an
    email notifying them that a private listing has been shared. You can also access listings directly
    in your Snowflake account — see Snowflake's [consumer listing access documentation](https://docs.snowflake.com/en/collaboration/consumer-listings-access#accessing-listings-on-the-sf-marketplace) for details.

    <Note>
      See [Data Access](/pages/data-share/data_access) for important information about visibility
      and access controls within the share.
    </Note>
  </Tab>

  <Tab title="Databricks (Beta)">
    ## Connect Your Databricks Account

    <Steps>
      <Step title="Find your Databricks Sharing Identifier">
        In Databricks, locate your sharing identifier (Unity Catalog metastore ID) by:

        1. Opening your Databricks workspace
        2. Clicking the **Catalog** icon in the left sidebar
        3. Clicking the **gear icon** at the top of the Catalog page to open metastore settings
        4. Copying the identifier shown in metastore settings

        The identifier follows the format `<cloud>:<region>:<uuid>`, for example
        `aws:us-west-2:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`.

        <Note>
          You must have access to a Databricks workspace that is enabled for Unity Catalog. Contact
          your Databricks workspace administrator if you are unsure.
        </Note>
      </Step>

      <Step title="Open the Databricks integration">
        In Affinity, go to **Settings** → **Integrations** → **Databricks** → **Affinity Data to Databricks**.

        Click **Add New Configuration**.

        <Note>
          If you do not see the Databricks tile on the **Integrations** page or the integration is
          not available to you, reach out to your Affinity Customer Success Manager.
        </Note>

        <img src="https://mintcdn.com/affinityco/W7WaCF16P8emw2XI/images/data-share/setup-databricks-step1-add-config.png?fit=max&auto=format&n=W7WaCF16P8emw2XI&q=85&s=316ca8d9e05e76988d9b85ec8de8069b" alt="Affinity Data to Databricks page showing the empty state and the Add New Configuration button" width="2000" height="931" data-path="images/data-share/setup-databricks-step1-add-config.png" />
      </Step>

      <Step title="Enter your Sharing Identifier">
        Paste your sharing identifier into the **Databricks Sharing Identifier** field.

        Confirm the identifier matches your Databricks sharing identifier before continuing.

        <img src="https://mintcdn.com/affinityco/W7WaCF16P8emw2XI/images/data-share/setup-databricks-config-form.png?fit=max&auto=format&n=W7WaCF16P8emw2XI&q=85&s=21d83f7d9841426af2cd7ba7a6f26efb" alt="Affinity Data to Databricks configuration form with the Databricks Sharing Identifier field and the Cloud, Region, and Sharing ID verification panel" width="1766" height="1484" data-path="images/data-share/setup-databricks-config-form.png" />
      </Step>

      <Step title="Confirm and connect">
        Check the confirmation box to acknowledge that the integration will grant access to all data
        in your Affinity workspace.

        Click **Connect to Databricks** to save the configuration.
      </Step>
    </Steps>

    ## What Happens Next

    Once connected, Affinity will initiate the Delta Share to your Databricks metastore. A
    privileged user in your Databricks workspace (metastore admin, or someone with `CREATE CATALOG`
    and `USE PROVIDER` privileges) will then need to mount the share as a catalog:

    1. In Databricks, open **Catalog** → click the **gear icon** → select **Delta Sharing**
    2. On the **Shared with me** tab, locate the Affinity provider
    3. Find the share and click **Mount to catalog**
    4. Enter a catalog name and click **Create**

    Once mounted, grant your team members access to the catalog following standard Unity Catalog
    privilege hierarchy. See Databricks' read shared data documentation for
    [AWS](https://docs.databricks.com/aws/en/opensharing/read-data-databricks),
    [Azure](https://learn.microsoft.com/en-us/azure/databricks/opensharing/read-data-databricks),
    and [GCP](https://docs.databricks.com/gcp/en/opensharing/read-data-databricks) for full
    details.

    <Note>
      See [Data Access](/pages/data-share/data_access) for important information about visibility
      and access controls within the share.
    </Note>
  </Tab>
</Tabs>
