errbotio / err-backend-slackv3

Slack Events and RTM backend for Errbot
GNU General Public License v3.0
27 stars 28 forks source link

Using org level tokens #96

Closed gdelaney closed 1 year ago

gdelaney commented 1 year ago

When using the backend with a Org level scope token, the creation and population of the user cache expects all users to have a team_id field in the profile. Users (mostly bot) that use a Org level bot token do not have a team_id and the bot fails to start up.

I have raised a pr #95 but I am unsure if thats the correct way, as a user at the org level has a list of teams. Should we query the api for all the teams (workspaces) a user is a member of or just use the enterprise_id of the org user as the team to fetch the domain?

nzlosh commented 1 year ago

https://github.com/errbotio/err-backend-slackv3/pull/95 has been merged. Thank you for the contribution @gdelaney