Using n8n cloud.
I am trying to search inside a Slack channel using Slack node
What is the error message (if any)?
Your Slack credential is missing required Oauth Scopes
NodeOperationError: Your Slack credential is missing required Oauth Scopes at Object.slackApiRequest (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Slack/V2/GenericFunctions.js:47:19) at processTicksAndRejections (node:internal/process/task_queues:95:5) at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/Slack/V2/SlackV2.node.js:594:44) at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:722:19) at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:711:51 at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1141:20
The error looks to be correct, I added the search:read scope yesterday as it was missing. In theory adding the app to your instance again and creating a new credential should be enough to get it working.
I will have another look and see if I have missed something else.
I’ve found partially working workaround.
I’ve used Access Token access instead of OAuth2.
I’ve created new app in my workspace and I’ve used “User” access token, not the “Bot User” access token - this is important because documentation instructs otherwise, but with “Bot User” access token connection gives error right away:
With “User” access token search works fine.
It seems this is related to the fact that in Scopes configuration you cannot assign “search:read” to the bot token, it is not in the list. It is only available for user token.