Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slack Export users.json missing entries for external users #292

Open
camisotro opened this issue Jun 11, 2024 · 3 comments
Open

Slack Export users.json missing entries for external users #292

camisotro opened this issue Jun 11, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@camisotro
Copy link

Describe the bug
My Slack history includes some channels and conversations that belong to different Slack orgs, e.g. they invited us using Slack Connect to join one of their channels. When I do a dump in Slack Export format, these users are missing from users.json completely. As a result tools like SlackLogViewer will crash on it.

To Reproduce
Steps to reproduce the behavior:

  1. Set up a scenario where you are on one Slack instance and another user has invited you via Slack Connect to join a channel located on their instance.
  2. Use slackdump to make an export of the channel in which you chatted with them
  3. Observe that the user ID attached to their messages does not appear at all in users.json

Expected behavior
Even if slackdump is unable to find the user's name by API, it should ensure users.json contains an entry for every user ID that appears in exported chats. Otherwise parsing tools have difficulty with the result files.

@rusq
Copy link
Owner

rusq commented Jun 30, 2024

Cool, thanks for the report. The reason external users are not there is because the "user.list" api does not return it. Most likely it requires polling some different api endpoint.

@rusq rusq added the enhancement New feature or request label Jun 30, 2024
@camisotro
Copy link
Author

Thanks. Yeah I figured something like that. Ideally it would create at least some kind of placeholder entry.

My company is migrating away from Slack later this year, and I was able to do a successful test dump except that it just won't open in the reader tools with a bunch of missing user IDs. So maybe a good idea would be for it to keep a running count of all the user IDs it sees, and then attempt to synthesize placeholder entries for them.

Those IDs still work when manually calling the URL of the chat.

@rusq
Copy link
Owner

rusq commented Nov 21, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants