Join our Newsletter — 33% off our NHI Course
Home› Guides› High-Risk SaaS OAuth Scopes Reference: Microsoft Graph, Google…
Guide SaaS & OAuth Integrations

High-Risk SaaS OAuth Scopes Reference: Microsoft Graph, Google Workspace, Slack, GitHub

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 15 min read
On this page

A handful of OAuth scopes turn a harmless-looking integration into standing access to every mailbox, file, channel or repository in a tenant. Reviewers who approve app consent requests need to recognise those scopes on sight and know which lower-privilege option to ask for instead. This reference lists the scopes and permissions in GitHub, Google Workspace, Microsoft Graph and Slack that grant broad data or administrative access and should always trigger review, with the access each grants, why it matters and the control to apply. It is written for SaaS security, identity governance and third-party risk teams. Platforms are listed alphabetically; order is never a ranking. For the governance programme around these decisions, see the SaaS and OAuth App Governance Guide.

This is an independent guide from NHI Mgmt Group, based on the public documentation of GitHub, Google, Microsoft and Slack as of November 2026. It is not sponsored or reviewed by any of these vendors. Scopes and settings change, so confirm them against each vendor's current documentation.

Key takeaways

  • Three patterns cover most high-risk scopes. Tenant-wide data access (all mail, all files, all channels), the ability to grant privileges (role and permission assignment), and write access to code or automation.
  • App-only access is broader than delegated access. Microsoft states that application permissions reach any data the permission covers, while delegated access is capped by what the signed-in user can see. Google domain-wide delegation and Slack org-wide admin tokens behave in a similar way.
  • Every platform offers a narrower option. Sites.Selected instead of Sites.FullControl.All, drive.file instead of drive, fine-grained GitHub App permissions instead of repo, bot scopes limited to channels the app joins.
  • Consent policy is the main control. Restrict who can grant high-risk scopes, route requests to named approvers and record a business owner for every approved app.
  • Review standing grants, not just new ones. Most risky grants already exist. Inventory them, remove unused ones and re-certify the rest on a schedule.

How to judge scope risk

Rate a requested scope on five questions before reading the vendor's description. A scope that scores high on two or more needs a named approver and a documented business need. For scope design principles from the application side, see the OAuth Scope Design Guide.

FactorLower riskHigher risk
BreadthData the user selects or the app createsAll users, all files, all mailboxes, all repositories
Access contextDelegated, limited by the signed-in userApp-only, domain-wide delegation, or admin-installed org-wide token
OperationRead metadataRead content, write, delete, send as a user
Privilege escalationNoneCan assign roles, grant permissions, add credentials or change security settings
PersistenceShort-lived access onlyOffline access through refresh tokens or long-lived tokens held by the vendor

Two practical rules follow. First, any scope that can grant authorisation (assign roles, add app permissions, manage applications) is effectively an administrator credential, because an app holding it can give itself more. Second, the vendor that holds the token becomes part of your attack surface: a breach of that vendor exposes every tenant that granted the scope. The Consent Phishing and Illicit OAuth Grants Guide covers how attackers obtain these grants.

GitHub

GitHub OAuth app scopes apply to everything the authorising user can reach. GitHub's documentation notes that scopes do not grant any permission beyond what the user already has, and users can edit the requested scopes, so an app may receive less than it asked for. The repo scope applies to all repositories the user can access, which is why GitHub Apps, with fine-grained permissions chosen per repository, are the narrower alternative. See GitHub Apps vs Personal Access Tokens vs OAuth Apps.

