I’m using the auth0 1.13.3 java library.
the following code returns a userPage object with items(users), but the start, length, total(…) are null.
int pageNumber = 0;
int pageSize = 10;
UsersPage usersPage = managementAPI.users()
.list(new UserFilter().withPage(pageNumber, pageSize))
it seems that the api works ok, but I’d like to get the total also.
Welcome to the Auth0 Community Forum!
So you are receiving a list of users but you are getting a null value for length? Can you show me how you are calculating the length, total, etc.?
I"m not calculating those values, I expect to get them from the auth0 service.
Okay I see what you are saying. I think I might have found the problem as well.
It looks like you need to request the totals. Try to add
withTotals to your
Here is the source code.
Let me know how that goes.
seems to do the trick.
Glad you were able to figure it out! GL
This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.