TemperStack
Intermediate8 min readUpdated Mar 18, 2026

How to use advanced search modifiers on Slack

Quick Answer

Slack's advanced search modifiers help you find specific messages using operators like from:, in:, before:, and after:. These modifiers can be combined to create precise search queries that filter results by user, channel, date, and content type.

Prerequisites

  1. Active Slack workspace account
  2. Basic familiarity with Slack interface
  3. Understanding of search concepts
  4. Access to channels and direct messages
1

Access Slack's Search Bar

Click the search bar at the top of your Slack workspace or press Ctrl+K (Windows) or Cmd+K (Mac). The search bar will expand and show recent searches and suggestions.
Tip
You can also press Ctrl+F or Cmd+F to quickly jump to the search bar from anywhere in Slack.
2

Use the 'from:' Modifier to Search by User

Type from:username to find messages from specific users. For example:
from:john budget report
This searches for messages containing "budget report" sent by user "john". You can use either the username or display name.
Tip
Use @username format if the regular username doesn't work, like from:@john.smith
3

Filter by Channel or DM with 'in:' Modifier

Use in:channel-name to search within specific channels or in:@username for direct messages. Examples:
in:#general meeting notes
in:@sarah project update
This limits your search to messages within those specific conversations.
Tip
Use in:@me to search only your own messages across all channels and DMs.
4

Search by Date Range with 'before:', 'after:', and 'during:'

Filter messages by time using date modifiers:
before:2026-01-15 - messages before January 15, 2026
after:yesterday - messages after yesterday
during:december - messages from December
Combine with other terms: project update after:2026-01-01
Tip
You can use relative dates like 'yesterday', 'last week', 'this month', or specific dates in YYYY-MM-DD format.
5

Filter by Message Type with 'has:' Modifier

Use has: to find messages containing specific elements:
has:link - messages with links
has:attachment - messages with file attachments
has:emoji - messages with emoji reactions
has:star - starred messages
has:pin - pinned messages
Tip
Combine multiple 'has:' modifiers like 'has:link has:attachment' to find messages with both links and attachments.
6

Use Quotes for Exact Phrases

Wrap phrases in quotes to search for exact matches:
"quarterly review meeting"
Without quotes, Slack searches for messages containing all those words in any order. With quotes, it finds the exact phrase sequence.
Tip
Combine quoted phrases with other modifiers: from:manager "budget approved" after:last-week
7

Combine Multiple Modifiers for Advanced Searches

Create complex searches by combining modifiers:
from:sarah in:#marketing has:attachment before:2026-01-01
"project deadline" from:@teamlead after:last-monday
Use spaces between different modifiers and search terms.
Tip
Start with broader searches and add modifiers to narrow down results if you get too many matches.
8

Save and Reuse Search Queries

After running a search, click the three dots (⋯) next to the search results and select Save search. Your saved searches appear in the search dropdown for quick access. You can also create search shortcuts by typing /remind with your search query.
Tip
Name your saved searches descriptively, like 'Weekly Reports from Manager' to easily identify them later.

Troubleshooting

Search modifier not working or returning no results
Check your spelling of usernames and channel names. Make sure the channel/user exists and you have access to view their messages. Try using @ symbol before usernames: from:@username
Date modifiers showing unexpected results
Ensure date format is correct (YYYY-MM-DD for specific dates). Remember that Slack uses your workspace timezone. Try using relative dates like 'yesterday' or 'last-week' instead of specific dates.
Getting too many or too few search results
If too many results, add more specific modifiers or use quotes for exact phrases. If too few, try removing some modifiers or check if you have permission to view all relevant channels and messages.
Can't find messages you know exist
Check if the messages are in private channels you don't have access to, or if they've been deleted. Some older messages might not be searchable depending on your workspace's message retention settings.

Related Guides

More Slack Tutorials

Other Tool Tutorials

Ready to get started with Slack?

Put this tutorial into practice. Visit Slack and follow the steps above.

Visit Slack