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.
| Scope | Conversation type | With a bot token | With a user token | Typical legitimate use | Suggested rating |
|---|---|---|---|---|---|
| channels:history | Public channels | Public channels the bot has joined | All public channels in the workspace, joined or not | Summaries, search or knowledge bots in specific channels | Medium (bot), High (user) |
| groups:history | Private channels | Private channels the bot has been added to | Every private channel the user is a member of | Incident or support bots invited to specific private channels | High |
| im:history | Direct messages | Direct messages with the bot itself | Every direct message conversation of the authorising user | Bot: conversational assistants. User: archiving or personal productivity tools | Medium (bot), High (user) |
| mpim:history | Group direct messages | Group direct messages the bot is in | Every group direct message the user is in | Rare; personal tools and archivers | High |
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.
| Question | Bot token with history scopes | User token with history scopes |
|---|---|---|
| Whose messages can it read? | Conversations the bot is in | Conversations the authorising user is in, plus all public channels |
| Is access visible to others? | Yes, the bot appears as a channel member | No visible membership; it reads as the user |
| How does access grow? | When people add the bot to more conversations | Whenever the user joins conversations |
| Effect of the user leaving | None | Token stops working when the user is deactivated, which can break business processes |
| Who can scope it down? | Channel members, by removing the bot | Only 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 component | How 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 resolved | Detect apps already approved that now request more, for example a reinstall adding im:history |
| App distribution | Distinguish internal apps from Slack Marketplace approved apps when routing requests |
| Previous resolution and app IDs | Auto-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
- Which of the four history scopes does the app request, and with which token type? Ask for bot scopes and user scopes separately.
- Can the feature work with the bot invited to named channels instead of a user token?
- Does the vendor store message content, for how long, in which region, and does it use it for model training?
- Who owns the app internally, and when will it be reviewed again?
- 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.
| Action | Slack description (summary) | Why it matters for history scopes |
|---|---|---|
| app_installed | An app has been installed | New potential reader of message history |
| app_scopes_expanded | An app was granted additional OAuth scopes | Alert when the added scopes include any *:history |
| app_approved / app_restricted | Approval decisions where approved apps are required | Evidence that review happened |
| app_resources_added / app_resources_granted | Access to resources granted | Watch for apps gaining channel access |
| bot_token_upgraded | A bot token was upgraded to granular permissions | Check the new granular scope set |
| app_uninstalled | A Slack app was uninstalled | Confirms removal after a review |
Safer alternatives and least privilege
| Need | Narrower design | Instead of |
|---|---|---|
| Respond when someone asks the bot | app_mentions:read (bot only), which lets the app view messages that directly mention it | channels:history across all channels |
| Act on a user command | Slash commands or shortcuts, which deliver only the invocation payload | Reading the channel to find commands |
| Summarise one team's channel | Bot token with channels:history or groups:history, bot invited only to that channel | A user token that reads every public channel |
| React to new messages | Events API subscription for the specific channels the bot is in | Repeated polling of conversations.history |
| Conversational assistant in DMs | Bot token with im:history, limited to DMs with the bot | User-token im:history |
| Retention, archiving or legal hold | Slack's own export and eDiscovery features, under admin control | Third-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
- Inventory: export installed apps and their bot and user scopes; flag every app with a history scope, and every user token with one.
- Rate scopes: set scope ratings and a Review rule for High scopes in audit-only fashion first, watching requests for two weeks.
- 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.
- Enforce: turn on Only allow pre-approved apps and route history requests to App Managers.
- 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.
- 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
| Framework | Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | AC-6 Least Privilege; AC-2 Account Management; AU-6 Audit Record Review, Analysis, and Reporting | Minimal scopes, owned app identities, review of app audit events |
| NIST CSF 2.0 | PR.AA-05 | Access permissions managed with least privilege |
| CIS Controls v8.1 | Control 6 Access Control Management | Approve and revoke app access through a defined process |
| ISO/IEC 27001:2022 Annex A | A.5.15 Access control; A.8.2 Privileged access rights | Treat broad history-reading tokens as privileged |
| MITRE ATT&CK | T1550.001 Application Access Token; T1213 Data from Information Repositories | Stolen 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
- Slack: channels:history scope
- Slack: im:history scope
- Slack: conversations.history method
- Slack: Rate limit changes for non-Marketplace apps
- Slack Help: Manage app approval for your workspace
- Slack Help: Guide to automation rules for app approval
- Slack: Audit Logs API methods and actions reference
- NIST: SP 800-53 Rev 5 Security and Privacy Controls
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