Slack 用户 ID 和访问令牌在团队或用户之间是唯一的

Slack user id and access token unique across teams or users

Slack 中的用户 ID 在团队或用户之间是唯一的吗?例如,如果用户 A 为团队 A 和团队 B 安装了一个应用程序,那么两个团队之间的用户 ID 和访问令牌是否相同?

Slack 用户 ID 仅对包含它们的团队而言是唯一的——您在与其他团队合作时可能会遇到重复使用的 ID,Slack 鼓励您在存储 ID 时牢记这一点——您需要按团队 ID 对它们进行分区。

根据文档,id 仅在团队中是唯一的。

https://api.slack.com/types/user

id, String - Identifier for this workspace user. It is unique to the workspace containing the user. Use this field together with team_id as a unique key when storing related data or when specifying the user in API requests. We recommend considering the format of the string to be an opaque value, and not to rely on a particular structure.

截至撰写本文时,用户 ID 现在是全球唯一的。

More info here