ScopeAccess granted (from GitHub docs)Risk noteControl
repoFull access to public and private repositories, including code, commit statuses, collaborators, invitations, deployment statuses and webhooksSource code and secrets in code across every repository the user can reachPrefer a GitHub App installed on selected repositories
admin:orgFull management of the organisation, its teams, projects and membershipsCan change membership and team access for the whole organisationOwner approval only; time-limited exception
workflowAdd and update GitHub Actions workflow filesWorkflows run code in CI and can use GITHUB_TOKEN and repository secretsTreat as code execution; require branch protection and review
write:packagesUpload or publish packages to GitHub PackagesSoftware supply chain: a malicious package version reaches consumersRestrict to release automation identities
delete_repoDelete adminable repositoriesDestructive; enables extortion or sabotageApprove only for documented lifecycle tooling
admin:repo_hook, admin:org_hookRead, write, ping and delete repository or organisation hooksA new webhook can send repository events to an external endpointMonitor hook creation in the audit log

Consent controls: OAuth app access restrictions stop members and outside collaborators from granting OAuth apps access to organisation resources; users request approval and owners decide. GitHub states they are enabled by default for new organisations, and warns that without them any OAuth app authorised by a member can access the organisation's private resources. Enabling restrictions removes access for apps that have not been approved. See How to audit GitHub Apps and OAuth apps in an organisation and the GitHub and GitHub Actions Security Guide.

Availability: OAuth app access restrictions are an organisation setting managed by organisation owners.

Google Workspace

Google classifies OAuth scopes as non-sensitive, sensitive or restricted, and the restricted class covers broad access to Gmail and Drive content. Admins can also grant domain-wide delegation, which Google warns gives an app access to the data belonging to all users without per-user consent. Deeper single-scope references: Gmail Full Access Scope (mail.google.com) and Google Drive Full Scope.

ScopeAccess granted (from Google docs)Risk noteControl
https://mail.google.com/Read, compose, send and permanently delete all email (restricted)Full mailbox, including password reset mail; can delete evidenceBlock or trust per app; ask for gmail.readonly or gmail.metadata where possible
gmail.modify, gmail.readonlyRead, compose and send without permanent delete; or read messages and settings (both restricted)Full message content for every authorising userRestrict Gmail high-risk scopes to trusted apps
gmail.settings.sharingManage sensitive settings such as who can manage the mailbox (restricted)Can add mailbox delegates and forwarding for persistenceAllow only for admin tooling with documented need
drive, drive.readonlyFull access to, or read and download of, all Drive files (restricted)All files the user can open, including shared drivesAsk for drive.file, which covers only files the user opens or shares with the app
admin.directory.user, admin.directory.groupView and manage provisioning of users or groups in the domainAccount and group changes, including membership of privileged groupsAdmin-only consent; review with domain-wide delegation grants
cloud-platformSee, edit, configure and delete Google Cloud dataBroad cloud access well beyond Workspace dataTreat as a cloud admin credential; prefer service-specific scopes

Consent controls: in API controls, admins mark apps as Trusted, Limited or Blocked and set each Google service to Unrestricted or Restricted. Gmail and Drive also support restricting high-risk OAuth scopes. Google states that switching a service to Restricted stops previously installed untrusted apps and revokes their tokens, and that trusting an app overrides a service restriction. The settings card offers "Block all third-party API access" and an option to allow apps that only need Google sign-in. For domain-wide delegation, keep scopes small, review clients regularly and delete those no longer used. See How to Inventory third party oauth apps in google workspace and the Google Workspace Security Guide.

Availability: API controls need the Service Settings administrator privilege; domain-wide delegation needs a super administrator. Some options differ in Education editions.

Microsoft Graph

Microsoft Graph permissions are either delegated (scopes, used with a signed-in user) or application (app roles, used without a user). Microsoft's overview states that with application permissions the app can access any data the permission covers, that only an admin can consent to them, and that only Privileged Role Administrator and Global Administrator can consent to application permissions. It names Directory.AccessAsUser.All as the highest privileged delegated permission across Entra ID. See Delegated vs Application Permissions.

