<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
Limited Number of Results Returned with the Get Users API
Lifecycle Management
Okta Classic Engine
Okta Identity Engine
Overview

When making API calls with the Okta Users API and a search query parameter, only ten users are returned in the results.

  • For example, running an API call with /api/v1/users?q=nathan only returns ten users when more should be returned.
Applies To
  • Okta Users API
Cause

When the "q" search parameter is used, only ten users are returned by default. For more information, please check the Okta API documentation.

Solution

This issue can be resolved in one of two ways:

  • Limit parameter
    • Use the limit parameter with the search to return more than ten users (up to a maximum of 200).
      • For example, this API call would be formatted similarly to the following:
        /api/v1/users?q=nathan&limit=200
  • List Users with search
    • The search parameter can be used instead of the limit parameter. This parameter supports pagination and can return up to 200 results per API call and more with pagination.
      • For example, this API call would be formatted similarly to the following: 
        /api/v1/users?search=profile.firstName+eq+%22nathan%22

 

NOTE: 

Related References

Recommended content

Loading
Limited Number of Results Returned with the Get Users API