# Shadow AI detection in Microsoft 365 and Google Workspace

URL: https://shadowaidetectiontools.com/guides/shadow-ai-detection-in-microsoft-365-and-google-workspace/
Updated: 2026-11-16

Microsoft Defender for Cloud Apps, Defender for Endpoint and Purview cover discovery, local agents and paste control in Microsoft 365, with gaps for uncatalogued apps. Google Workspace admin logs show OAuth app access and token events. Neither shows personal-account use on unmanaged devices.

## What can Microsoft Purview and Defender for Cloud Apps see?

Defender for Cloud Apps discovers cloud apps from three feeds: the Defender for Endpoint integration on Windows 10 and 11, a log collector on firewalls and proxies, and proxy integrations. It compares traffic to a catalog of over 31,000 apps and lets admins unsanction an app. Purview adds AI sites seen through browser activity, classified as Generative AI in the catalog.

Third-party AI site insights in DSPM for AI need the Purview browser extension and onboarded devices, and policies need at least 24 hours to collect data. Endpoint DLP detects pasting content to restricted service domains in supported browsers. Microsoft's own tutorial says apps outside the catalog cannot be discovered by default.

Sources: [Microsoft Defender for Cloud Apps: discover and manage shadow IT](https://learn.microsoft.com/en-us/defender-cloud-apps/tutorial-shadow-it); [Microsoft Purview and AI](https://learn.microsoft.com/en-us/purview/ai-microsoft-purview); [Data Security Posture Management for AI, Microsoft Purview](https://learn.microsoft.com/en-us/purview/dspm-for-ai); [Endpoint data loss prevention, Microsoft Purview](https://learn.microsoft.com/en-us/purview/endpoint-dlp-learn-about).

## What does Defender for Endpoint add for local AI agents?

Defender for Endpoint discovers supported local AI agents on Windows devices, including coding agents, IDE extensions, desktop assistants and agent platforms, with no extra deployment beyond onboarding. Microsoft's support matrix names Claude Code, Claude Desktop, Cursor, Codex CLI, Gemini CLI, GitHub Copilot, Windsurf and Kiro.

The release notes of October 2026 say discovery is generally available on Windows and macOS and reports each agent's configured MCP servers. Agent risk levels need Microsoft 365 E7 or Agent 365 with Defender for Endpoint Plan 2.

Sources: [Discover local AI agents, Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/discover-local-ai-agents); [AI agent support matrix, Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/ai-agent-support-matrix); [What's new in Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/whats-new-in-microsoft-defender-endpoint).

## What can Google Workspace admin logs see?

Google Workspace admin logs see OAuth app access, not browser traffic. API controls list configured apps, accessed apps and apps pending review, with access levels of Trusted, Limited, Specific Google data or Blocked, and details appear 24 to 48 hours after authorization.

The Reports API records OAuth token audit events, and the OAuth log events page in Admin Help describes them. Use these to find AI apps that were granted access to Gmail, Drive or Calendar, and to block or limit them.

Sources: [Control which apps access Google Workspace data](https://support.google.com/a/answer/7281227); [OAuth Token Audit Activity Events, Google for Developers](https://developers.google.com/workspace/admin/reports/v1/appendix/activity/token); [OAuth log events, Google Workspace Admin Help](https://support.google.com/a/answer/6124308).

## What do both suites miss?

Both miss personal accounts on unmanaged devices and AI tools that never authenticate through the suite. Microsoft's catalog gap applies to new AI tools, and neither suite's admin logs show the content sent to a third-party AI app.

Add a browser or endpoint source and an identity or SaaS API source from a dedicated product. The Vantage Point Matrix on this site compares them.

Sources: [Microsoft Defender for Cloud Apps: discover and manage shadow IT](https://learn.microsoft.com/en-us/defender-cloud-apps/tutorial-shadow-it).

## What should a Microsoft 365 shop do first?

Start with what is already licensed: confirm Defender for Endpoint onboarding for local agent discovery, set up cloud discovery from the firewall or proxy, review app governance for OAuth apps, and turn on user consent restrictions.

For a Google Workspace shop, start with API controls: review accessed apps, set the unknown ones to Limited or Blocked, and watch the OAuth token events.

Sources: [Manage app governance, Microsoft Defender for Cloud Apps](https://learn.microsoft.com/en-us/defender-cloud-apps/app-governance-manage-app-governance); [Configure how users consent to applications](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-user-consent); [Control which apps access Google Workspace data](https://support.google.com/a/answer/7281227).

## How do you prove coverage in either suite?

Count the devices onboarded to Defender for Endpoint against the device list, and the apps with a recorded access level in Google Workspace API controls against the apps that have accessed data. Those two ratios show how much of the estate the suite can see.

Microsoft lists Windows, macOS, Linux, Android and iOS as Defender for Endpoint operating systems, while local agent discovery is documented for Windows and macOS, so state which devices the number covers.

Sources: [Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/microsoft-defender-endpoint); [Control which apps access Google Workspace data](https://support.google.com/a/answer/7281227).

## Sources

- [Microsoft Defender for Cloud Apps: discover and manage shadow IT](https://learn.microsoft.com/en-us/defender-cloud-apps/tutorial-shadow-it) (learn.microsoft.com), read 2026-11-16
- [Microsoft Purview and AI](https://learn.microsoft.com/en-us/purview/ai-microsoft-purview) (learn.microsoft.com), read 2026-11-16
- [Data Security Posture Management for AI, Microsoft Purview](https://learn.microsoft.com/en-us/purview/dspm-for-ai) (learn.microsoft.com), read 2026-11-16
- [Endpoint data loss prevention, Microsoft Purview](https://learn.microsoft.com/en-us/purview/endpoint-dlp-learn-about) (learn.microsoft.com), read 2026-11-16
- [Discover local AI agents, Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/discover-local-ai-agents) (learn.microsoft.com), read 2026-11-16
- [AI agent support matrix, Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/ai-agent-support-matrix) (learn.microsoft.com), read 2026-11-16
- [What's new in Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/whats-new-in-microsoft-defender-endpoint) (learn.microsoft.com), read 2026-11-16
- [Control which apps access Google Workspace data](https://support.google.com/a/answer/7281227) (support.google.com), read 2026-11-16
- [OAuth Token Audit Activity Events, Google for Developers](https://developers.google.com/workspace/admin/reports/v1/appendix/activity/token) (developers.google.com), read 2026-11-16
- [OAuth log events, Google Workspace Admin Help](https://support.google.com/a/answer/6124308) (support.google.com), read 2026-11-16
- [Manage app governance, Microsoft Defender for Cloud Apps](https://learn.microsoft.com/en-us/defender-cloud-apps/app-governance-manage-app-governance) (learn.microsoft.com), read 2026-11-16
- [Configure how users consent to applications](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-user-consent) (learn.microsoft.com), read 2026-11-16
- [Microsoft Defender for Endpoint](https://learn.microsoft.com/en-us/defender-endpoint/microsoft-defender-endpoint) (learn.microsoft.com), read 2026-11-16

## Related pages

- [Shadow AI Discovery From Identity Provider Logs](/guides/shadow-ai-discovery-from-identity-provider-logs/)
- [How to Run a Shadow AI Audit, Step by Step](/guides/how-to-run-a-shadow-ai-audit/)
- [CASB (glossary)](/glossary/casb/)
- [All guides](/guides/)
- [Shadow AI Detection Evidence for Auditors](/guides/shadow-ai-detection-evidence-for-auditors/)
- [The ranking](/ranking/)
- [Glossary](/glossary/)
