Microsoft Teams connector
Set up the Microsoft Teams connector in Kaivo: authentication, configuration, the 12 BigQuery tables it syncs, and answers to common questions.
Microsoft Teams connector pricing, tier and credits on kaivo.ioKaivo is a fully managed data platform that syncs your Microsoft Teams data into a Google BigQuery warehouse and keeps it up to date automatically. There is no pipeline to build and no infrastructure to run, so you can spend your time analysing your customer support data instead of moving it.
What is the Microsoft Teams connector
Section titled “What is the Microsoft Teams connector”Sync your Microsoft Teams data into BigQuery with Kaivo to analyse channels, membership, and usage across your organisation.
| Category | Customer Service, Tech |
|---|---|
| Authentication | API key |
| Setup | Self-service |
Getting started with the Microsoft Teams connector
Section titled “Getting started with the Microsoft Teams connector”- Sign up for Kaivo and create a workspace.
- Connect your Microsoft Teams account.
- Choose which tables to sync.
- Wait for the initial sync to finish.
- Query your data in BigQuery or your favourite AI or BI tool.
Authenticating Microsoft Teams
Section titled “Authenticating Microsoft Teams”Authenticate with your Microsoft Teams credentials. You provide:
| Field | Description |
|---|---|
| Directory (Tenant) ID | |
| A globally unique identifier (GUID) for your Microsoft organization. To find it, open one of the Teams where you belong in the Teams app, click … next to the Team title, click Get link to team, and copy the tenant ID from the URL. |
| | Client ID |
The client ID of your Microsoft Teams application registration in Azure AD.
| | Client Secret |
The client secret of your Microsoft Teams application registration in Azure AD.
|
Configuring the Microsoft Teams connector
Section titled “Configuring the Microsoft Teams connector”When you set up the connector, you provide:
| Field | Description |
|---|---|
| Period | |
| Length of time over which the Team Device Report stream is aggregated. Supported values: D7, D30, D90, D180. |
|
Tables and columns synced from Microsoft Teams
Section titled “Tables and columns synced from Microsoft Teams”Kaivo syncs 12 tables from Microsoft Teams into a dedicated dataset in your BigQuery warehouse. Click any table to see its columns and types.
channel_members (10 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
aodata_type |
STRING |
|
channel_id |
STRING |
|
display_name |
STRING |
|
email |
STRING |
|
id |
STRING |
|
tenant_id |
STRING |
|
user_id |
STRING |
|
visible_history_start_date_time |
TIMESTAMP |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: channel_members__roles
Section titled “Subtable: channel_members__roles”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
channel_tabs (18 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
channel_id |
STRING |
|
configuration__content_url |
STRING |
|
configuration__entity_id |
STRING |
|
configuration__has_content |
BOOL |
|
configuration__remove_url |
STRING |
|
configuration__website_url |
STRING |
|
configuration__wiki_default_tab |
BOOL |
|
configuration__wiki_tab_id |
INT64 |
|
display_name |
STRING |
|
group_id |
STRING |
|
id |
STRING |
|
sort_order_index |
STRING |
|
teams_app__display_name |
STRING |
|
teams_app__distribution_method |
STRING |
|
teams_app__id |
STRING |
|
web_url |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
channels (11 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
created_date_time |
TIMESTAMP |
|
description |
STRING |
|
display_name |
STRING |
|
email |
STRING |
|
id |
STRING |
|
is_favorite_by_default |
BOOL |
|
membership_type |
STRING |
|
tenant_id |
STRING |
|
web_url |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
conversation_posts (17 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
aodata_etag |
STRING |
|
body__content |
STRING |
|
body__content_type |
STRING |
|
change_key |
STRING |
|
conversation_id |
STRING |
|
created_date_time |
TIMESTAMP |
|
from__email_address__address |
STRING |
|
from__email_address__name |
STRING |
|
has_attachments |
BOOL |
|
id |
STRING |
|
last_modified_date_time |
TIMESTAMP |
|
received_date_time |
TIMESTAMP |
|
sender__email_address__address |
STRING |
|
sender__email_address__name |
STRING |
|
thread_id |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: conversation_posts__categories
Section titled “Subtable: conversation_posts__categories”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
conversation_threads (10 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
conversation_id |
STRING |
|
group_id |
STRING |
|
has_attachments |
BOOL |
|
id |
STRING |
|
is_locked |
BOOL |
|
last_delivered_date_time |
TIMESTAMP |
|
preview |
STRING |
|
topic |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: conversation_threads__unique_senders
Section titled “Subtable: conversation_threads__unique_senders”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
conversations (8 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
group_id |
STRING |
|
has_attachments |
BOOL |
|
id |
STRING |
|
last_delivered_date_time |
TIMESTAMP |
|
preview |
STRING |
|
topic |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: conversations__unique_senders
Section titled “Subtable: conversations__unique_senders”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
group_members (13 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
aodata_type |
STRING |
|
display_name |
STRING |
|
given_name |
STRING |
|
id |
STRING |
|
job_title |
STRING |
|
mail |
STRING |
|
mobile_phone |
STRING |
|
office_location |
STRING |
|
preferred_language |
STRING |
|
surname |
STRING |
|
user_principal_name |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: group_members__business_phones
Section titled “Subtable: group_members__business_phones”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
group_owners (14 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
aodata_type |
STRING |
|
display_name |
STRING |
|
given_name |
STRING |
|
group_id |
STRING |
|
id |
STRING |
|
job_title |
STRING |
|
mail |
STRING |
|
mobile_phone |
STRING |
|
office_location |
STRING |
|
preferred_language |
STRING |
|
surname |
STRING |
|
user_principal_name |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: group_owners__business_phones
Section titled “Subtable: group_owners__business_phones”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
groups (28 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
classification |
STRING |
|
created_date_time |
TIMESTAMP |
|
deleted_date_time |
TIMESTAMP |
|
description |
STRING |
|
display_name |
STRING |
|
expiration_date_time |
TIMESTAMP |
|
id |
STRING |
|
is_assignable_to_role |
BOOL |
|
mail |
STRING |
|
mail_enabled |
BOOL |
|
mail_nickname |
STRING |
|
membership_rule |
STRING |
|
membership_rule_processing_state |
STRING |
|
on_premises_domain_name |
STRING |
|
on_premises_last_sync_date_time |
TIMESTAMP |
|
on_premises_net_bios_name |
STRING |
|
on_premises_sam_account_name |
STRING |
|
on_premises_security_identifier |
STRING |
|
on_premises_sync_enabled |
BOOL |
|
preferred_data_location |
STRING |
|
preferred_language |
STRING |
|
renewed_date_time |
TIMESTAMP |
|
security_enabled |
BOOL |
|
security_identifier |
STRING |
|
theme |
STRING |
|
visibility |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: groups__creation_options
Section titled “Subtable: groups__creation_options”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: groups__group_types
Section titled “Subtable: groups__group_types”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: groups__on_premises_provisioning_errors
Section titled “Subtable: groups__on_premises_provisioning_errors”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: groups__proxy_addresses
Section titled “Subtable: groups__proxy_addresses”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: groups__resource_behavior_options
Section titled “Subtable: groups__resource_behavior_options”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: groups__resource_provisioning_options
Section titled “Subtable: groups__resource_provisioning_options”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: groups__service_provisioning_errors
Section titled “Subtable: groups__service_provisioning_errors”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
created_date_time |
TIMESTAMP |
|
is_resolved |
BOOL |
|
service_instance |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
team_device_usage_report (18 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
deleted_date |
STRING |
|
is_deleted |
STRING |
|
is_lisenced |
STRING |
|
last_activity_date |
STRING |
|
report_period |
STRING |
|
report_refresh_date |
DATE |
|
used_android_phone |
STRING |
|
used_chrome_os |
STRING |
|
used_i_os |
STRING |
|
used_linux |
STRING |
|
used_mac |
STRING |
|
used_web |
STRING |
|
used_windows |
STRING |
|
used_windows_phone |
STRING |
|
user_id |
STRING |
|
user_principal_name |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
team_drives (20 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
created_by__user__display_name |
STRING |
|
created_date_time |
TIMESTAMP |
|
description |
STRING |
|
drive_type |
STRING |
|
id |
STRING |
|
last_modified_by__display_name |
STRING |
|
last_modified_by__id |
STRING |
|
last_modified_date_time |
TIMESTAMP |
|
name |
STRING |
|
owner__group__display_name |
STRING |
|
owner__group__email |
STRING |
|
owner__group__id |
STRING |
|
quota__deleted |
INT64 |
|
quota__remaining |
FLOAT64 |
|
quota__state |
STRING |
|
quota__total |
FLOAT64 |
|
quota__used |
INT64 |
|
web_url |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
users (12 columns)
| Column | Type | Description |
|---|---|---|
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
display_name |
STRING |
|
given_name |
STRING |
|
id |
STRING |
|
job_title |
STRING |
|
mail |
STRING |
|
mobile_phone |
STRING |
|
office_location |
STRING |
|
preferred_language |
STRING |
|
surname |
STRING |
|
user_principal_name |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
Subtable: users__business_phones
Section titled “Subtable: users__business_phones”| Column | Type | Description |
|---|---|---|
_kaivo_parent_id |
STRING |
Foreign key referencing _kaivo_id in the parent table. Auto-generated by Kaivo. |
_kaivo_id |
STRING |
Primary key that uniquely identifies the row. Auto-generated by Kaivo. |
value |
STRING |
|
_kaivo_extracted_at |
TIMESTAMP |
Timestamp that shows when the row was extracted. Auto-generated by Kaivo. |
How the Microsoft Teams sync works
Section titled “How the Microsoft Teams sync works”After the first load, Kaivo keeps your BigQuery warehouse up to date for you. Where Microsoft Teams supports it, each sync pulls only new and changed records so it stays fast; otherwise it refreshes the whole table. Every record keeps its original ID, so you won’t get duplicate rows.
Frequently asked questions
Section titled “Frequently asked questions”How long does the initial sync take for Microsoft Teams?
Section titled “How long does the initial sync take for Microsoft Teams?”It depends on how much history is in your Microsoft Teams account. Most initial syncs finish within minutes, while large accounts can take a few hours. After that, syncs only fetch new and changed records, so they’re much faster.
Can I sync only some tables or columns?
Section titled “Can I sync only some tables or columns?”Yes. You pick which tables to sync when you set up the connection and can change the selection later. Tables you don’t select are never copied to your warehouse.
What happens when Microsoft Teams’s schema changes?
Section titled “What happens when Microsoft Teams’s schema changes?”New fields are never added automatically. You choose which fields to sync, so data you haven’t selected (sensitive personal data, for example) never lands in your warehouse. When a new field appears, it becomes available for you to add. What happens to removed or renamed fields depends on a table’s sync mode: full-refresh tables always match what’s currently in Microsoft Teams, so dropped fields disappear, while incremental tables keep their existing columns and history, so an old field stays and newly added fields fill in over time.
How do I handle GDPR or data deletion requests?
Section titled “How do I handle GDPR or data deletion requests?”Your data lives in your own Kaivo-managed BigQuery warehouse, so the most direct option is to delete or anonymise specific records right in BigQuery. If you delete data in Microsoft Teams instead, full-refresh tables drop it on the next sync, while incremental tables keep it, so you would remove the row in BigQuery or ask us to run a full refresh. To remove everything, delete the Microsoft Teams connector in Kaivo and all of its synced data is deleted with it.
Common use cases for Microsoft Teams data
Section titled “Common use cases for Microsoft Teams data”Usage reporting
Section titled “Usage reporting”Use team_device_usage_report to track how teams and channels are used over time.
Membership view
Section titled “Membership view”Join groups with group_members and channel_members to map who belongs where.
Channel activity
Section titled “Channel activity”Use channels and conversation_posts to see where conversation happens.
Access review
Section titled “Access review”Bring users and group_owners together to review ownership and access.
Use Microsoft Teams data in your AI and BI tools
Section titled “Use Microsoft Teams data in your AI and BI tools”Once Microsoft Teams data lands in your Kaivo-managed BigQuery warehouse, you can explore it with AI tools or any BI tool that connects to BigQuery. Here’s how the most common destinations work with Microsoft Teams data.
Claude
Section titled “Claude”Use Kaivo’s MCP server to give Claude secure, workspace-scoped access to your data. Setup guide →
Power BI
Section titled “Power BI”Microsoft’s BI tool with a native BigQuery connector. Supports direct query and scheduled refresh. Setup guide →
Data Studio
Section titled “Data Studio”Free Google BI tool with native BigQuery support. One-click connection to your Kaivo warehouse; great for SMB teams on Google Workspace. Setup guide →
Tableau
Section titled “Tableau”The premium analytics standard, with native BigQuery integration. Setup guide →
Google Sheets
Section titled “Google Sheets”Use Connected Sheets to query BigQuery directly from a spreadsheet, with no SQL. Setup guide →
Connect via Power Query’s BigQuery connector. Setup guide →
Metabase
Section titled “Metabase”Open-source BI tool with strong BigQuery support. Setup guide →
See our pricing page for Microsoft Teams connector pricing and plan details.