Join our Newsletter — 33% off our NHI Course
Home› Guides› Google Drive Full Scope: Risk, drive.file and Narrower…
Guide SaaS & OAuth Integrations

Google Drive Full Scope: Risk, drive.file and Narrower Alternatives

PDF for newsletter subscribers · free to read online

← All guides
By NHI Mgmt Group, under the editorial direction of Lalit Choda Updated 27 November 2026 12 min read
On this page

An app granted the full Google Drive scope can read, change and delete every file a user can reach, so one over-scoped integration turns a single OAuth consent into access to a whole organisation's documents. Google classifies the full drive scope as restricted and recommends that most apps use the per-file drive.file scope instead. This guide explains what the full scope grants, how Google's restricted scope verification works, which narrower scopes exist, how developers move an app onto them, and how Workspace administrators control and audit Drive grants. It is written for Google Workspace administrators, security teams and developers who build or approve Drive integrations.

This is an independent guide from NHI Mgmt Group, based on Google's public documentation as of November 2026. It is not sponsored or reviewed by Google. Product features change, so confirm settings against Google's current documentation.

Key takeaways

  • The full scope is a bulk data grant. https://www.googleapis.com/auth/drive gives full view and management of all of the user's Drive files, and Google lists it as a restricted scope.
  • drive.file is the default answer. Google's scope guide calls drive.file non-sensitive, says it works with all Drive API REST resources and states that many apps can move to per-file access without code changes.
  • Restricted means verified and assessed. Public apps using restricted scopes need restricted scope verification and, if they handle the data on servers, an independent security assessment repeated at least every 12 months.
  • Admins can restrict Drive per app. API controls let administrators restrict the Drive service so only Trusted apps can use high-risk Drive scopes, while still allowing non-high-risk scopes such as user-selected files.
  • Token events show who granted what. The OAuth Token audit log records authorize, revoke and activity events with the client ID and scopes, which is the basis for finding and removing full-scope grants.

What the full drive scope grants

An OAuth token carrying the drive scope acts with the user's full Drive permissions. That covers every file the user owns, every file shared with them and every shared drive they are a member of, with the user's own role on each. For a typical knowledge worker that is far more than the app needs, and for an administrator or a heavily shared account it can be most of the organisation's documents.

  • Read and exfiltrate: list and download any reachable file, including exports of Docs, Sheets and Slides.
  • Modify and delete: edit content, move files to trash and change sharing settings, within the user's role.
  • Persist: with a refresh token the app keeps access until the token is revoked by the user or an administrator. Google's scope guide tells developers to store refresh tokens in secure long-term storage, which means the app's backend holds a long-lived key to the user's Drive.

From an identity view, a stored refresh token with the full scope is a non-human credential with standing access to user data, owned by a third party. It deserves the same scrutiny as a service account key. See the OAuth Scope Design Guide for the general principles behind narrow scopes.

Restricted scope classification and verification

Google groups Drive API scopes into three classes. The table lists them as Google's Drive scope guide showed them in November 2026; classifications can change, so check the guide before relying on a class.

ScopeWhat it allows (per Google)Class
drive.fileCreate new files, or modify files the user opens with the app or shares with it through the Google Picker or the app's file pickerNon-sensitive
drive.appdata and drive.appfolderThe app's own configuration data in DriveNon-sensitive
drive.installAppear in Drive's "Open with" and "New" menusNon-sensitive
drive.apps.readonlyView the apps authorised to access the user's DriveSensitive
driveFull view and management of all Drive filesRestricted
drive.readonlyView and download all Drive filesRestricted
drive.metadata and drive.metadata.readonlyView (and for the first, manage) file metadataRestricted
drive.activity and drive.activity.readonlyView (and for the first, add to) the activity record of filesRestricted
drive.meet.readonlyView files created or edited through Google MeetRestricted
drive.scriptsModify the behaviour of the user's Apps Script scriptsRestricted

All scope strings take the prefix https://www.googleapis.com/auth/. Note that drive.readonly is restricted too: read-only access to everything still exposes everything.

