Open zollo opened 5 years ago
This is likely a PSSlack issue that is just being surfaced in PoshBot
Can you try using PSSlack and getting all the users in your slack instance via that?
Looking into this as mentioned it is an issue with PSSlack / the actual Slack API implementation for returning users
Confirmed - this is not a PoshBot issue! Get-SlackUser only returns 1000 users.
Probably an straightforward fix if someone wants to add paging support similarly to how I did it for channels. https://github.com/RamblingCookieMonster/PSSlack/pull/90. We pin to a specific version of PSSlack so once that is released, we can bump the dependency and have it in the v0.12.0
release (which adds Discord support as well).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Expected Behavior
PoshBot should be able to work with any number of users in the Slack workspace.
Current Behavior
PoshBot can only retrieve 1000 users.
Possible Solution
This is likely due to incorrect pagination via the Slack API.
Steps to Reproduce (for bugs)
Launch PoshBot and connect to a Slack workspace with > 1000 users.
Context
With the 1000 user limit, most users are not able to leverage the bot, we see errors that the user can't be identified. I'm in several Slack spaces with >1000 users so this would be a breaking issue.
Your Environment
PowerShell 5.1 on Windows Server 2019, same issue on Windows 10 1903.