Sync Filters Configuration Guide
Learn how to configure sync filters to control which data gets synchronized from your source systems into your Onna collections.
Overview
Sync Filters are the mechanism used to control which data gets synchronized from your source systems into your Onna collections. They allow you to specify exactly what content to include or exclude during the collection process, enabling you to:
- Select specific users, folders, channels, or other entities
- Exclude unwanted content from synchronization
- Configure automatic inclusion of future content
- Fine-tune data collection based on your organization's needs
Common Sync Filter Fields
Most sync filters use these common fields:
Core Fields
| Field | Type | Description |
|---|---|---|
all_selected | Boolean | If true, includes all available items. When false, uses selected/excluded arrays |
selected | Array | List of specific items to include (when all_selected is false) |
excluded | Array | List of specific items to exclude (when all_selected is true) |
Optional Fields
| Field | Type | Description |
|---|---|---|
sync_future | Boolean | Whether to automatically include future items |
filter_type | String | Categorizes the type of filter (for example, "user_folders") |
filter_name | String | Human-readable name for the filter |
Box Enterprise
Box Enterprise sync filters control which folders and files are synchronized for each user account.
Configuration Structure
{
"user_id": {
"all_selected": boolean,
"selected": [{"id": "folder_id", "recursive": boolean}],
"excluded": [{"id": "folder_id"}],
"filter_type": "user_folders",
"filter_name": "User folders",
"include_trash": boolean
}
}
Field Details
| Field | Type | Required | Description |
|---|---|---|---|
all_selected | Boolean | Yes | If true, syncs all folders for the user |
selected | Array | Conditional | Specific folders to sync (required when all_selected is false) |
excluded | Array | No | Folders to exclude from sync |
filter_type | String | Yes | Must be "user_folders" |
filter_name | String | Yes | Must be "User folders" |
include_trash | Boolean | No | Whether to include deleted files in sync |
Folder Object Structure
For both selected and excluded arrays:
{
"id": "folder_id",
"recursive": true
}
| Field | Description |
|---|---|
id | Box folder ID or "0" for root folder |
recursive | Whether to include sub-folders |
Box Enterprise Examples
Sync All Folders for a User
{
"sync_filters": {
"12345": {
"all_selected": true,
"selected": [],
"excluded": [],
"filter_type": "user_folders",
"filter_name": "User folders",
"include_trash": false
}
}
}
Sync Specific Folders Only
{
"sync_filters": {
"12345": {
"all_selected": false,
"selected": [
{"id": "67890", "recursive": true},
{"id": "11111", "recursive": false}
],
"excluded": [],
"filter_type": "user_folders",
"filter_name": "User folders",
"include_trash": true
}
}
}
Sync All Except Specific Folders
{
"sync_filters": {
"12345": {
"all_selected": true,
"selected": [],
"excluded": [
{"id": "99999"},
{"id": "88888"}
],
"filter_type": "user_folders",
"filter_name": "User folders"
}
}
}
Slack Enterprise
Slack Enterprise sync filters control which teams, channels, users (custodians), and conversation types are synchronized.
Configuration Structure
Slack filters use a multi-level structure with different configuration blocks:
{
"types": {
"selected": [{"id": "public"}, {"id": "private"}, {"id": "mpim"}, {"id":"im"}]
},
"teams": {
"all_selected": boolean,
"sync_future": boolean,
"selected": [{"id": "team_id"}],
"excluded": [{"id": "team_id"}]
},
"custodians": {
"all_selected": boolean,
"sync_future": boolean,
"selected": [
{
"id": "user_id",
"conversations": {
"all_selected": boolean,
"sync_future": boolean,
"selected": [{"id": "channel_id", "team_id": "team_id"}],
"excluded": [{"id": "channel_id", "team_id": "team_id"}]
}
}
]
}
}
Field Details
Types Configuration
| Field | Type | Required | Description |
|---|---|---|---|
selected | Array | Yes | Content types to sync: "public", "private", "mpim", "im" |
Teams Configuration
| Field | Type | Required | Description |
|---|---|---|---|
all_selected | Boolean | Yes | If true, syncs all teams |
sync_future | Boolean | No | Whether to include future teams |
selected | Array | Conditional | Specific teams to sync (when all_selected is false) |
excluded | Array | No | Teams to exclude from sync |
Custodians (Users) Configuration
| Field | Type | Required | Description |
|---|---|---|---|
all_selected | Boolean | Yes | If true, syncs all users |
sync_future | Boolean | No | Whether to include future users |
selected | Array | Conditional | Specific users to sync with their conversation settings |
Additional Configuration Options
| Field | Type | Required | Description |
|---|---|---|---|
collect_root_files | Object | No | Configuration for List and Canvas content collection |
collect_root_files.all_selected | Boolean | No | Whether to collect all root file types |
collect_root_files.selected | Array | No | Specific file types to collect ("list", "canvas") |
collect_links | Object | No | Configuration for modern attachment collection |
collect_links.all_selected | Boolean | No | Whether to collect all link types |
collect_links.selected | Array | No | Specific link types to collect ("gdrive") |
attached_wallet_entries_uuids | Array | No | UUIDs of wallet entries for external service authentication |
List and Canvas Integration: Enables collection of Slack Lists and Canvas content alongside traditional conversations.
Modern Attachments: Collect attachments from shared documents when available, including Google Drive files and other external attachments linked in Slack conversations.
Slack Enterprise Examples
Sync All Content with List/Canvas and Modern Attachments
{
"sync_filters": {
"types": {
"selected": [{"id": "public"}, {"id": "private"}, {"id": "mpim"}, {"id": "im"}]
},
"teams": {
"all_selected": true,
"sync_future": true,
"selected": [],
"excluded": []
},
"custodians": {
"all_selected": true,
"sync_future": true,
"selected": []
},
"collect_root_files": {
"all_selected": false,
"selected": [
{
"id": "list",
"all_selected": true
},
{
"id": "canvas",
"all_selected": true
}
]
},
"collect_links": {
"all_selected": false,
"selected": [
{
"id": "gdrive"
}
]
},
"attached_wallet_entries_uuids": [
"297cbac055ee4ad7b6d0b518315a1016"
]
}
}
Sync Specific Teams and Users
{
"sync_filters": {
"types": {
"selected": [{"id": "public"}, {"id": "private"}, {"id": "mpim"}, {"id": "im"}]
},
"teams": {
"all_selected": false,
"sync_future": false,
"selected": [{"id": "T1234567890"}, {"id": "T0987654321"}],
"excluded": []
},
"custodians": {
"all_selected": false,
"sync_future": false,
"selected": [
{
"id": "U1234567890",
"conversations": {
"all_selected": true,
"sync_future": false,
"selected": [],
"excluded": []
}
}
]
}
}
}
Exclude Specific Channels for a User
{
"sync_filters": {
"types": {
"selected": [{"id": "public"}]
},
"custodians": {
"all_selected": false,
"selected": [
{
"id": "U1234567890",
"conversations": {
"all_selected": true,
"excluded": [
{"id": "C9876543210", "team_id": "T1234567890"},
{"id": "C1111111111", "team_id": "T1234567890"}
]
}
}
]
}
}
}
Google Workspace
Google Workspace sync filters control which users, team drives, and content types are synchronized from Google services including Gmail and Google Drive.
Configuration Structure
{
"users": {
"filter_type": "users",
"all_selected": boolean,
"selected": [{"id": "user_email"}],
"excluded": [{"id": "user_email"}]
},
"team_drives": {
"filter_type": "team_drives",
"all_selected": boolean,
"selected": [{"id": "drive_id", "recursive": boolean}],
"excluded": [{"id": "drive_id"}]
},
"vault": {
"include_deleted_content": boolean,
"products": ["GMailDatasource", "GDriveEDatasource"]
},
"user_email": {
"folders": {
"filter_type": "folders",
"all_selected": boolean,
"selected": [{"id": "folder_id", "recursive": boolean}],
"excluded": [{"id": "folder_id"}]
},
"shared_folders": {
"filter_type": "shared_folders",
"all_selected": boolean,
"selected": [{"id": "folder_id", "recursive": boolean}],
"excluded": [{"id": "folder_id"}]
}
}
}
Field Details
Users Configuration
| Field | Type | Required | Description |
|---|---|---|---|
filter_type | String | Yes | Must be "users" |
all_selected | Boolean | Yes | If true, syncs all users |
selected | Array | Conditional | Specific users to sync (when all_selected is false) |
excluded | Array | No | Users to exclude from sync |
Team Drives Configuration
| Field | Type | Required | Description |
|---|---|---|---|
filter_type | String | Yes | Must be "team_drives" |
all_selected | Boolean | Yes | If true, syncs all team drives |
selected | Array | Conditional | Specific drives to sync with recursion setting |
excluded | Array | No | Drives to exclude from sync |
recursive | Boolean | No | Whether to include sub-folders |
Vault Configuration
| Field | Type | Required | Description |
|---|---|---|---|
include_deleted_content | Boolean | No | Whether to include deleted items |
products | Array | No | Google services to sync ("GMailDatasource", "GDriveEDatasource") |
Per-User Folder Configuration
| Field | Type | Required | Description |
|---|---|---|---|
folders | Object | No | User's personal folder configuration |
shared_folders | Object | No | Shared folder configuration for user |
filter_type | String | Yes | "folders" or "shared_folders" |
recursive | Boolean | No | Whether to include sub-folders |
Google Workspace Examples
Sync Specific User with Team Drives and Folders
{
"sync_filters": {
"users": {
"filter_type": "users",
"selected": [
{
"id": "antonio@onnatesting.com"
}
],
"excluded": [],
"all_selected": false
},
"team_drives": {
"filter_type": "team_drives",
"selected": [
{
"id": "0AA-9gXVunuWNUk9PVA",
"recursive": true
}
],
"excluded": [],
"all_selected": false
},
"vault": {
"include_deleted_content": true,
"products": [
"GMailDatasource",
"GDriveEDatasource"
]
},
"antonio@onnatesting.com": {
"folders": {
"filter_type": "folders",
"selected": [
{
"id": "1kRDAY4_3bKl0tQvKFIBakLhol2Rhqc1k",
"recursive": true
},
{
"id": "root",
"recursive": false
}
],
"excluded": [],
"all_selected": true
},
"shared_folders": {
"filter_type": "shared_folders",
"selected": [
{
"id": "1RJAid6ORlQGPEYUiVYhboXdcoTjAhZ9h",
"recursive": true
}
],
"excluded": [],
"all_selected": true
}
}
}
}
Sync All Users with Specific Team Drives
{
"sync_filters": {
"users": {
"filter_type": "users",
"all_selected": true,
"selected": [],
"excluded": []
},
"team_drives": {
"filter_type": "team_drives",
"selected": [
{
"id": "drive_123",
"recursive": true
}
],
"excluded": [],
"all_selected": false
},
"vault": {
"include_deleted_content": false,
"products": [
"GDriveEDatasource"
]
}
}
}
Key Points:
- User keys are email addresses
- Each user can have separate folder and shared folder configurations
- Team drives support recursive folder inclusion
- Vault configuration controls deleted content and service types
- Use
"root"as folder ID for user's root Google Drive folder - Folder IDs are Google Drive folder identifiers
Reference: Google Workspace Integration Guide
Office 365 (Outlook Enterprise)
Office 365 sync filters control which users' email data is synchronized and can include specific folder or marker configurations.
Each user reference (user_id) must be the user's Microsoft directory object ID (a GUID), not their email address. Use the
id returned by the collection's /users endpoint, both inside users.selected/users.excluded and as the per-user marker key.
Email-format values are silently skipped and result in an empty collection.
Configuration Structure
{
"users": {
"all_selected": boolean,
"selected": [{"id": "user_id"}],
"excluded": [{"id": "user_id"}]
},
"user_id": {
"markers": {
"all_selected": boolean,
"excluded": [{"id": "folder_name"}]
}
}
}
Field Details
| Field | Type | Required | Description |
|---|---|---|---|
users | Object | Yes | User selection configuration |
markers | Object | No | Email folder/marker filtering (per user) |
collect_links | Object | No | Configuration for modern attachment collection |
collect_links.all_selected | Boolean | No | Whether to collect all link types |
collect_links.selected | Array | No | Specific link types to collect ("onedrive") |
Marker Filtering: Use markers to exclude unwanted folders such as "JunkEmail" (spam) and "DeletedItems" (trash) from synchronization.
Modern Attachments: Collect attachments from linked OneDrive documents when available in email conversations.
Office 365 Examples
Sync All Users
{
"sync_filters": {
"users": {
"all_selected": true,
"selected": [],
"excluded": []
}
}
}
Sync Specific Users, Exclude Spam/Trash
{
"sync_filters": {
"users": {
"all_selected": false,
"selected": [{"id": "f8a9c3b1-1234-4abc-9def-0987654321ab"}, {"id": "d4c7b8e2-5678-4fff-aaaa-1122334455cc"}],
"excluded": []
},
"f8a9c3b1-1234-4abc-9def-0987654321ab": {
"markers": {
"all_selected": true,
"excluded": [
{"id": "JunkEmail"},
{"id": "DeletedItems"}
]
},
"collect_links": {
"all_selected": false,
"selected": [
{"id": "onedrive"}
]
}
},
"d4c7b8e2-5678-4fff-aaaa-1122334455cc": {
"markers": {
"all_selected": true,
"excluded": [
{"id": "JunkEmail"},
{"id": "DeletedItems"}
]
},
"collect_links": {
"all_selected": false,
"selected": [
{"id": "onedrive"}
]
}
}
}
}
Sync All Users with Modern Attachments Only
{
"sync_filters": {
"users": {
"all_selected": true,
"selected": [],
"excluded": []
},
"collect_links": {
"all_selected": false,
"selected": [
{"id": "onedrive"}
]
}
}
}
OneDrive Enterprise
OneDrive Enterprise sync filters control which folders are synchronized for each user.
Each top-level key in the sync_filters object is a user's id (from the /users endpoint),
and its value configures which folders to sync for that user.
Configuration Structure
{
"user_id": {
"all_selected": boolean,
"selected": [{"id": "folder_id"}],
"excluded": [{"id": "folder_id"}],
"filter_type": "user_folders",
"filter_name": "User onedrive"
}
}
Field Details
Per-user key (keyed by user id from the /users endpoint):
| Field | Type | Required | Description |
|---|---|---|---|
all_selected | Boolean | Yes | If true, syncs all folders for the user |
selected | Array | Conditional | Specific folders to sync (required when all_selected is false) |
excluded | Array | No | Folders to exclude from sync |
filter_type | String | Yes | Must be "user_folders" |
filter_name | String | Yes | Display name for the filter (for example, "User onedrive") |
OneDrive Enterprise Examples
Sync All Folders for a User
{
"sync_filters": {
"f8a9c3b1-1234-4abc-9def-0987654321ab": {
"all_selected": true,
"selected": [],
"excluded": [],
"filter_type": "user_folders",
"filter_name": "User onedrive"
}
}
}
Sync Specific Folders for a User
{
"sync_filters": {
"f8a9c3b1-1234-4abc-9def-0987654321ab": {
"all_selected": false,
"selected": [
{"id": "01BYE5RZ5NQXWVBK2MXNBJIQN4FKDRFH55"},
{"id": "01BYE5RZ6PLYPWCL3MXEABK2M3FGSJ2U56"}
],
"excluded": [],
"filter_type": "user_folders",
"filter_name": "User onedrive"
}
}
}
MS Teams Enterprise
MS Teams Enterprise sync filters control which types of content, users, teams, and channels are synchronized.
Configuration Structure
{
"types": {
"selected": [{"id": "channels"}, {"id": "chats"}]
},
"users": {
"all_selected": boolean,
"selected": [{"id": "user_id"}],
"excluded": [{"id": "user_id"}]
},
"user_id": {
"all_selected": boolean,
"selected": [{"id": "team_id"}],
"excluded": [{"id": "team_id"}]
},
"team_id": {
"all_selected": boolean,
"selected": [{"id": "channel_id"}],
"excluded": [{"id": "channel_id"}]
}
}
Field Details
| Field | Type | Required | Description |
|---|---|---|---|
types | Object | Yes | Content types to sync (channels, chats) |
users | Object | Yes | User selection configuration |
| Per-user config | Object | No | Team selection for each user |
| Per-team config | Object | No | Channel selection for each team |
MS Teams Enterprise Examples
Sync All Teams Content
{
"sync_filters": {
"types": {
"selected": [{"id": "channels"}, {"id": "chats"}]
},
"users": {
"all_selected": true,
"selected": [],
"excluded": []
}
}
}
Sync Specific Users and Channels
{
"sync_filters": {
"types": {
"selected": [{"id": "channels"}]
},
"users": {
"all_selected": false,
"selected": [{"id": "user1@company.com"}],
"excluded": []
},
"user1@company.com": {
"all_selected": false,
"selected": [{"id": "team-123"}],
"excluded": []
},
"team-123": {
"all_selected": false,
"selected": [{"id": "channel-456"}, {"id": "channel-789"}],
"excluded": []
}
}
}
{
"sync_filters": {
"spaces": {
"all_selected": false,
"selected": [
{"id": "SPACE123", "name": "Engineering Space"},
{"id": "SPACE456", "name": "Marketing Space"}
],
"excluded": [],
"filter_type": "spaces",
"filter_name": "Confluence Spaces"
}
}
}
Pattern 3: Sync Everything Except Specific Items
Use this pattern when you want to synchronize most content but exclude specific items.
{
"sync_filters": {
"channels": {
"all_selected": true,
"selected": [],
"excluded": [
{"id": "C123456789", "name": "private-channel"},
{"id": "C987654321", "name": "archived-channel"}
],
"filter_type": "channels",
"filter_name": "Slack Channels"
}
}
}