jadolg/rocketchat_API

`.users_list()` doesn't return all the users, is there away to to return the full users list ?

Closed this issue · 4 comments

Hello,

What is the method name to get the full list of users ?

sorry, found it

.users_list().json()

I noticed that .users_list() doesn't return all the users, is there away to to return the full users list ?

users_list() is paginated so you can pass the pagination parameters to get the rest. There was someone some time ago asking to make it into an iterator but it was never done.

Look at https://developer.rocket.chat/reference/api/rest-api/endpoints/other-important-endpoints/offset-and-count-and-sort-info for more information.

Thanks @jadolg

setting the count to 0 returns all of the users, Ref

.users_list(count=0).json()