What verification requires

  • Eligible app types: Google permits restricted scopes only for specific app types, which it lists per product in its additional requirements for specific API scopes; confirm your use case qualifies before building on a restricted Drive scope.
  • Restricted scope verification: public apps requesting restricted scopes go through Google's verification, including a privacy policy that discloses how Google user data is accessed, used, stored and shared.
  • Security assessment: required when the app accesses restricted data from or through a third-party server. It is performed by an independent assessor approved by Google, using the App Defense Alliance's Cloud Application Security Assessment (CASA) framework, and must be repeated at least every 12 months after the assessor's Letter of Assessment approval date. Adding a new restricted scope may trigger reassessment.
  • Limited Use: the Google API Services User Data Policy restricts restricted-scope data to user-facing features, limits transfers and human reading, and prohibits using it for advertising.

When verification does not apply

Google's verification page lists exceptions, including internal apps whose project belongs to the Workspace or Cloud Identity organisation and whose consent screen uses the Internal user type, personal-use apps, development and testing projects, and service account apps that access only their own data. Verification exceptions do not reduce the access a token carries: an internal app with the full scope still reaches every file its users can. Internal tooling therefore needs the same scope review as third-party apps.

Narrower alternatives: drive.file, drive.readonly, appdata

App needScope to useWhy
Open, edit or save files the user picksdrive.file with the Google PickerPer-file access chosen by the user; non-sensitive
Create new files and work on them laterdrive.fileCovers files the app creates
Store settings or state for the appdrive.appdataHidden app-specific data, not user documents
Show in "Open with" and "New" menusdrive.install plus drive.fileIntegration point without bulk access
Read every file for backup, search indexing or DLPdrive.readonly (restricted)Only where the feature truly needs all files; still requires verification
Write or reorganise across all filesdrive (restricted)Reserve for backup and restore, migration or admin tools that cannot work otherwise

Decision rule: if a person chooses the files, use drive.file. If the app must see files no one chose, ask whether the feature belongs in an admin-approved tool built on a service account with domain-wide delegation, scoped to specific users, rather than in a consumer-style OAuth app. See the Google Workspace Domain-Wide Delegation Security Guide for the risks of that model, which are significant in their own right.

Migrating an app to narrower scopes

  1. Inventory scope use in code: list every Drive API call and the files it touches. Calls on files the user selected or the app created can run under drive.file.
  2. Adopt the Google Picker: Google recommends replacing a custom file picker with the Google Picker API, which supports the different scopes and, combined with drive.file, lets users choose exactly which files the app may access.
  3. Move app state to appdata: keep configuration and caches in the app data folder rather than in visible user files.
  4. Update the consent screen: the scopes on the OAuth consent screen in the Google Cloud console set the maximum the app can ever request. Remove restricted scopes there once code no longer uses them.
  5. Request at point of use: the User Data Policy asks apps to request access in context, when a feature needs it. Ask for any optional broader scope only when the user turns on the feature that needs it.
  6. Test with a pilot group: run the narrowed version for a pilot set of users and confirm that open, save and share flows work with only drive.file grants.
  7. Re-consent and clean up: existing tokens keep their old scopes until revoked, so prompt users to re-authorise and revoke the old broad tokens. Keep the previous release available to roll back if a flow breaks, but do not reintroduce the broad scope on the consent screen without a review.

Admin controls for third-party app access

Workspace administrators control Drive access in the Admin console at Security > Access and data control > API controls, which needs the Service Settings administrator privilege.

ControlSetting (per Google)Effect on Drive scopes
Restrict the Drive serviceManage Google Services: set Drive to Restricted with Change accessOnly Trusted apps can use restricted Drive scopes; restricting stops previously installed untrusted apps and revokes their tokens. Restricting Drive also restricts the Google Forms API
Allow narrow scopes for untrusted apps"For apps that are not trusted, allow users to give access to OAuth scopes that aren't classified as high-risk"Untrusted apps can still use scopes such as user-selected Drive files, but not high-risk ones such as full Drive, read-only, metadata and scripts
Per-app access levelManage Third-Party App Access: Trusted, Limited or BlockedTrusted overrides service restrictions; Limited reaches only unrestricted services; Blocked denies all services and overrides an allowlist entry
Unconfigured appsSettings card: block all third-party API access, or allow apps that only ask for Google sign-in infoSets the default for apps not yet reviewed
Internal appsTrust internal apps checkboxTrusts all organisation-owned apps for restricted APIs; leave it off if internal apps need the same review
User messageCustomise the unauthorised app messageTells users how to request a review instead of finding a workaround

