botkit icon indicating copy to clipboard operation
botkit copied to clipboard

Storage 'users' semantics assume globally-unique user ID, whereas Slack API docs indicate otherwise

Open itamarro opened this issue 10 years ago • 1 comments

Slack API docs (https://api.slack.com/types/user) say: "[The user id] is only unique to the team containing the user."

From what I see - and I could totally be missing something - the storage module relies exclusively on the Slack-assigned user ID to retrieve the user data. This would not work correctly for a bot that is connected to several teams, in case the user IDs do overlap.

So, please correct me if I'm wrong, but in the context of a Slack button app, it seems the current implementation and API of the storage module may be inappropriate.

This is true for the current latest version (0.4.2 as of this writing) and previous versions as well.

itamarro avatar Nov 28 '16 07:11 itamarro

You are correct!

The storage system needs to be overhauled to reflect this new information from Slack.

benbrown avatar Dec 19 '16 22:12 benbrown