---
title: Indexing client attributes in PingDirectory
description: If you use PingDirectory, or another directory, to store OAuth client records for PingFederate, you must index the client attributes.
component: pingfederate
version: 13.0
page_id: pingfederate:administrators_reference_guide:pf_index_client_attribut_in_pd
canonical_url: https://docs.pingidentity.com/pingfederate/13.0/administrators_reference_guide/pf_index_client_attribut_in_pd.html
revdate: July 5, 2022
section_ids:
  about-this-task: About this task
  steps: Steps
  related-links: Related links
---

# Indexing client attributes in PingDirectory

If you use PingDirectory, or another directory, to store OAuth client records for PingFederate, you must index the client attributes.

## About this task

Index these OAuth client attributes using the procedure below.

| Attribute name                  | Index type |
| ------------------------------- | ---------- |
| `pf-oauth-client-id`            | equality   |
| `pf-oauth-client-id`            | ordering   |
| `pf-oauth-client-id`            | substring  |
| `pf-oauth-client-name`          | equality   |
| `pf-oauth-client-name`          | ordering   |
| `pf-oauth-client-name`          | substring  |
| `pf-oauth-client-last-modified` | ordering   |

## Steps

1. Create the indexes using the PingDirectory `dsconfig` utility.

   The `dsconfig` utility is interactive, letting you enter command arguments. The following example creates the three indexes for the `pf-oauth-client-id` attribute.

   ```shell
   $ bin/dsconfig create-local-db-index \
                     --backend-name userRoot \
                     --index-name pf-oauth-client-id \
                     --set index-type:equality \
                     --set index-type:ordering \
                     --set index-type:substring
   ```

2. After creating the indexes, build them using the `rebuild-index` utility.

   The following example builds the required indexes.

   ```shell
   $ bin/rebuild-index \
                     --baseDN "dc=example,dc=com" \
                     --index pf-oauth-client-id \
                     --index pf-oauth-client-name \
                     --index pf-oauth-client-last-modified
   ```

## Related links

* [Working with indexes](https://docs.pingidentity.com/pingdirectory/10.3/pingdirectory_server_administration_guide/pd_ds_work_with_indexes.html)
