# Shadow AI discovery from identity provider logs

URL: https://shadowaidetectiontools.com/guides/shadow-ai-discovery-from-identity-provider-logs/
Updated: 2026-11-16

Identity provider logs show which AI apps staff signed in to with a work account and which AI apps were granted OAuth access. Read sign-in, consent and app-grant events in Entra ID, Google Workspace or Okta; they miss tools used with personal accounts and anything that never calls the identity provider.

## What does single sign-on reveal about AI use?

Single sign-on reveals every AI app a work identity signed in to through the identity provider, with the user, the time, the app and the result. Microsoft says Entra ID logs all sign-ins into a tenant, so an AI app that uses "Sign in with Microsoft" appears there even if no one registered it.

It reveals less about AI used with a personal email address, a password typed into the app, or a tool that never authenticates. Grip Security, Reco and Nudge Security build discovery on identity and email sources. Grip Security and Nudge Security document named identity provider integrations such as Okta, Entra ID and Google Workspace, and Reco says its discovery draws on SSO logs.

Sources: [Sign-in logs in Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-sign-ins); [Grip Security: discover SaaS risks](https://www.grip.security/platform/discover-saas-risks); [Nudge Security: AI security use case](https://www.nudgesecurity.com/use-cases/ai-security-3); [Reco: shadow AI discovery](https://www.reco.ai/use-cases/shadow-ai-discovery); [Grip Security source (grip-security-11)](https://www.grip.security/integrations); [Reco source (reco-06)](https://www.reco.ai/platform/application-discovery).

## Which sign-in events matter?

Three event types matter: first-time sign-ins to an application, consent grants to a new application, and permission changes on an existing grant. Entra ID separates interactive and non-interactive user sign-ins, service principal sign-ins and managed identity sign-ins, and its audit log records changes to applications and consent.

In Google Workspace, the OAuth log events and the token audit activity events in the Reports API record authorization, revocation and API requests by app. In Okta, the System Log API gives near real-time, read-only access to events as an audit trail. Filter each for application names and client IDs you do not recognize, and group by user count.

Sources: [Sign-in logs in Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-sign-ins); [Audit logs in Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-audit-logs); [OAuth log events, Google Workspace Admin Help](https://support.google.com/a/answer/6124308); [OAuth Token Audit Activity Events, Google for Developers](https://developers.google.com/workspace/admin/reports/v1/appendix/activity/token); [System Log API, Okta Developer](https://developer.okta.com/docs/reference/api/system-log/).

## How do OAuth grants show AI apps with access to data?

An OAuth grant lists the app, the user or admin who consented and the permissions given. AI note takers, writing assistants and chat tools often request mailbox, calendar or file permissions, so the grant list is the quickest way to see which of them can read company data.

Microsoft's app governance covers OAuth-enabled apps registered in Entra ID, Google and Salesforce, showing the permissions they hold and who granted access. Google Workspace API controls list configured apps, accessed apps and apps pending review, with a Trusted, Limited, Specific Google data or Blocked setting.

Sources: [Manage app governance, Microsoft Defender for Cloud Apps](https://learn.microsoft.com/en-us/defender-cloud-apps/app-governance-manage-app-governance); [Control which apps access Google Workspace data](https://support.google.com/a/answer/7281227).

## What controls follow from what you find?

Restrict who may consent, require an approval path, and revoke grants that are risky. Entra ID lets admins limit user consent and turn on an admin consent workflow, so a user request goes to a reviewer. Microsoft also documents reviewing and revoking permissions granted to enterprise applications.

Several detection products automate part of this: Nudge Security lists auto-revoking overly permissive OAuth grants (a paid-tier item), and Grip says it categorizes OAuth scopes by risk and can revoke access.

Sources: [Configure how users consent to applications](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/configure-user-consent); [Overview of admin consent workflow](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/admin-consent-workflow-overview); [Review permissions granted to enterprise applications](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/manage-application-permissions); [Nudge Security pricing](https://www.nudgesecurity.com/pricing); [Grip Security: discover SaaS risks](https://www.grip.security/platform/discover-saas-risks).

## What do identity logs not show?

Identity logs do not show local tools, so a coding agent, a local model or an MCP server on a laptop never appears. They do not show the content sent to an AI app, and they miss AI features switched on inside an app that was already approved, because no new sign-in occurs.

Pair identity logs with an endpoint or browser source for those cases. Harmonic documents an endpoint agent for local apps, coding assistants and MCP servers, and Push Security documents a browser extension that sees logins to apps, including AI apps.

Sources: [Harmonic Security: endpoint AI security](https://www.harmonic.security/solutions/endpoint-ai-security); [Push Security: shadow AI, how to discover, govern and secure AI apps](https://pushsecurity.com/blog/shadow-ai-how-to-discover-govern-and-secure-ai-apps).

## Sources

- [Sign-in logs in Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-sign-ins) (learn.microsoft.com), read 2026-11-16
- [Grip Security: discover SaaS risks](https://www.grip.security/platform/discover-saas-risks) (grip.security), read 2026-11-16
- [Nudge Security: AI security use case](https://www.nudgesecurity.com/use-cases/ai-security-3) (nudgesecurity.com), read 2026-11-16
- [Reco: shadow AI discovery](https://www.reco.ai/use-cases/shadow-ai-discovery) (reco.ai), read 2026-11-16
- [Audit logs in Microsoft Entra ID](https://learn.microsoft.com/en-us/entra/identity/monitoring-health/concept-audit-logs) (learn.microsoft.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
- [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
- [System Log API, Okta Developer](https://developer.okta.com/docs/reference/api/system-log/) (developer.okta.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
- [Control which apps access Google Workspace data](https://support.google.com/a/answer/7281227) (support.google.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
- [Overview of admin consent workflow](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/admin-consent-workflow-overview) (learn.microsoft.com), read 2026-11-16
- [Review permissions granted to enterprise applications](https://learn.microsoft.com/en-us/entra/identity/enterprise-apps/manage-application-permissions) (learn.microsoft.com), read 2026-11-16
- [Nudge Security pricing](https://www.nudgesecurity.com/pricing) (nudgesecurity.com), read 2026-11-16
- [Harmonic Security: endpoint AI security](https://www.harmonic.security/solutions/endpoint-ai-security) (harmonic.security), read 2026-11-16
- [Push Security: shadow AI, how to discover, govern and secure AI apps](https://pushsecurity.com/blog/shadow-ai-how-to-discover-govern-and-secure-ai-apps) (pushsecurity.com), read 2026-11-16

## Related pages

- [Embedded AI Features Switched On in Approved SaaS](/guides/embedded-ai-features-switched-on-in-approved-saas/)
- [Personal vs Corporate AI Accounts: Telling Them Apart](/guides/personal-versus-corporate-ai-accounts/)
- [OAuth grant (glossary)](/glossary/oauth-grant/)
- [All guides](/guides/)
- [Shadow AI Detection in Microsoft 365 and Google Workspace](/guides/shadow-ai-detection-in-microsoft-365-and-google-workspace/)
- [Shadow AI False Positives and Blind Spots](/guides/shadow-ai-false-positives-and-blind-spots/)
- [The ranking](/ranking/)
- [Glossary](/glossary/)
