Skip to main content

Affinity setup

This page describes how to install and configure the Affinity connector. Setup takes place in both Affinity and the Glean Admin Console, and it has two parts: a one-time workspace authorization performed by an admin, and a per-user authorization completed by each end user.

To set up the Affinity connector:

Requirements

To use the Affinity connector, you need the following:

  • A Glean deployment where the Affinity connector has been enabled.
  • Access to the Glean Admin Console with permission to add new connectors.
  • An Affinity workspace where:
    • Affinity Support has greenlisted the central Glean OAuth client for your workspace.
    • At least one admin user who can complete workspace‑level OAuth with Glean.
    • End users can complete per‑user OAuth as needed for opportunities and lists.

Step 1: Admin setup (workspace authorization)

Workspace‑level setup is performed by a Glean admin.

  1. In the Glean Admin Console, go to Connectors > Add connector and select Affinity.
  2. Enter your Affinity workspace details as prompted.
  3. Click Authorize and complete the Affinity OAuth flow using an appropriate admin account. This grants Glean access to workspace‑wide Contacts (People) and Companies (Organizations).
  4. Save the connector configuration.

After this step, Affinity Contacts and Companies will begin crawling based on the configured crawl schedule.

Step 2: Per-user OAuth (end-user authorization)

For Opportunities and Lists, each Affinity user who needs access must complete an additional OAuth step:

  • Each user authenticates with Affinity via the Glean interface (per‑user OAuth flow).
  • Once a user has completed this OAuth flow:
    • Glean enqueues crawls for that user’s Opportunities and Lists.
    • Those items become visible to that user in Glean, subject to Affinity’s list‑based permissions.

Admin setup alone is sufficient for Contacts and Companies; per‑user OAuth is specifically required for private or user‑scoped Opportunities and Lists.

Advanced configuration (by Glean)

The following advanced configurations can be performed by Glean:

Crawl frequency tuning

Glean can tune the full crawl frequency for each Affinity object type (People, Companies/Organizations, Lists, Opportunities, schemas, and token refresh) via internal configuration, expressed in seconds.

This allows, for example, more frequent crawls of Opportunities relative to Lists or People if needed for deal workflows.

Field selection and custom fields

For supported objects, the connector distinguishes between:

  • Basic fields – the default set of fields that are always fetched for the object (for example, name, email, title, and location for People).
  • Additional fields – supplemental fields that can be added per customer (for example, custom properties on Contacts, Companies, or Lists).

Key behaviors:

  • Field lists are defined using the exact field names from the customer’s Affinity instance (including spaces and case), and are case‑sensitive.
  • By default, only the predefined basic fields are enabled; the additional‑fields list starts empty.
  • To add custom fields, customers must work with Glean (Solutions Architects / Support). There is currently no self‑serve UI for adding new Affinity fields directly.

FAQs

See also