function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Krishna Prasad P SKrishna Prasad P S 

Maximum number of user records retrieved in a single query

Hi,

Using query, it is possible to get all user details from SalesForce (ex: /services/data/v{version#}/query/?q={SOQL queyy} ). I would like to know what is the maximum number of user records retrieved in a single query.

Please advise.
Srinivas SSrinivas S
SOQL query supports max. 50000 records, applied the same for the users also.
------------
Thanks,
Srinivas
- Please mark as solution if your problem is resolved.
Amit Chaudhary 8Amit Chaudhary 8
I guess no limit if there. Even i tested for 3839 user in my org

User-added image

Mostly we should use 10,000 Limit for list.

Let us know uf this will help you

 
Krishna Prasad P SKrishna Prasad P S
Thanks for the replies.

I got a reference link from SalesForce community (https://help.salesforce.com/HTViewSolution?id=000181883&language=en_US) regarding the maximum number of records fetched by SOQL queries over REST API. According to that 2000 is the number of records and then we need to use "nextRecordsURL". Please advise.