I want to deliver direct messages to different users by using Slack bot. I'll send them based on events of my web app.
But different companies will install my bot in different Workspaces. That also means an user X of company A is in workspace A, and user Y of company B is in Workspace B
My doubts are:
If I call API method users.list
will it include all users from all workspaces that installed the bot?
The bot user access token is the same for all workspaces?
1 - No. users.list
will only contain the users for one workspace. The one that is linked to the token you are using in the API call.
2 - No. There is a different bot token for every workspace
Here is how it works.