By NHI Mgmt Group Editorial TeamBased on WorkOS: “Your users signed in with Google. That doesn't mean you can call their Google Calendar.” (June 15, 2026)

TL;DR: Google sign-in tokens authenticate a user, but they do not automatically authorise access to Calendar, Gmail, or Drive APIs, and SSO users make that separation even more obvious, according to WorkOS. The practical lesson is that login and third-party data access must be governed as distinct identity events, not bundled into one OAuth flow.


At a glance

What this is: This article explains why a Google login token proves identity but does not by itself grant API access to Google Workspace data.

Why it matters: IAM teams and application developers need to separate authentication from delegated authorisation so SSO, consent, and API scopes do not fail at runtime.


Context

Google OAuth has two different trust decisions in play: authenticating the user and authorising access to a specific API. A sign-in token can prove who someone is, but it does not automatically extend to Calendar, Gmail, or Drive access.

The governance gap is familiar to identity teams because it mirrors a broader IAM pattern. Access should be granted at the moment a user or application actually needs it, with the scope and purpose explicit, rather than assuming that login authority carries into third-party data access.

This distinction matters more in enterprise environments where SSO is common. If the application treats login as permission for downstream data access, the control fails precisely where users and admins expect federation to simplify the problem.


Key questions

Q: Why do Google login tokens fail when an app tries to call Calendar or Gmail APIs?

A: Because the token used for sign-in proves identity, not delegated API permission. Google issues separate access tokens for specific scopes, and a standard login flow usually covers openid, email, and profile only. If the application reuses that token for Workspace APIs, Google correctly returns a 403 because the user never approved those data-access scopes.

Q: How should teams handle Google sign-in and Google API access separately?

A: Treat Google sign-in as authentication only and request Calendar, Gmail, or Drive access in a separate consent step tied to the feature that needs it. That keeps login scopes minimal, improves user trust, and gives security teams a clearer record of what was authorised, when it was granted, and how it can be revoked.

Q: What breaks when developers add sensitive API scopes to the login flow?

A: Consent becomes noisy, refresh-token behaviour becomes harder to predict, and enterprise users can still fail later because SSO identity does not equal Workspace authorisation. The result is brittle onboarding and inconsistent access states across older and newer users. A separate authorisation step avoids tying feature access to the original login event.

Q: What is the difference between SSO authentication and OAuth data authorisation?

A: SSO answers who the user is and proves that the identity provider accepted the login. OAuth data authorisation answers what an application may do with a specific resource on that user’s behalf. They are related, but not interchangeable, and conflating them is what causes many Google Workspace integration failures.


Technical breakdown

Why Google ID tokens cannot call APIs

An ID token is a signed assertion about identity. It tells the application who the user is and is suitable for session creation, but it is not an authorisation token for Google Workspace APIs. API access requires an access token, and that token only covers the scopes the user approved during the OAuth consent flow. In practice, the failure mode appears when teams reuse a login token for Calendar, Gmail, or Drive calls and receive a 403 because the token never carried the right delegated permissions.

Practical implication: Separate session creation from API authorisation and request the exact Workspace scopes only when the feature needs them.

Why adding scopes to login creates brittle consent and refresh behaviour

Bundling sensitive API scopes into the login step changes the consent experience and introduces token lifecycle problems. Users see a broader permission request before they understand the product, which weakens consent quality. Google also issues refresh tokens in ways that can surprise teams, especially when consent was already granted before scopes changed or when apps remain in testing mode. That means an integration can appear to work during development and then fail later for users who were enrolled under older scope sets.

Practical implication: Design a separate consent step for data access so scope changes, refresh logic, and production verification do not ride on the sign-in path.

Why SSO makes login tokens a poor proxy for data access

SSO proves that the user belongs to an organisation and can authenticate through an identity provider, but it does not confer API permission by itself. A token issued through Okta, Microsoft Entra ID, or Google Workspace SSO can establish identity while leaving Workspace data access untouched. That is the key architectural boundary many teams miss: federation solves who the user is, not what a downstream application may retrieve on the user’s behalf.

Practical implication: Treat federated login and delegated API access as separate governance domains, especially when enterprise users are the target audience.


Read and download The State of NHI & AI Agent Breach Report 2026, covering 150+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Authentication authority does not equal delegated authorisation: A Google login token is sufficient to establish a session, but it is not a licence to read third-party data. This matters because many application teams still design around the assumption that one successful sign-in can cover every downstream request. The implication is that identity governance must distinguish proof of identity from permission to act, even when both are delivered through Google.