PermissionAccess granted (from Microsoft docs)Risk noteControl
RoleManagement.ReadWrite.DirectoryRead and manage directory RBAC settings, including directory role membership and PIM for Entra roles APIsMicrosoft warns it lets an app grant additional privileges to itself, other apps or any userTreat as Global Administrator equivalent; deny by default
AppRoleAssignment.ReadWrite.AllManage permission grants for application permissions to any API and application assignments for any appSame warning: can grant itself further permissionsDeny by default; alert on any new grant
Application.ReadWrite.AllCreate, read, update and delete applications and service principalsCan add credentials to other apps and act as themUse Application.ReadWrite.OwnedBy where it fits
Directory.ReadWrite.AllRead and write directory data such as users and groups (no deletion)Microsoft advises choosing resource-specific permissions instead of directory permissionsReplace with User or Group scoped permissions
Mail.ReadWrite, Mail.Send (application)Create, read, update and delete mail in all mailboxes; send mail as any userTenant-wide mailbox access and impersonation by emailLimit mailbox reach with Exchange Online application RBAC
Files.ReadWrite.All, Sites.FullControl.All (application)Read, create, update and delete all files in all site collections; full control of all site collectionsEvery SharePoint and OneDrive file in the tenantUse Sites.Selected, which grants only site collections configured in SharePoint Online

Consent controls: user consent settings in Entra ID decide what users may approve. Microsoft recommends allowing user consent only for apps from verified publishers and for permissions you classify as low impact (built-in policy microsoft-user-default-low), rather than the legacy policy that lets users consent to any permission not requiring admin consent. Turn on the admin consent workflow so users can request review, and note that policy changes apply only to future consents, so existing grants need a separate review. See How to find high-privilege Microsoft Graph application permissions and the Entra ID Security Guide.

Availability: consent settings are tenant-wide and changed by administrators with the relevant Entra roles.

Slack

Slack separates bot scopes, which act with the app's own identity, from user scopes, which act on behalf of the person who installed or authorised the app. Bot scopes such as the history scopes reach only conversations the app has been added to, while user tokens reach what the user can see, and admin scopes act across a workspace or Enterprise organisation. Deeper references: Slack History Scopes and the Slack Tokens Security Guide.

ScopeAccess granted (from Slack docs)Risk noteControl
adminAdminister a workspace (user token only), including team.accessLogs and the SCIM APIAccess logs and user provisioning; Slack calls this scope special and its capability list is not exhaustiveOwner approval only; document every use
admin.users:writeModify account information through admin.* methods (user token, installed org-wide by an Enterprise Org Admin or Owner)Account changes across the whole organisationRestrict to identity lifecycle tooling
channels:history, groups:history, im:history, mpim:historyView messages and other content in conversations the app has been added to (bot and user tokens)With a user token, every conversation the user can read, including direct messagesPrefer bot tokens; question any request for im:history
files:readView files shared in channels and conversations the app has been added to; download themShared documents, exports and screenshots often hold credentialsApprove only with a stated file use case
users:read.emailView email addresses of people in a workspaceBuilds a target list for phishingApprove only where identity matching is needed
chat:write.customizeSend messages as the app with a customised username and avatarMessages can look as if they came from a person or another serviceApprove only for internal apps with a clear owner

Consent controls: Workspace Owners can turn on "Require approved apps" with "Only allow pre-approved apps" under App Management Settings, approve or restrict individual apps, let members request apps for approval, and name App Managers to review requests. Approving a request approves the scopes the app uses. Slack notes that restricting an app after installation does not stop it for existing members, so uninstall it as well. See the Slack Enterprise Security Guide.

Availability: app approval is enabled by Workspace Owners; in an Enterprise organisation it turns on when an Org Owner sets an app management policy.

Reviewing and restricting grants

