---
title: Scalable OAuth 2.0 clients
description: Configure Advanced Identity Cloud to support a high number of OAuth 2.0 clients at scale, optimizing searches for large client deployments.
component: pingoneaic
page_id: pingoneaic:am-oauth2:oauth2-scalable-clients
canonical_url: https://docs.pingidentity.com/pingoneaic/am-oauth2/oauth2-scalable-clients.html
llms_txt: https://docs.pingidentity.com/pingoneaic/llms.txt
docs_for_agents: https://developer.pingidentity.com/build-with-ai/docs-for-agents.md
keywords: ["OAuth 2.0", "OpenID Connect (OIDC)", "Clients", "Setup &amp; Configuration"]
section_ids:
  enable-scalable-clients: Enable scalable clients
  scalable-filter-searches: Filter and page client searches
---

# Scalable OAuth 2.0 clients

Advanced Identity Cloud supports high numbers of OAuth 2.0 clients when you enable scalable clients.

Enable scalable clients for use cases such as:

* Registering new app installs on a device as separate clients, where you require the ability to have different client settings at an app/device level.

* Onboarding and managing machine identities in an IoT environment, where each client needs its own OAuth 2.0 client credentials.

* Managing more than 1000 clients in a realm.

Scalable clients are automatically enabled when the [AI agents feature](../identity-for-ai/ai-agent-identities-enable.html) is enabled.

When scalable clients are enabled, you can manage your clients in the Advanced Identity Cloud admin console as usual. Alternatively, if you use the REST API, you can use the [/realm-config/agents/OAuth2Client](rest-api-oauth2-client-admin-endpoint.html) endpoint to filter query results.

|   |                                                                                                                                                                                                        |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|   | When enabled, you can't use the [Secret Label Identifier](../app-management/register-a-custom-application.html#client-secret-label-identifier) setting if there are more than 1000 clients in a realm. |

## Enable scalable clients

If you anticipate a high number of simultaneous client registrations, enable scalable clients. Scalable clients are automatically enabled when the [AI agents feature](../identity-for-ai/ai-agent-identities-enable.html) is enabled.

1. Go to <https://support.pingidentity.com>.

2. Click Create a case.

3. Follow the steps in the case submission wizard by selecting your account and contract and answering questions about your tenant environments.

4. On the Please answer the following questions to help us understand the issue you're facing page, enter the following details, and then click Next:

   | Field                                            | Value                                  |
   | ------------------------------------------------ | -------------------------------------- |
   | What product family is experiencing the issue?   | Select PingOne Advanced Identity Cloud |
   | What specific product is experiencing the issue? | Select Configuration                   |
   | What version of the product are you using?       | Select NA                              |

5. On the Tell us about the issue page, enter the following details, and then click Next:

   | Field                                      | Value                                                                                                                                                                                                  |
   | ------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
   | Provide a descriptive title for your issue | Enter `Enable scalable OAuth 2.0 clients`                                                                                                                                                              |
   | Describe the issue below                   | Enter a comma-separated list of FQDNs for your sandbox\[[1](#_footnotedef_1 "View footnote.")], development, UAT\[[2](#_footnotedef_2 "View footnote.")], staging, and production tenant environments. |

6. Click Submit.

7. Ping Identity support confirms when they have enabled scalable OAuth 2.0 clients.

## Filter and page client searches

When [scalable clients is enabled](#enable-scalable-clients), you can use this endpoint to query clients and return filtered and paged results.

To filter searches, use the `_queryFilter` parameter with a JSON pointer to narrow results.

For example, to return all clients with an ID that contains `5256`:

```bash
$ curl \
--request GET \
--header "Accept-API-Version: resource=2.0" \
--header "Authorization: Bearer <access-token>" \
"https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/realm-config/agents/OAuth2Client?_queryFilter=_id+co+5256&_pageSize=10"
```

|   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|   | To update a [standalone client](../app-management/standalone-oauth2-clients.html), access it through the Advanced Identity Cloud admin console or:1) Perform one or more REST queries to narrow search results and find the specific client `_id`.

2) Go to Native Consoles > Access Management > Realms > *Realm Name* > Applications > OAuth 2.0 > Clients and select any client.

3) Update the URL in the browser with your client ID, for example:

   ```none
   https://<tenant-env-fqdn>/am/ui-admin/#realms/%2Falpha/applications-oauth2-clients/clients/edit/myClientID
   ```

4) Enter or refresh the page. |

|   |                                                                                                                |
| - | -------------------------------------------------------------------------------------------------------------- |
|   | Learn more about filtering query requests in the [REST API documentation](../developer-docs/crest/query.html). |

Querying large numbers of clients returns the first 1000 results. To return all results, specify the [`_pagedResultsCookie`](../developer-docs/crest/query.html) parameter to use a cookie to page through the results:

1. Perform an initial query with `_pageSize=10` to retrieve the cookie (`pagedResultsCookie`).

   **The resource version *must* be set as `2.0` in the header.**

   For example:

   ```bash
   $ curl \
   --request GET \
   --header "Accept-API-Version: resource=2.0" \
   --header "Authorization: Bearer <access-token>" \
   "https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/realm-config/agents/OAuth2Client?_queryFilter=true&_pageSize=10"
   {
     "result": [
      …​
     ],
     "resultCount": 10,
     "pagedResultsCookie": "eyAiZGVmY…​QiIHB",
     "totalPagedResultsPolicy": "ESTIMATE",
     "totalPagedResults": "500000",
     "remainingPagedResults": -1
   }
   ```

   The results include an estimated number of results.

2. Now you can specify the cookie as a parameter to page through the results:

   ```bash
   $ curl \
   --request GET \
   --header "Accept-API-Version: resource=2.0" \
   --header "Authorization: Bearer <access-token>" \
   "https://<tenant-env-fqdn>/am/json/realms/root/realms/alpha/realm-config/agents/OAuth2Client?_pagedResultsCookie=eyAiZGVmY…​QiIHB_queryFilter=true&_pageSize=10"
   {
     "result": [
      …​
     ],
     "resultCount": 10,
     "pagedResultsCookie": "eyAiZGVmY…​QiIHB",
     "totalPagedResultsPolicy": "ESTIMATE",
     "totalPagedResults": "500000",
     "remainingPagedResults": -1
   }
   ```

3. Continue paging through results until `pagedResultsCookie` is null, indicating the end of the response.

***

[1](#_footnoteref_1). A [sandbox environment](../tenants/environments-sandbox.html) is an [add-on capability](../product-information/add-on-capabilities.html).[2](#_footnoteref_2). A [user acceptance testing (UAT) environment](../tenants/environments-uat.html) is an [add-on capability](../product-information/add-on-capabilities.html).
