# Restrict to Companies-Only Data

If your compliance or privacy policies require no PII exiting HubSpot, you can configure HubSpot and Primer to view **Companies only**. Primer will then use company-level data (like website domain, industry, and location) and enrich it with our own contact graph to power audiences — without pulling in HubSpot contacts.

***

#### Why Companies-Only Sync?

* **Compliance:** No HubSpot contact PII leaves your system.
* **Control:** You decide if Primer sees contacts or just company accounts.
* **Coverage:** Primer can still build audiences from companies by resolving contacts via our data graph.

{% hint style="info" %}
HubSpot does **not** currently allow full restriction of contact visibility for users—there is no "None" option for contacts, and users will always see their own contacts. In addition, currently, HubSpot **does not support fully hiding a property from certain users**. While you can restrict users' ability to **edit** certain properties via field-level permissions, all users who have access to the record will be able to **view** the properties
{% endhint %}

***

#### Step 1. Create a Dedicated Integration User in HubSpot

1. In HubSpot, go to **Settings → Users & Teams → Create user**.
2. Put in your email+primerintegration (e.g. <keith+primerintegration@primer.com>)
3. Assign permissions:

   * **Contacts:** View = Contacts they own. Make sure "Unassigned" remains unchecked.<br>

     <figure><img src="/files/lIykbSvAQZil7lvg5mwU" alt=""><figcaption></figcaption></figure>
   * **All Other Objects:** View = All&#x20;

   <figure><img src="/files/ui4Yi3HLljLrWVCIHL0o" alt=""><figcaption></figcaption></figure>

   * **Marketing:** On for Lists and Forms

   <figure><img src="/files/rNe9GSLtG7fJEQUOh1pT" alt=""><figcaption></figcaption></figure>

   * Account Settings Access: On for App Marketplace installations

   <figure><img src="/files/S1btqaCxZU9dhdMWFERN" alt=""><figcaption></figcaption></figure>

   *

**This ensures the user can connect to Primer but cannont access or export Contacts at all as they will not have any Contacts assigned to them.**

***

#### Step 2. Connect HubSpot to Primer Using This User

1. In Primer, go to **Connections → Add HubSpot**.
2. Choose **Log in with HubSpot (OAuth)**.
3. Authenticate with your *Primer Integration (Companies Only)* user.
4. Primer will detect that this user has **Company-level permissions only** and complete the connection.

***

#### Step 3. Build Audiences Without HubSpot Contacts

* Primer will ingest your **HubSpot Companies** (with fields like domain, industry, employee count, HQ country).
* Use those company attributes as the foundation for audiences.
* Primer enriches companies with our own contacts database for targeting on ad platforms (LinkedIn, Meta, Google, etc.).
* Suppression or inclusion of existing HubSpot contacts is not available in this mode (since Primer doesn’t see them).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.sayprimer.com/primer/connections/setting-up-crm/hubspot-integration/restrict-to-companies-only-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
