Join our Newsletter — 33% off our NHI Course
Home› Guides› Slack History Scopes: Channels, Groups and IM History…
Guide Non-Human Identity (NHI)

Slack History Scopes: Channels, Groups and IM History Read Risk

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

The four Slack history scopes decide whether an app can read the conversations your organisation holds in public channels, private channels and direct messages, and they are among the most sensitive permissions an app can request. channels:history, groups:history, im:history and mpim:history each unlock the same two read methods, but what they reach depends on the conversation type and, above all, on whether the app holds a bot token or a user token. This guide explains what each scope grants, why a user token with im:history deserves the closest review, how to use Slack's app approval and scope ratings to control requests, which audit log actions to watch and which narrower designs meet most needs. It is written for Slack administrators and SaaS security teams who approve and review apps.

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

Key takeaways

  • Four scopes, one capability. Each history scope lets an app call conversations.history and conversations.replies, and receive message events, for one conversation type: public channels, private channels, direct messages or group direct messages.
  • Token type sets the reach. A bot token reads only conversations the bot is a member of. A user token reads every private conversation the authorising user belongs to and all public conversations.
  • User-token im:history is the high-water mark. It lets an app read the direct messages of whoever authorised it, which is personal and often confidential data. Treat it as a high-risk scope with named justification.
  • Use the approval tooling you already have. Slack's scope ratings and automation rules can route any request containing a history scope to human review, on all subscriptions.
  • Prefer narrower designs. app_mentions:read, slash commands and channel-specific bot membership meet most use cases without broad history access.

What the history scopes grant

Slack scopes are permissions an app requests during OAuth installation. The history scopes are read scopes for message content. Each one is documented as letting the app "view messages and other content" in a conversation type that the app "has been added to". In practice they unlock:

  • Web API methods: conversations.history (the message timeline of a conversation) and conversations.replies (the messages in a thread).
  • Events API events: the message events for the matching conversation type, such as message.channels for public channels and message.im for direct messages, plus related events such as message_changed and message_deleted.
  • Other content: message metadata such as thread replies and edits that appear in the timeline.

Two points shape the risk. First, the scopes give read access to message bodies, the most sensitive data most organisations hold in Slack: incident discussions, customer details, credentials pasted by mistake and HR conversations. See How to find secrets in Slack and Teams messages. Second, an app combining history scopes with outbound network access becomes a data export path, so the app's own security and data handling matter as much as the scope. For token types, storage and rotation, see the Slack Tokens Security Guide.

Scope by scope: channels, groups, im and mpim

The scope names follow Slack's original conversation types: "groups" means private channels and "mpim" means multi-person direct messages. All four support bot, user and legacy bot tokens.

ScopeConversation typeWith a bot tokenWith a user tokenTypical legitimate useSuggested rating
channels:historyPublic channelsPublic channels the bot has joinedAll public channels in the workspace, joined or notSummaries, search or knowledge bots in specific channelsMedium (bot), High (user)
groups:historyPrivate channelsPrivate channels the bot has been added toEvery private channel the user is a member ofIncident or support bots invited to specific private channelsHigh
im:historyDirect messagesDirect messages with the bot itselfEvery direct message conversation of the authorising userBot: conversational assistants. User: archiving or personal productivity toolsMedium (bot), High (user)
mpim:historyGroup direct messagesGroup direct messages the bot is inEvery group direct message the user is inRare; personal tools and archiversHigh

The bot and user columns follow the conversations.history reference, which states that a bot token can read "any conversation the bot is a member of" and a user token can read "any private conversation the user is a member of, and all public conversations". The suggested ratings are a starting point for your own scope ratings, not Slack's classification.

Rate limits for distributed apps

Slack changed rate limits on 29 May 2025 for commercially distributed apps that are not listed in the Slack Marketplace. For apps created on or after that date, and for new installations of existing unlisted apps, conversations.history and conversations.replies move to Tier 1: one request per minute, with a default and maximum limit of 15 messages. Marketplace apps and internal customer-built apps keep 50+ requests per minute and up to 1,000 objects per request. This helps when assessing vendor apps: an unlisted third-party app asking for history scopes has a narrow read rate, while an internal app with a leaked token can page through history much faster, which makes internal tokens just as important to protect.

