Docs > Ontology and knowledge graph
Sources and data scopes
# Sources and data scopes Connecting an app to Dex does not automatically index everything in that app or expose it to your teammates. You control **what syncs**, **where mapped records live**, **who sees your observations**, and **whether provider permissions restrict visibility**. ## Supported context-indexing sources Ten integrations sync directly into Dex's Zeta Datasets and ontology mappings: | Integration | Selection control | Provider permission inheritance | | --- | --- | --- | | **Slack** | Channel selection (empty selection indexes nothing); supports org-owned workspace bot setup | Yes — channel reader lists carry over to mapped records and observations | | **Notion** | Page/database selection (empty selection indexes nothing) | Yes — page/database reader lists carry over | | **Gmail** | Label/mailbox selection (empty selection indexes nothing); supports thread context windows | Personal account boundary | | **Google Calendar** | Calendar selection (empty selection indexes nothing) | Personal account boundary | | **GitHub** | Repository selection (empty selection indexes nothing) | Personal account boundary | | **Google Chat** | Space/channel selection (empty selection indexes nothing) | Personal account boundary | | **Lark** | Chat/channel selection (empty selection indexes nothing) | Personal account boundary | | **Attio** | Fixed-reach workspace/account sync | Account/output Data Scope | | **Google Drive** | Fixed-reach authorized drive sync | Account/output Data Scope | | **Dropbox** | Fixed-reach authorized Dropbox sync | Account/output Data Scope | :::note For selectable connectors (Slack, Notion, Gmail, Calendar, GitHub, Google Chat, Lark), an empty selection indexes **nothing**. Configure the channels, labels, calendars, repositories, or pages you want synced in **Connectors** (`/nexus/connectors/[integration]`). ::: ## Data Scopes Every Object record in the knowledge graph belongs to one **Data Scope** (ownership location): | Data Scope | Identifier pattern | Who can read and write by default | | --- | --- | --- | | **Personal** | `dex:user:<user-id>` | Only you (default destination when creating manual records unless `--scope` is passed) | | **Space** | `dex:space:<space-id>` | Members of that workspace Space (managed in `/nexus/settings/spaces`, backed by WorkOS groups) | | **Workspace** | `dex:org:<workspace-id>` | Members of the organization workspace | You can also grant fine-grained per-record `read` or `write` access through the Record Access dialog in Nexus or location-level data scope permissions. ### Data Scopes vs. Access Scopes Do not confuse **Data Scopes** with **Access Scopes**: - **Data Scopes** control **where knowledge graph records live and who can read/write them**. - **[Access Scopes](/agents/tools-and-approvals/#access-scopes)** (`/nexus/scopes`) control **which connected integration tools an agent or coordinator run may call**. ## Contributing shared records vs. keeping them personal When a workspace ontology is active, each user decides per connected source account whether mapped records produced from that account merge into the shared **workspace** Data Scope or stay **private** (`dex:user:<id>`): ```bash # List connected source accounts and their current sharing mode dex zeta sources list # Contribute mapped records from an account to the workspace (or keep private) dex zeta sources sharing set --account <account-id> --workspace dex zeta sources sharing set --account <account-id> --private ``` Understand what this setting changes—and what it never changes: - **Changes:** Where mapped Object records (such as `person` or `company` fields) merge. - **Does not change:** Access to raw Dataset rows, your OAuth credentials, or your [observations](/context/records-and-timeline/#sharing-observations) (sharing synced activities and manual notes is an independent choice). Manage these settings in `/nexus/settings/data-model` (**Sync** tab) or via CLI from your own interactive chat (never from a scoped automation or shared channel). ## Provider resource permission inheritance For collaborative tools like **Slack** and **Notion**, Dex tracks which workspace members have access to each underlying channel or page (`resource_reader`). Records and observations derived from those inheriting sources carry the intersection of authorized readers (`__readers`), enforced directly by Postgres row-level security. If a teammate is not in a private Slack channel or does not have access to a restricted Notion page, records and observations sourced exclusively from that channel or page stay hidden from them—in Nexus, in `dex zeta` queries, and in Agent SQL. ## Raw Datasets vs. mapped Objects Raw **Datasets** (such as synced Gmail messages or Slack rows) are strictly read-only and isolated from mapped Object sharing. Sharing a mapped `company` record, a saved View, or an observation **never** grants another user access to the raw source rows behind it or to the provider connection that synced them. ## Related pages - [Ontology](/context/ontology/) - Binding source accounts to Object mappings - [Records, observations, and timeline](/context/records-and-timeline/) - Sharing observations by Object type or View - [Knowledge graph](/context/knowledge-graph/) - How RLS applies across Nexus and Agent SQL - [Connect and manage integrations](/integrations/connect-and-manage/) - Authorizing personal and organization connectorsControl which integrations sync into Dex's knowledge graph, where records live across personal, Space, and workspace Data Scopes, and how source permissions carry over.
Connecting an app to Dex does not automatically index everything in that app or expose it to your teammates. You control what syncs, where mapped records live, who sees your observations, and whether provider permissions restrict visibility.
Supported context-indexing sources
Section titled “Supported context-indexing sources”Ten integrations sync directly into Dex’s Zeta Datasets and ontology mappings:
| Integration | Selection control | Provider permission inheritance |
|---|---|---|
| Slack | Channel selection (empty selection indexes nothing); supports org-owned workspace bot setup | Yes — channel reader lists carry over to mapped records and observations |
| Notion | Page/database selection (empty selection indexes nothing) | Yes — page/database reader lists carry over |
| Gmail | Label/mailbox selection (empty selection indexes nothing); supports thread context windows | Personal account boundary |
| Google Calendar | Calendar selection (empty selection indexes nothing) | Personal account boundary |
| GitHub | Repository selection (empty selection indexes nothing) | Personal account boundary |
| Google Chat | Space/channel selection (empty selection indexes nothing) | Personal account boundary |
| Lark | Chat/channel selection (empty selection indexes nothing) | Personal account boundary |
| Attio | Fixed-reach workspace/account sync | Account/output Data Scope |
| Google Drive | Fixed-reach authorized drive sync | Account/output Data Scope |
| Dropbox | Fixed-reach authorized Dropbox sync | Account/output Data Scope |
Data Scopes
Section titled “Data Scopes”Every Object record in the knowledge graph belongs to one Data Scope (ownership location):
| Data Scope | Identifier pattern | Who can read and write by default |
|---|---|---|
| Personal | dex:user:<user-id> | Only you (default destination when creating manual records unless --scope is passed) |
| Space | dex:space:<space-id> | Members of that workspace Space (managed in /nexus/settings/spaces, backed by WorkOS groups) |
| Workspace | dex:org:<workspace-id> | Members of the organization workspace |
You can also grant fine-grained per-record read or write access through the Record Access dialog in Nexus or location-level data scope permissions.
Data Scopes vs. Access Scopes
Section titled “Data Scopes vs. Access Scopes”Do not confuse Data Scopes with Access Scopes:
- Data Scopes control where knowledge graph records live and who can read/write them.
- Access Scopes (
/nexus/scopes) control which connected integration tools an agent or coordinator run may call.
Contributing shared records vs. keeping them personal
Section titled “Contributing shared records vs. keeping them personal”When a workspace ontology is active, each user decides per connected source account whether mapped records produced from that account merge into the shared workspace Data Scope or stay private (dex:user:<id>):
# List connected source accounts and their current sharing modedex zeta sources list
# Contribute mapped records from an account to the workspace (or keep private)dex zeta sources sharing set --account <account-id> --workspacedex zeta sources sharing set --account <account-id> --privateUnderstand what this setting changes—and what it never changes:
- Changes: Where mapped Object records (such as
personorcompanyfields) merge. - Does not change: Access to raw Dataset rows, your OAuth credentials, or your observations (sharing synced activities and manual notes is an independent choice).
Manage these settings in /nexus/settings/data-model (Sync tab) or via CLI from your own interactive chat (never from a scoped automation or shared channel).
Provider resource permission inheritance
Section titled “Provider resource permission inheritance”For collaborative tools like Slack and Notion, Dex tracks which workspace members have access to each underlying channel or page (resource_reader). Records and observations derived from those inheriting sources carry the intersection of authorized readers (__readers), enforced directly by Postgres row-level security.
If a teammate is not in a private Slack channel or does not have access to a restricted Notion page, records and observations sourced exclusively from that channel or page stay hidden from them—in Nexus, in dex zeta queries, and in Agent SQL.
Raw Datasets vs. mapped Objects
Section titled “Raw Datasets vs. mapped Objects”Raw Datasets (such as synced Gmail messages or Slack rows) are strictly read-only and isolated from mapped Object sharing. Sharing a mapped company record, a saved View, or an observation never grants another user access to the raw source rows behind it or to the provider connection that synced them.
Related pages
Section titled “Related pages”- Ontology - Binding source accounts to Object mappings
- Records, observations, and timeline - Sharing observations by Object type or View
- Knowledge graph - How RLS applies across Nexus and Agent SQL
- Connect and manage integrations - Authorizing personal and organization connectors