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.
| Factor | Lower risk | Higher risk |
|---|---|---|
| Breadth | Data the user selects or the app creates | All users, all files, all mailboxes, all repositories |
| Access context | Delegated, limited by the signed-in user | App-only, domain-wide delegation, or admin-installed org-wide token |
| Operation | Read metadata | Read content, write, delete, send as a user |
| Privilege escalation | None | Can assign roles, grant permissions, add credentials or change security settings |
| Persistence | Short-lived access only | Offline 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.
| Scope | Access granted (from GitHub docs) | Risk note | Control |
|---|---|---|---|
| repo | Full access to public and private repositories, including code, commit statuses, collaborators, invitations, deployment statuses and webhooks | Source code and secrets in code across every repository the user can reach | Prefer a GitHub App installed on selected repositories |
| admin:org | Full management of the organisation, its teams, projects and memberships | Can change membership and team access for the whole organisation | Owner approval only; time-limited exception |
| workflow | Add and update GitHub Actions workflow files | Workflows run code in CI and can use GITHUB_TOKEN and repository secrets | Treat as code execution; require branch protection and review |
| write:packages | Upload or publish packages to GitHub Packages | Software supply chain: a malicious package version reaches consumers | Restrict to release automation identities |
| delete_repo | Delete adminable repositories | Destructive; enables extortion or sabotage | Approve only for documented lifecycle tooling |
| admin:repo_hook, admin:org_hook | Read, write, ping and delete repository or organisation hooks | A new webhook can send repository events to an external endpoint | Monitor 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.
| Scope | Access granted (from Google docs) | Risk note | Control |
|---|---|---|---|
| https://mail.google.com/ | Read, compose, send and permanently delete all email (restricted) | Full mailbox, including password reset mail; can delete evidence | Block or trust per app; ask for gmail.readonly or gmail.metadata where possible |
| gmail.modify, gmail.readonly | Read, compose and send without permanent delete; or read messages and settings (both restricted) | Full message content for every authorising user | Restrict Gmail high-risk scopes to trusted apps |
| gmail.settings.sharing | Manage sensitive settings such as who can manage the mailbox (restricted) | Can add mailbox delegates and forwarding for persistence | Allow only for admin tooling with documented need |
| drive, drive.readonly | Full access to, or read and download of, all Drive files (restricted) | All files the user can open, including shared drives | Ask for drive.file, which covers only files the user opens or shares with the app |
| admin.directory.user, admin.directory.group | View and manage provisioning of users or groups in the domain | Account and group changes, including membership of privileged groups | Admin-only consent; review with domain-wide delegation grants |
| cloud-platform | See, edit, configure and delete Google Cloud data | Broad cloud access well beyond Workspace data | Treat 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.
| Permission | Access granted (from Microsoft docs) | Risk note | Control |
|---|---|---|---|
| RoleManagement.ReadWrite.Directory | Read and manage directory RBAC settings, including directory role membership and PIM for Entra roles APIs | Microsoft warns it lets an app grant additional privileges to itself, other apps or any user | Treat as Global Administrator equivalent; deny by default |
| AppRoleAssignment.ReadWrite.All | Manage permission grants for application permissions to any API and application assignments for any app | Same warning: can grant itself further permissions | Deny by default; alert on any new grant |
| Application.ReadWrite.All | Create, read, update and delete applications and service principals | Can add credentials to other apps and act as them | Use Application.ReadWrite.OwnedBy where it fits |
| Directory.ReadWrite.All | Read and write directory data such as users and groups (no deletion) | Microsoft advises choosing resource-specific permissions instead of directory permissions | Replace with User or Group scoped permissions |
| Mail.ReadWrite, Mail.Send (application) | Create, read, update and delete mail in all mailboxes; send mail as any user | Tenant-wide mailbox access and impersonation by email | Limit 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 collections | Every SharePoint and OneDrive file in the tenant | Use 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.
| Scope | Access granted (from Slack docs) | Risk note | Control |
|---|---|---|---|
| admin | Administer a workspace (user token only), including team.accessLogs and the SCIM API | Access logs and user provisioning; Slack calls this scope special and its capability list is not exhaustive | Owner approval only; document every use |
| admin.users:write | Modify account information through admin.* methods (user token, installed org-wide by an Enterprise Org Admin or Owner) | Account changes across the whole organisation | Restrict to identity lifecycle tooling |
| channels:history, groups:history, im:history, mpim:history | View 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 messages | Prefer bot tokens; question any request for im:history |
| files:read | View files shared in channels and conversations the app has been added to; download them | Shared documents, exports and screenshots often hold credentials | Approve only with a stated file use case |
| users:read.email | View email addresses of people in a workspace | Builds a target list for phishing | Approve only where identity matching is needed |
| chat:write.customize | Send messages as the app with a customised username and avatar | Messages can look as if they came from a person or another service | Approve 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.
- 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.
- 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.
- 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.
- 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.
- Replace, do not just revoke: agree the narrower scope with the vendor (Sites.Selected, drive.file, GitHub App on selected repositories, bot scopes).
- 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
| Framework | Reference | How it applies |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-6 Least Privilege; AC-2 Account Management; CM-7(5) Allow-by-exception; SA-9 External System Services | Minimum scopes, owned and reviewed grants, an approved app list, vendor-held access |
| NIST CSF 2.0 | PR.AA-05; GV.SC-07 | Least privilege permissions reviewed over time; risk from third-party apps monitored |
| OWASP Non-Human Identities Top 10 | NHI3:2025 Vulnerable Third-Party NHI | Third-party apps holding broad, standing access |
| MITRE ATT&CK | T1528 Steal Application Access Token; T1098.003 Additional Cloud Roles | Abuse 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
- GitHub Docs: Scopes for OAuth apps
- GitHub Docs: About OAuth app access restrictions
- Google for Developers: Choose Gmail API scopes
- Google Workspace Admin Help: Control which third-party and internal apps access Google Workspace data
- Microsoft Learn: Microsoft Graph permissions reference
- Microsoft Learn: Configure how users consent to applications
- Slack Developer Docs: Scopes reference
- Slack Help Center: Manage app approval for your workspace
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.