Bot versus user tokens and why it matters

A bot token (xoxb-) acts as the app's own bot user. Its reach grows only as people invite the bot into conversations, which is visible to channel members and easy to review. A user token (xoxp-) acts as the person who authorised the app and inherits their visibility, limited by the user scopes they approved.

QuestionBot token with history scopesUser token with history scopes
Whose messages can it read?Conversations the bot is inConversations the authorising user is in, plus all public channels
Is access visible to others?Yes, the bot appears as a channel memberNo visible membership; it reads as the user
How does access grow?When people add the bot to more conversationsWhenever the user joins conversations
Effect of the user leavingNoneToken stops working when the user is deactivated, which can break business processes
Who can scope it down?Channel members, by removing the botOnly the user or an admin, by revoking the token or uninstalling

The risk of user-token im:history

Direct messages are where people share things they would not post in a channel: performance and HR matters, customer escalations, personal information and, too often, credentials. A user token with im:history lets an app read every direct message conversation of the person who authorised it. If that person is an executive, an administrator or someone in legal or HR, the token gives access to some of the most sensitive data in the organisation, without any visible sign in the conversations themselves.

  • Treat it as a privileged credential: store it in a secrets manager, turn on token rotation and restrict the token to known IP ranges where the app supports it.
  • Require a named business case: record which user authorised it, why the app needs direct message content and how long the vendor keeps it.
  • Check privacy obligations: reading staff direct messages may engage data protection rules and works council or employee agreements in some jurisdictions. Involve your privacy team before approval.
  • Review on role change: a token authorised by someone who later becomes an administrator or executive inherits their new visibility.

Reviewing apps that request history scopes

Slack's app approval workflow gives administrators control before any token exists. Workspace Owners turn it on from Admin, Apps and workflows, App Management Settings, then Require approved apps and Only allow pre-approved apps. In an Enterprise organisation, approval is turned on automatically when an Org Owner has set an app management policy.

Rating scopes and automating decisions

Slack's automation rules for app approval are available on all subscriptions. They work on scope ratings, so rate the scopes first in the Scope ratings tab, then build rules.

Rule componentHow to use it for history scopes
Scope ratings (Low, Medium, High, Unrated)Rate groups:history, mpim:history and user-token history scopes High; bot channels:history and im:history Medium
Scopes requested"Includes any of those in" the High list: resolve as Review, so a person decides
Scopes resolvedDetect apps already approved that now request more, for example a reinstall adding im:history
App distributionDistinguish internal apps from Slack Marketplace approved apps when routing requests
Previous resolution and app IDsAuto-approve known, reviewed apps by ID; keep everything else in review

Available resolutions are Approve, Restrict (the app cannot be requested again unless its scopes change), Cancel and Review. Assign App Managers so reviews do not wait on Workspace Owners, and turn on Allow members to request apps for approval with a required comment so requests arrive with a reason.

Review questions

  1. Which of the four history scopes does the app request, and with which token type? Ask for bot scopes and user scopes separately.
  2. Can the feature work with the bot invited to named channels instead of a user token?
  3. Does the vendor store message content, for how long, in which region, and does it use it for model training?
  4. Who owns the app internally, and when will it be reviewed again?
  5. Is the app Marketplace approved or unlisted, and does that match how the vendor describes it?

Restricting an app stops new installs and requests; installations made before the restriction keep working until they are uninstalled, so pair any restriction with an uninstall where needed. For a full audit approach, see How to audit Slack apps, bots and tokens.

Audit log actions to monitor

On Enterprise plans, the Audit Logs API (an app with the auditlogs:read user scope, installed on the organisation by the Org Owner) records app lifecycle events. It covers administrative and app actions; for message content monitoring, Slack points to eDiscovery or data loss prevention tools.

ActionSlack description (summary)Why it matters for history scopes
app_installedAn app has been installedNew potential reader of message history
app_scopes_expandedAn app was granted additional OAuth scopesAlert when the added scopes include any *:history
app_approved / app_restrictedApproval decisions where approved apps are requiredEvidence that review happened
app_resources_added / app_resources_grantedAccess to resources grantedWatch for apps gaining channel access
bot_token_upgradedA bot token was upgraded to granular permissionsCheck the new granular scope set
app_uninstalledA Slack app was uninstalledConfirms removal after a review

