'Slack API users.list doesn't return all users

The following api to get all users in a workspace doesn't return all users.

https://api.slack.com/methods/users.list

I thought may be its a limit thing but nope, no matter what value I set for the limit, I still don't get all members in my Company's slack workspace. I am using a bot token that I have installed in the workspace.

What can I do to resolve this?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source