By NHI Mgmt Group Editorial TeamPublished 2026-06-15Domain: Governance & RiskSource: WorkOS

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 explains why Google sign-in tokens do not grant API access and why separating authentication from data authorisation avoids scope and SSO failures.

Why it matters: IAM and identity teams should treat login, delegated API access, and consent as separate controls across human, NHI, and integration flows so that scope, refresh, and offboarding decisions stay enforceable.

👉 Read WorkOS's explanation of Google OAuth sign-in and API access separation


Context

Google OAuth creates two different identity outcomes: authentication proves who the user is, while API authorisation decides what that user or application can access. Teams often collapse those steps into one sign-in flow, then discover that a valid login token still fails against Calendar, Gmail, or Drive because the scopes were never granted for those APIs.

The governance problem is broader than one integration pattern. When organisations mix login and data access, they create consent friction, brittle refresh-token handling, and inconsistent behaviour for SSO users whose identity provider is not the same system that authorises Workspace API access. That is an IAM design issue, not a bug in the application layer.


Key questions

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: Why do SSO users often break integrations that rely on Google OAuth scopes?

A: SSO authenticates the user through a corporate identity provider, but it does not automatically grant access to Google Workspace APIs. The application still needs a valid OAuth client and the correct scopes for the resource being called. If teams assume federation equals delegated access, enterprise users will fail even when login succeeds.

Q: What do security teams get wrong about OAuth refresh tokens?

A: They often assume a refresh token will keep working after scopes change or that it will be reissued automatically. In practice, Google’s refresh-token behaviour depends on consent timing, app status, and scope class. Teams should test lifecycle edge cases, especially when a feature moves from development to production.

Q: Who is accountable when a user can sign in but still cannot access the required API?

A: The application team is accountable for separating authentication from authorisation, while IAM and security teams are accountable for defining scope policy, consent timing, and revocation handling. If the integration bundles these steps together, failures become hard to diagnose and harder to audit across support, product, and security boundaries.


Technical breakdown

Id tokens vs access tokens in Google OAuth

An ID token is an assertion of identity. It is a signed JWT that tells the application who the user is and is meant for session creation, not resource access. An access token is an authorisation artefact. It carries the scopes that define which Google APIs can be called and what the application may do. If the login flow requested only openid, email, and profile, the resulting token can support sign-in but not Calendar, Gmail, or Drive access. The failure is structural, because identity proof and delegated API permission are different control planes.

Practical implication: separate authentication handling from delegated API authorisation in your architecture and review each token type against its own access boundary.

Why adding scopes to sign-in often breaks governance

Adding Workspace scopes to the initial login flow technically works, but it changes the consent model. Users are asked for broad data permissions before they understand why the app needs them, which depresses consent and makes the request look excessive. Refresh-token behaviour adds another trap: Google may only issue a refresh token on first consent, so later scope expansion does not reliably repair older sessions. In testing mode, sensitive scopes also create short-lived refresh behaviour that can make a working integration appear stable until it fails in production-like use.

Practical implication: treat scope expansion as a separate approval path with explicit user context and a production readiness check for refresh-token lifecycle.

Why SSO users expose the separation between identity and data access

SSO proves the user’s identity through a corporate provider, but it does not automatically grant Google Workspace API rights. That means a user can authenticate successfully through Okta, Entra ID, or Google Workspace and still be blocked from calling Calendar or Gmail because authorisation remains tied to the OAuth client and the scopes it requested. This is the same governance mistake that appears in many identity programmes: assuming that a valid identity assertion is also a usable permission grant. It is not.

Practical implication: design enterprise integrations so that federated sign-in and API consent are independently controlled, logged, and revocable.


NHI Mgmt Group analysis

Authentication and API authorisation are separate governance layers, not interchangeable events. Google OAuth makes the split visible, but many programmes still treat a successful login as if it were also delegated access to data. That assumption fails because an identity assertion says who the user is, while a scope grant says what the application may do. Practitioners should read this as a control boundary problem, not a token-format problem.

Scope inflation at login creates consent debt. Bundling Calendar, Gmail, or Drive access into the initial sign-in flow forces users to approve permissions before the feature context exists. That increases friction, weakens consent quality, and makes later scope changes harder to govern because prior consent state becomes ambiguous. The implication is that entitlement requests need feature-level timing, not just technical compatibility.