Use the tables above as a deny-by-default list: no scope on them is approved without a business owner, a documented need and a review date. Then work through existing grants.

  1. Inventory existing grants: export OAuth grants and app role assignments from each platform (Entra enterprise applications, Google Workspace app access and token reports, Slack installed apps, GitHub authorised OAuth apps and installed GitHub Apps). Record scopes, consent type, consenting user and last use.
  2. Flag high-risk scopes: match each grant against the tables. Prioritise anything that can grant privileges, any app-only or domain-wide access, and any mail, file or message content scope.
  3. Tighten consent first: before removing old grants, close the door on new ones: Entra user consent limited to verified publishers and low-impact permissions, Google services set to Restricted for Gmail and Drive high-risk scopes, Slack app approval on, GitHub OAuth app access restrictions on.
  4. Pilot removals: revoke unused high-risk grants for a pilot group, notify owners and keep a list of revoked apps and scopes so you can re-grant quickly if a business process breaks.
  5. Replace, do not just revoke: agree the narrower scope with the vendor (Sites.Selected, drive.file, GitHub App on selected repositories, bot scopes).
  6. Re-certify: review every high-risk grant at least quarterly with its business owner, and remove grants whose owner has left.

Small and large organisations: a small organisation can turn on the four consent controls and review a short list of apps by hand. A large organisation needs an app catalogue, a workflow that routes requests by scope risk, and automated detection of new high-risk grants across platforms. The SaaS and OAuth Integrations Health Check is a quick way to baseline.

Detection: alert on new consent to any scope in the tables, new credentials added to an application, new webhooks, new domain-wide delegation clients and admin-scope app installs. Useful metrics:

  • Number of active grants holding a high-risk scope, trended monthly.
  • Share of high-risk grants with a named business owner.
  • Share of high-risk grants used in the last 90 days.
  • Median time to decide an app approval request.
  • Number of app-only or domain-wide grants that could be replaced by a narrower option.

Common failure patterns

  • Reviewing names, not scopes: a familiar vendor name is approved without reading what it asks for.
  • Consent policy without cleanup: new consents are restricted but years of earlier grants stay in place.
  • Admin consent as a rubber stamp: an administrator grants tenant-wide consent to unblock one user's request.
  • Forgotten delegation: migration tools keep domain-wide delegation or org-wide admin tokens after the project ends.
  • Restricted but still installed: an app is marked restricted or blocked while existing tokens keep working until revoked or uninstalled.

Framework mapping

FrameworkReferenceHow it applies
NIST SP 800-53 Rev 5AC-6 Least Privilege; AC-2 Account Management; CM-7(5) Allow-by-exception; SA-9 External System ServicesMinimum scopes, owned and reviewed grants, an approved app list, vendor-held access
NIST CSF 2.0PR.AA-05; GV.SC-07Least privilege permissions reviewed over time; risk from third-party apps monitored
OWASP Non-Human Identities Top 10NHI3:2025 Vulnerable Third-Party NHIThird-party apps holding broad, standing access
MITRE ATT&CKT1528 Steal Application Access Token; T1098.003 Additional Cloud RolesAbuse of granted tokens and of permissions that assign roles

Practitioner checklist

  • Publish the high-risk scope list for all four platforms and require a business owner for every grant on it.
  • Limit Entra user consent to verified publishers and low-impact permissions, with the admin consent workflow on.
  • Set Google Gmail and Drive to Restricted for high-risk scopes and trust apps individually.
  • Turn on Slack "Require approved apps" and name App Managers.
  • Keep GitHub OAuth app access restrictions on and prefer GitHub Apps on selected repositories.
  • Deny RoleManagement.ReadWrite.Directory, AppRoleAssignment.ReadWrite.All and similar privilege-granting permissions by default.
  • Review domain-wide delegation clients and org-wide admin tokens every quarter and delete unused ones.
  • Alert on new high-risk grants, new app credentials and new webhooks.

Standards and references

Related NHI Mgmt Group resources: SaaS and OAuth App Governance Guide, Consent Phishing and Illicit OAuth Grants Guide, OAuth Apps vs Integration Service Accounts, How to detect use of a stolen OAuth refresh token.

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.