---
title: Viewing matching rules
description: To view the matching rules on your PingDirectory server, use the schema editor, LDAP with ldapsearch, or a third-party tool.
component: pingdirectory
version: 11.0
page_id: pingdirectory:pingdirectory_server_administration_guide:pd_ds_view_matching_rules
canonical_url: https://docs.pingidentity.com/pingdirectory/11.0/pingdirectory_server_administration_guide/pd_ds_view_matching_rules.html
revdate: September 13, 2023
section_ids:
  about-this-task: About this task
  steps: Steps
  example: Example:
---

# Viewing matching rules

To view the matching rules on your PingDirectory server, use the schema editor, LDAP with `ldapsearch`, or a third-party tool.

## About this task

To view matching rules over LDAP:

## Steps

* To view the `matchingRules` attribute, run `ldapsearch`.

  ### Example:

  The following example uses `ldapsearch` to view a multi-valued operational attribute, `matchingRules`, which publishes the definitions on the PingDirectory server.

  |   |                                                    |
  | - | -------------------------------------------------- |
  |   | The attribute is stored in the subschema subentry. |

  ```shell
  $ bin/ldapsearch --baseDN cn=schema --searchScope base \
    "(objectclass=*)" matchingRules
  ```