Safer alternatives and least privilege

NeedNarrower designInstead of
Respond when someone asks the botapp_mentions:read (bot only), which lets the app view messages that directly mention itchannels:history across all channels
Act on a user commandSlash commands or shortcuts, which deliver only the invocation payloadReading the channel to find commands
Summarise one team's channelBot token with channels:history or groups:history, bot invited only to that channelA user token that reads every public channel
React to new messagesEvents API subscription for the specific channels the bot is inRepeated polling of conversations.history
Conversational assistant in DMsBot token with im:history, limited to DMs with the botUser-token im:history
Retention, archiving or legal holdSlack's own export and eDiscovery features, under admin controlThird-party user tokens with all four history scopes

Note that message event subscriptions require the same history scope as the API method (message.channels needs channels:history), so events reduce polling and backfill rather than the scope itself. The real reduction comes from bot tokens and limited bot membership.

Rolling out tighter control

  1. Inventory: export installed apps and their bot and user scopes; flag every app with a history scope, and every user token with one.
  2. Rate scopes: set scope ratings and a Review rule for High scopes in audit-only fashion first, watching requests for two weeks.
  3. Remediate: ask owners of user-token history apps to move to bot designs; reinstall with reduced scopes, since scopes are additive and only a fresh token removes them.
  4. Enforce: turn on Only allow pre-approved apps and route history requests to App Managers.
  5. Roll back safely: if a business process breaks, approve a specific app ID for a time-boxed period rather than relaxing the rule for everyone.
  6. Measure: track the metrics below each quarter.

Metrics: number of apps holding any history scope; number of user tokens with im:history or mpim:history; percentage of history-scope requests resolved by human review; median days from app_scopes_expanded to review; apps with history scopes and no named owner.

Common failure patterns

  • Approving the app, not the scopes: a familiar app name is approved without checking that it asks for user-token im:history alongside its bot scopes.
  • Scope creep through reinstalls: an app adds history scopes in a later version, and app_scopes_expanded is never alerted on.
  • Executive-authorised tools: a productivity app authorised by a senior leader quietly holds a token that reads their direct messages.
  • Restricted but still installed: admins restrict an app after review but forget that existing installations keep working until uninstalled.
  • Tokens in code and pipelines: internal bots with history scopes store tokens in scripts or CI variables, where a leak exposes message history at internal rate limits. See the Slack Enterprise Security Guide for organisation-level controls.

Framework mapping

FrameworkReferenceRelevance
NIST SP 800-53 Rev 5AC-6 Least Privilege; AC-2 Account Management; AU-6 Audit Record Review, Analysis, and ReportingMinimal scopes, owned app identities, review of app audit events
NIST CSF 2.0PR.AA-05Access permissions managed with least privilege
CIS Controls v8.1Control 6 Access Control ManagementApprove and revoke app access through a defined process
ISO/IEC 27001:2022 Annex AA.5.15 Access control; A.8.2 Privileged access rightsTreat broad history-reading tokens as privileged
MITRE ATT&CKT1550.001 Application Access Token; T1213 Data from Information RepositoriesStolen app tokens used to read collaboration data

Practitioner checklist

  • Inventory every app with channels:history, groups:history, im:history or mpim:history, split by bot and user token.
  • Rate history scopes in Slack's Scope ratings tab and route High requests to human review.
  • Turn on Only allow pre-approved apps and assign App Managers.
  • Require a named owner and written business case for any user-token history scope, especially im:history.
  • Prefer app_mentions:read, slash commands and bots invited to named channels.
  • Alert on app_scopes_expanded and app_installed events that involve history scopes.
  • Uninstall restricted apps that are still installed, and reinstall over-scoped apps with fresh, narrower tokens.
  • Store history-scoped tokens in a secrets manager with rotation turned on.

Standards and references

Related NHI Mgmt Group resources: Slack Tokens Security Guide · How to audit Slack apps, bots and tokens · Slack Enterprise Security Guide · Slack AI and Agents in Slack 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.