# getAll in auth0 showing only last 50 records.But I need all records

**URL:** <https://community.auth0.com/t/getall-in-auth0-showing-only-last-50-records-but-i-need-all-records/134350>\
**Category:** Get Help\
**Tags:** user-search, user-management\
**Created:** [May 17, 2024, 6:16am UTC](https://community.auth0.com/t/getall-in-auth0-showing-only-last-50-records-but-i-need-all-records/134350 "2024-05-17T06:16:11Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![care](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@care](https://community.auth0.com/u/care)\
**Post date:** [May 17, 2024, 6:16am UTC](https://community.auth0.com/t/getall-in-auth0-showing-only-last-50-records-but-i-need-all-records/134350/1 "2024-05-17T06:16:11Z")

</div>

$sdk = new Auth0($configuration);  
$managementApi = $sdk-\>management();  
$auth0Users = $managementApi-\>users();

```
    $allAuth0Users = $auth0Users->getAll();

```

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [May 17, 2024, 1:09pm UTC](https://community.auth0.com/t/getall-in-auth0-showing-only-last-50-records-but-i-need-all-records/134350/3 "2024-05-17T13:09:17Z")

</div>

Hi @care

Welcome to the Auth0 Community!

By default Auth0 allows to receive 50 records per request. To get more you need to include pagination in your request. We have request examples for different programming languages here → [Retrieve Users with the Get Users Endpoint](https://auth0.com/docs/manage-users/user-search/retrieve-users-with-get-users-endpoint)

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![care](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@care](https://community.auth0.com/u/care)\
**Post date:** [May 17, 2024, 1:11pm UTC](https://community.auth0.com/t/getall-in-auth0-showing-only-last-50-records-but-i-need-all-records/134350/4 "2024-05-17T13:11:47Z")

</div>

ok.Can we get the count how many users are there in auth0

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [May 17, 2024, 1:16pm UTC](https://community.auth0.com/t/getall-in-auth0-showing-only-last-50-records-but-i-need-all-records/134350/5 "2024-05-17T13:16:54Z")

</div>

Yes, you can use properties from Managment API to check for available properties → [Auth0 Management API v2](https://auth0.com/docs/api/management/v2/users/get-users#:~:text=include_totals,results%20(false%2C%20default)).

---

<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:** [May 31, 2024, 1:17pm UTC](https://community.auth0.com/t/getall-in-auth0-showing-only-last-50-records-but-i-need-all-records/134350/6 "2024-05-31T13:17:33Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