SSO exposes a common false premise in enterprise identity architecture. A corporate identity provider can prove the user, but it does not authorise third-party API access on the application’s behalf. This is the same mistake teams make when they assume federation collapses authentication and data authorisation into one policy decision. The implication is that enterprise IAM design must keep identity proof, delegated consent, and resource access review as distinct controls.

Token lifecycle handling is part of identity governance, not just application plumbing. Refresh-token quirks, testing-mode expiry, and revocation handling all show that access continuity depends on lifecycle state, not only initial consent. When the app cannot distinguish expiry from revocation, it loses control over whether access should be restored or re-approved. Practitioners should treat token lifecycle as a governed workflow with explicit ownership.

Named concept: delegated-access separation. This article illustrates the difference between proving identity and granting resource access in a way that should be explicit in programme design. Authentication may be centralised, but delegated API access must remain separately scoped, separately consented, and separately revoked. Practitioners should use that separation to reduce overreach and avoid hidden privilege drift.

From our research:

  • 64% of valid secrets leaked in 2022 are still valid and exploitable today, proving that detection alone is not enough without automated revocation, according to The State of Secrets Sprawl 2026.
  • 28% of secrets incidents now originate outside code repositories, in Slack, Jira, and Confluence, and are 13% more likely to be categorised as critical than code-based leaks.
  • For the broader control pattern behind this separation, see Guide to the Secret Sprawl Challenge for the governance issues that appear when access state is spread across systems.

What this signals

Delegated-access separation: The most useful programme response here is to stop treating authentication success as evidence of resource entitlement. When login, consent, refresh, and revocation are distinct events, teams can measure each boundary separately and avoid hidden privilege assumptions across human, NHI, and integration workflows.

The operational signal to watch is whether your integrations can still function when users authenticate through a third-party identity provider, because that is where many consent models fail. With 64% of valid secrets leaked in 2022 still exploitable today, per The State of Secrets Sprawl 2026, lifecycle state is the real control point, not initial token issuance.


For practitioners

  • Split sign-in from API consent Keep user login limited to authentication scopes and move Calendar, Gmail, or Drive access into a separate feature-triggered consent flow.
  • Review refresh-token assumptions Validate how your integration behaves when refresh tokens are missing, short-lived, or not reissued after scope changes, especially in production-like environments.
  • Design for SSO first Test enterprise sign-in paths where the identity provider is Okta, Entra ID, or another SAML source so API access does not depend on Google being the login system.
  • Separate consent ownership by feature Assign product and security owners to each connected service so scope requests, reconnect prompts, and revocation handling map to a specific business function.
  • Log access grant state independently Record when a user authenticated, when a data connector was authorised, and when that connector was last refreshed so audit and support teams can distinguish the states.

Key takeaways

  • A valid Google login token proves identity, but it does not automatically authorise API access to Workspace data.
  • Bundling login and data access creates consent friction, refresh-token fragility, and enterprise SSO failures.
  • Separating authentication from delegated access gives security teams a clearer lifecycle for approval, refresh, and revocation.

Standards & Framework Alignment

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

NIST SP 800-63, NIST Zero Trust (SP 800-207) and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
NIST SP 800-63Federated login and identity proof are central to the article.
NIST Zero Trust (SP 800-207)PR.AC-4Least-privilege access and session boundaries align with the OAuth separation problem.
NIST CSF 2.0PR.AC-1Identity and access management governs how users and apps receive access.

Map OAuth consent, refresh, and revocation to access-control ownership and audit them together.


Key terms

  • Id Token: A signed identity token that proves who a user is after authentication. It is used to establish a session, not to call APIs or access data. In Google OAuth, it confirms identity attributes such as email and account ID, but it does not authorise Workspace resource access.
  • Access Token: A bearer token that authorises specific API actions for a limited set of scopes. In delegated access models, it represents what the application may do, not who the user is. Its value depends on the scopes granted, the token’s lifetime, and the provider’s lifecycle rules.
  • Refresh Token: A long-lived credential used to obtain new access tokens without forcing the user to sign in again. Its behaviour depends on provider policy, consent timing, and application status. In practice, it is a lifecycle control, because expiry, revocation, and re-consent all change whether access can continue.
  • Delegated Access: Permission granted by a user for an application to act on their behalf against a specific resource or API. It is narrower than authentication and must be separately requested, stored, refreshed, and revoked. This separation is what prevents login success from becoming accidental overreach.

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.

This post draws on content published by WorkOS: Your users signed in with Google. That doesn't mean you can call their Google Calendar. Read the original.

NHIMG Editorial Note
Published by the NHIMG editorial team on 2026-06-15.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org