Intermediate
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
- Active Slack workspace account
- Basic familiarity with Slack interface
- Understanding of search concepts
- 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
This searches for messages containing "budget report" sent by user "john". You can use either the username or display name.
from:username to find messages from specific users. For example:from:john budget reportThis 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
This limits your search to messages within those specific conversations.
in:channel-name to search within specific channels or in:@username for direct messages. Examples:in:#general meeting notesin:@sarah project updateThis 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:
Combine with other terms:
before:2026-01-15 - messages before January 15, 2026after:yesterday - messages after yesterdayduring:december - messages from DecemberCombine with other terms:
project update after:2026-01-01Tip
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 linkshas:attachment - messages with file attachmentshas:emoji - messages with emoji reactionshas:star - starred messageshas:pin - pinned messagesTip
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:
Without quotes, Slack searches for messages containing all those words in any order. With quotes, it finds the exact phrase sequence.
"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:
Use spaces between different modifiers and search terms.
from:sarah in:#marketing has:attachment before:2026-01-01"project deadline" from:@teamlead after:last-mondayUse 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:@usernameDate 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.
Ready to get started with Slack?
Put this tutorial into practice. Visit Slack and follow the steps above.
Visit Slack →