# Auth0-java mgmt api to get full list of users

**URL:** <https://community.auth0.com/t/auth0-java-mgmt-api-to-get-full-list-of-users/8661>\
**Category:** Get Help\
**Tags:** users-list-search-so, users-list, get-user-info-using-\
**Created:** [November 3, 2017, 3:32am UTC](https://community.auth0.com/t/auth0-java-mgmt-api-to-get-full-list-of-users/8661 "2017-11-03T03:32:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rmtodd618](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@rmtodd618](https://community.auth0.com/u/rmtodd618)\
**Post date:** [November 3, 2017, 3:32am UTC](https://community.auth0.com/t/auth0-java-mgmt-api-to-get-full-list-of-users/8661/1 "2017-11-03T03:32:57Z")

</div>

I am attempting to get all 180 users from my api call to the mgmt api. All I am getting is 50 please help

```
private UsersPage getUsersPage() {
    try {
        TokenHolder execute = authAPI.requestToken(auth0Audience).execute();
        ManagementAPI managementAPI = new ManagementAPI(auth0Domain, execute.getAccessToken());
        com.auth0.net.Request<UsersPage> list = managementAPI
                .users()
                .list(new UserFilter());
        return list.execute();
    } catch (Auth0Exception exception) {
        // request error
        System.out.printf(exception.toString());
    }
    return null;
}

```

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [November 3, 2017, 10:10pm UTC](https://community.auth0.com/t/auth0-java-mgmt-api-to-get-full-list-of-users/8661/2 "2017-11-03T22:10:18Z")

</div>

The underlying endpoint being called ([users search](https://auth0.com/docs/api/management/v2#!/Users/get_users)) is paginated so it does not return all users in the same response so additional requests would be required. In addition, depending on the amount of users that endpoint may not be most suitable (for the case of 180 users you could increase page size to the maximum of 100 and perform two requests, for significant user count you may want to take in consideration [user export](https://auth0.com/docs/api/management/v2#!/Jobs/post_users_exports)).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [March 2, 2018, 5:57am UTC](https://community.auth0.com/t/auth0-java-mgmt-api-to-get-full-list-of-users/8661/3 "2018-03-02T05:57:16Z")

</div>


