---
title: "About the <code class=\"codeph\">LDAPSearch</code> element"
description: An LDAPSearch element contains the following XML elements in sequence:
component: pingdirectory
version: 10.1
page_id: pingdirectory:managing_scim_11_and_20_servlet_extensions:pd_proxy_ldapsearch_element
canonical_url: https://docs.pingidentity.com/pingdirectory/10.1/managing_scim_11_and_20_servlet_extensions/pd_proxy_ldapsearch_element.html
revdate: July 5, 2024
---

# About the `LDAPSearch` element

An `LDAPSearch` element contains the following XML elements in sequence:

* `baseDN`: a required element specifying one or more LDAP search base DNs to be used when querying for the SCIM resource.

* `filter`: a required element specifying an LDAP filter that matches entries representing the SCIM resource. This filter is typically an equality filter on the LDAP object class.

* `resourceIDMapping`: an optional element specifying a mapping from the SCIM resource ID to an LDAP attribute. When the element is omitted, the resource ID maps to the LDAP entry DN. Note The `LDAPSearch` element can be added as a top-level element outside of any \<Resource> elements, and then referenced within them via an ID attribute.

|   |                                                                                                                                                        |
| - | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
|   | The `LDAPSearch` element can be added as a top-level element outside of any \<Resource> elements, and then referenced within them via an ID attribute. |
