HI I just starting to n8n and exploring nodes. im sorry if there other similar topics.
I am creating a node that will retrieve Slack messages from channels.
I’ve already created a Slack app with the required scopes, but when using OATH credentials, I am getting the error below. And if Im using token credential i can retrieve the messages but limited to the channels where my slack app is installed. Is there a way i can retrieve channel messages with OATH credentials without adding the app in the channel
{
“errorMessage”: “Your Slack credential is missing required Oauth Scopes”,
“errorDescription”: “Add the following scope(s) to your Slack App: channels:history,groups:history,mpim:history,im:history”,
“errorDetails”: {},
“n8nDetails”: {
“nodeName”: “Get the history of a channel”,
“nodeType”: “n8n-nodes-base.slack”,
“nodeVersion”: 2.3,
“resource”: “channel”,
“operation”: “history”,
“time”: “8/15/2025, 4:44:29 PM”,
“n8nVersion”: “1.106.3 (Cloud)”,
“binaryDataMode”: “filesystem”,
“stackTrace”: [
“NodeOperationError: Your Slack credential is missing required Oauth Scopes”,
" at ExecuteContext.slackApiRequest (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Slack/V2/GenericFunctions.ts:75:10)“,
" at processTicksAndRejections (node:internal/process/task_queues:105:5)”,
" at ExecuteContext.execute (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-nodes-base@file+packages+nodes-base_@[email protected]_asn1.js@5_1af219c3f47f2a1223ec4ccec249a974/node_modules/n8n-nodes-base/nodes/Slack/V2/SlackV2.node.ts:554:23)“,
" at WorkflowExecute.runNode (/usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1212:9)”,
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:1582:27",
" at /usr/local/lib/node_modules/n8n/node_modules/.pnpm/n8n-core@file+packages+core_@[email protected]_@[email protected]_0c275070fd0434c00ffd62213b2bcae4/node_modules/n8n-core/src/execution-engine/workflow-execute.ts:2158:11"
]
}
}