Consent scope drift is the hidden governance failure in OAuth integrations: When scopes are added later, the user experience and token lifecycle no longer line up with the original access decision. That creates a policy gap between what the product can technically do and what the user actually approved. For practitioners, the lesson is to govern consent as a lifecycle event, not a one-time checkbox at login.

SSO exposes the limits of authentication-centric thinking: Enterprise users often arrive through a brokered identity path, which makes the separation between identity assertion and resource access impossible to ignore. A token from an identity provider can authenticate the person, but the application still needs an explicit delegated grant for Google APIs. Teams that collapse those steps into one flow will keep seeing failures where federation is strongest.

Google OAuth scope design is really identity blast-radius design: The permission boundary for Calendar, Gmail, and Drive should be isolated from sign-in so the login surface stays narrow and the data-access surface stays explicit. That is the more governable model for SaaS applications because it limits the scope of each trust decision. Practitioners should treat login and API access as separate control planes, not alternate views of the same event.

From our research library:

What this signals

Consent should be designed as a separate control, not as a side effect of login: Teams that request sensitive Workspace scopes inside the authentication flow are mixing identity proofing with delegated access. That pattern creates avoidable scope drift, more confusing approvals, and a wider blast radius when the integration later expands to new Google services.

Identity federation does not remove the need for resource-level authorisation: SSO makes user verification easier, but it does not answer whether an application may read Calendar or Gmail data. Programmes that rely on a login token as a proxy for API permission will keep seeing the same failure mode whenever enterprise users, older consent grants, or scope changes enter the picture.


For practitioners

  • Separate login from delegated API access Keep Google sign-in limited to identity and session creation, then trigger a distinct consent flow only when the user enables Calendar, Gmail, or Drive functionality.
  • Review requested OAuth scopes by feature Map every API feature to the minimum Google scope it actually needs, and remove Workspace scopes from the authentication-only path.
  • Handle SSO as an identity source, not a data grant Assume users may authenticate through Okta, Microsoft Entra ID, or Google Workspace SSO and verify that downstream API access is still explicitly granted.
  • Test refresh-token behaviour after scope changes Reproduce re-consent, production-verification, and testing-mode scenarios so your integration does not depend on a one-time refresh token issued under older scopes.
  • Isolate sensitive Workspace access Use a separate OAuth client or connector for Calendar, Gmail, or Drive so login consent stays narrow and the data-access client carries the sensitive scopes.

Key takeaways

  • Google login tokens are not a substitute for delegated API permission, so Calendar, Gmail, and Drive access must be authorised separately.
  • The main failure is architectural, not operational: teams that bundle identity and API consent into one flow create fragile integrations for SSO and scope changes.
  • The safer pattern is to keep authentication narrow, request sensitive Workspace scopes only when needed, and govern refresh behaviour as part of the access lifecycle.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP API Security Top 10 addresses the attack and risk surface, while NIST SP 800-63 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP API Security Top 10API2 — Broken AuthenticationThe article shows why login tokens cannot be treated as API authorisation.
API10 — Unsafe Consumption of APIsReusing a sign-in token for downstream Workspace calls is unsafe API consumption.
Recommendation — Separate authentication from API authorisation and validate scopes before calling Google services. Consume Google APIs only with dedicated access tokens issued for the correct scopes.
NIST SP 800-63SP 800-63C — FederationThe piece contrasts identity federation with delegated API access in SSO flows.
Recommendation — Use federation for identity assertion and keep resource authorisation separate from login.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe article is fundamentally about matching permissions to the exact resource access requested.
Recommendation — Apply entitlement controls so only explicitly granted Google scopes can authorize resource access.

Key terms

  • OAuth Access Token: A short-lived bearer credential issued after successful authorization that allows an application to call APIs on a user's behalf. In NHI governance terms, it is a reusable access artifact whose scope, expiry, and revocation path must be controlled like any other privileged credential.
  • Identity Token: A persistent, privacy-preserving reference that represents a person or account without exposing the original sensitive attribute. In practice, it lets systems recognise continuity across channels while keeping raw data out of downstream workflows and reducing the blast radius of identity exposure.
  • OAuth Scope: An OAuth scope is a permission string that defines what an application can do on behalf of a user. In practice, scopes set the blast radius of delegated access, because the token carries the right to read, write, or administer resources until it is revoked or expires.
  • Federated Authentication: Federated authentication lets one organisation or platform accept a login performed by another trusted identity system. The application no longer verifies the user directly. Instead, it consumes signed claims or assertions, which makes trust relationships, certificates, and attribute mapping part of the security boundary.

Deepen your knowledge

NHI governance, agentic AI identity, and machine identity lifecycle are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are responsible for identity security strategy or NHI governance in your organisation, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on June 20, 2026.
Updated on October 8, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org