Security and access

What OAuth scopes are, and which ones to refuse

The screen you click through when you connect a tool is a list of scopes. Each line is worth reading before you click Allow.

By the duyan team · Updated · 3 min read

Security and access

In short

  • A scope is one permission an app asks for when you connect it to an account.
  • The app gets what you approve, and often keeps it while you’re away.
  • The same mailbox can be shared for reading only, or for everything.
  • Refuse any scope wider than the job.
  • Remove access at Google or Microsoft, since deleting the app leaves it in place.

What OAuth scopes are

OAuth scopes are the permissions an app asks for when you connect it to one of your accounts. The “Allow” screen lists them, and the app gets what you approve there.

OAuth is the standard behind buttons like “Connect with Google”. The version in use today, OAuth 2.0, was published as RFC 6749 in October 2012.

How it works in practice

You click connect, and Google or Microsoft shows the app’s name and what it wants. When you approve, the app receives a token that carries those scopes.

Many apps also ask to keep access while you’re away. Microsoft words this as “Maintain access to data you have given it access to”.

That access lasts until someone removes it, and a new password doesn’t always end it. Google says a password change revokes app tokens only for certain products.

The same mailbox, from narrow to wide

The same mailbox, from narrow to wide
Gmail scopeGoogle’s description
gmail.readonlyView your email messages and settings
gmail.sendSend email on your behalf
gmail.modifyRead, compose, and send emails from your Gmail account
https://mail.google.com/Read, compose, send, and permanently delete all your email from Gmail

Microsoft 365 splits mail in a similar way. Mail.Read reads, Mail.ReadWrite can also change and delete without sending, and Mail.Send sends.

Which scopes to refuse

Refuse any scope wider than the job. These are the common ones:

  • Full mail access for a tool that only reads. Google tells developers to request it only when an app must delete mail permanently.
  • Send permission for a tool that drafts. A draft can wait in a folder for a person to send.
  • All your Drive files when the tool needs only the files you pick. Google’s drive.file scope covers just those, plus files the app creates.
  • Organisation⁠-⁠wide access for a tool one person uses. In Microsoft 365, “application” permissions work without anyone signed in and can reach every mailbox. They need an admin’s consent.

Also stop if Google warns that it hasn’t verified the app. Google shows that screen when an unverified app asks for sensitive or restricted scopes.

Common mix⁠-⁠ups

  • Signing in and handing over data. “Sign in with Google” can confirm who you are and nothing more. Some apps add data scopes to the same screen, so read it.
  • What an app does and what it could do. Scopes set the most an app could do. A tool that only reads today can send tomorrow if it holds the send scope.
  • Deleting the app. Removing an app from your phone or browser leaves its access in place. Remove the access at Google or Microsoft as well.

What to ask or check

  • Which scopes does the tool request, and which feature needs each one?
  • Is there a narrower scope that would do the job?
  • Does it act as one person, or across the whole organisation?
  • Who in your business can see and remove connected apps? Google Workspace admins find them under API controls, and Microsoft 365 admins under Enterprise apps.
  • Can staff approve apps alone? Microsoft recommends allowing that only for apps from verified publishers.

Want someone to check yours?

We review software, automations and agents that you or someone else built, and list what we’d fix first. About a week, $1,200 fixed, and you keep the written findings either way.

Sources

  1. IETF, RFC 6749, “The OAuth 2.0 Authorization Framework” (October 2012), rfc⁠-⁠editor.org (accessed 5 November 2026)
  2. Google for Developers, “Choose Gmail API scopes”, developers.google.com (accessed 5 November 2026)
  3. Microsoft Learn, “Microsoft Graph permissions reference”, learn.microsoft.com (accessed 5 November 2026)
  4. Google Workspace Admin Help, “Maintain data security after an employee leaves”, knowledge.workspace.google.com (accessed 5 November 2026)
  5. Google for Developers, “Choose Google Drive API scopes”, developers.google.com (accessed 5 November 2026)
  6. Google Cloud Help, “Unverified apps”, support.google.com (accessed 5 November 2026)
  7. Google Account Help, “Manage links between your Google Account & apps from other developers”, support.google.com (accessed 5 November 2026)
  8. Google Workspace Admin Help, “Control which apps access Google Workspace data”, knowledge.workspace.google.com (accessed 5 November 2026)
  9. Microsoft Learn, “Review permissions granted to enterprise applications”, learn.microsoft.com (accessed 5 November 2026)
  10. Microsoft Learn, “Configure how users consent to applications”, learn.microsoft.com (accessed 5 November 2026)

Bring your hardest question

Ask us about keys, access, where your data goes or who can switch it off.

Read⁠-⁠only by default. Your keys stay yours.