Connectors
Microsoft 365 email
Index authorized Exchange Online messages through Microsoft Graph.
This is a Knowledgebase connector, not an AI Workspace automation email trigger. It reads mailbox content through Microsoft Graph, not SMTP.
- Register an Entra Web application as described in the SharePoint guide.
- Select Microsoft 365 / Exchange in CogLake's Add connector wizard. Copy its own callback ending
/api/coglake/connectors/oauth/email-exchange/callbackinto Entra. Do not reuse the SharePoint callback. - Configure delegated Graph permissions
User.Read,Mail.Read,Mail.Read.Shared,offline_access,openid,profile, and obtain required administrator consent. - Enter tenant ID, client ID, client secret value and mailbox. The signed-in account must have access to that mailbox; shared mailbox access requires the corresponding Microsoft delegation.
- Connect at Microsoft, return to Sync, choose folder scope and CogLake role permissions, then save.
Verify a known message in search after indexing. Treat mailbox data as sensitive: prefer a restricted mailbox/folder selection and test an unauthorized user. If access fails, check both the OAuth grant and Microsoft mailbox permissions. See scope and access.