A workable pattern for most organisations: set Drive to Restricted, tick the option that allows non-high-risk scopes for untrusted apps, mark reviewed apps that genuinely need the full scope as Trusted for the organisational units that use them, and give users a message explaining the request route. Smaller organisations without a review team can start with the restriction alone, which removes most full-scope exposure without blocking per-file apps. See the Google Workspace Security Guide for the wider tenant baseline.

Auditing existing grants

Two data sources show which apps hold Drive scopes.

  • OAuth Token audit log: in the Reports API the application name is token. Events include authorize, revoke, deny, request and activity; authorize and revoke events carry app_name, client_id, client_type and scope, and activity events add api_name, method_name and num_response_bytes.
  • Directory API tokens resource: tokens.list returns the tokens a user has issued to third-party apps, each with clientId, displayText, scopes, anonymous and nativeApp; tokens.delete removes all of a user's tokens for one client.

Detection and measurement

  • Alert on new full-scope grants: authorize events where scope contains auth/drive or auth/drive.readonly for a client ID not on the Trusted list.
  • Watch volume: activity events with high num_response_bytes for Drive from a single client, which can indicate bulk download.
  • Flag unverified clients: tokens where anonymous is true or the app name is unfamiliar.
MetricTarget
Distinct client IDs holding drive or drive.readonlyFalling each quarter; each one Trusted with a named owner
Users with a full-scope Drive tokenOnly users of reviewed apps
Time from new full-scope authorise event to reviewWithin 5 working days
Internal apps still requesting restricted Drive scopesZero without a documented exception
Grants unused for 90 days (no activity events)Revoked

For step-by-step inventory and removal, see How to Inventory third party oauth apps in google workspace and How to revoke a malicious or risky OAuth app across Google Workspace and block it. The Google Workspace Audit Log Detection Guide covers the wider log set.

Framework mapping

FrameworkReferenceHow it applies to Drive scopes
NIST CSF 2.0PR.AA-05 Access permissions managed with least privilegeRestricting Drive and moving apps to drive.file
NIST CSF 2.0GV.SC-07 Supplier and third-party riskReviewing third-party apps before marking them Trusted
NIST CSF 2.0DE.CM-09 Monitoring of software and dataAlerting on token authorise and activity events
NIST SP 800-53 Rev 5AC-6 Least PrivilegeNarrowest Drive scope for each feature
NIST SP 800-53 Rev 5SA-9 External System ServicesConditions for apps that hold user data on their own servers
NIST SP 800-53 Rev 5AU-6 Audit Record Review, Analysis, and ReportingRegular review of OAuth Token audit events

Common failure patterns

  • Full scope for a file picker feature: an app requests drive only to open and save user-chosen files, which drive.file with the Picker would cover.
  • Treating read-only as safe: approving drive.readonly as low risk, when it exposes every reachable file for download.
  • Trusting all internal apps: ticking Trust internal apps so internal scripts with the full scope bypass review.
  • Narrowing code but not tokens: shipping a drive.file release while old full-scope refresh tokens stay valid.
  • No owner for Trusted apps: apps marked Trusted years ago, with no named owner and no recent activity, still holding full access.

Practitioner checklist

  • List every app holding drive, drive.readonly or Drive metadata scopes, from token audit events and tokens.list.
  • Set the Drive service to Restricted in API controls and allow non-high-risk scopes for untrusted apps.
  • Mark only reviewed, owned apps as Trusted, at the narrowest organisational unit that needs them.
  • Leave Trust internal apps off unless internal apps go through the same scope review.
  • For in-house apps, move to drive.file with the Google Picker and drive.appdata for app state, and remove restricted scopes from the consent screen.
  • Revoke old broad tokens after migration and confirm with token audit events.
  • Alert on new authorise events for full or read-only Drive scopes from untrusted clients.
  • Review Trusted apps and unused grants quarterly.

Standards and references

Related NHI Mgmt Group resources: OAuth Scope Design Guide · Google Workspace Security Guide · How to Inventory third party oauth apps in google workspace · Google Workspace Domain-Wide Delegation Security Guide

PDF for subscribers

Take this guide with you

Every section, table and checklist in one PDF, with links to the sources and related guides. Subscribe to our weekly NHI & AI Identity Journal and we’ll email you a download link.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

PDF Downloads for Newsletter Subscribers

Get the guide

Enter your details and we’ll email you a download link.

The full guide is free to read online. The PDF is a thank you for subscribing.

Fill in all fields marked * and tick both boxes to continue.