Describe the problem/error/question
I’m trying to manage invite users to a private channel that the authorized user has access to. However the Slack OAuth2 credentials is not requesting the needed scopes even though the Slack App has the User Scopes set in the Apps configuration. The list of user scopes is hard coded in the credentials.
Slack Node “Invite users to a channel” is not having sufficient scopes, as the scope list requested for the auth token is hard coded in the node. The scopes needed are groups:write.invites and groups:write.
So I decided to work around this and use the HTTPrequest node with a Generic OAuth2 credential. Following the Slack docs I’ve set the Auth URI Query parameters:
user_scope=groups:read usergroups:read usergroups:write channels:write.invites groups:write.invites groups:write
The thing now is: Slack returns two tokens, a bot token (which is the default access_token field) and the user token in an additional field. The HTTPReqest Node only uses the default access_token where as the Slack Nodes use the authed_user.access_token(See Installing with OAuth | Slack Developer Docs).
How do I get n8n to work with the user token and not limit the scopes that I need to call all APIs?
I’m running on cloud so no custom nodes etc.
What is the error message (if any)?
"error":
"missing_scope",
"needed":
"groups:write.invites,groups:write",
"provided":
"identify,channels:history,groups:history,im:history,mpim:history,channels:read,files:read,groups:read,im:read,mpim:read,reactions:read,search:read,stars:read,users:read,usergroups:read,users.profile:read,channels:write,chat:write,files:write,reactions:write,stars:write,usergroups:write,users.profile:write"
Please share your workflow
Share the output returned by the last node
Information on your n8n setup
- n8n version: 1.119.1
- Database (default: SQLite): -
- n8n EXECUTIONS_PROCESS setting (default: own, main): -
- Running n8n via (Docker, npm, n8n cloud, desktop app): cloud
- Operating system: -

