# Get Objects by LDAP Filter

> Get Objects by LDAP Filter activity that retrieves the list of **Active Directory** objects based on an LDAP (Lightweight Directory Access Protocol) filter.

`UiPath.ActiveDirectoryDomainServices.Activities.GetObjectsByLDAPFilter`

## Description

Retrieves the list of **Active Directory** objects based on an LDAP (Lightweight Directory Access Protocol) filter.

## Project compatibility

Windows - Legacy | Windows

## Configuration

### Common

* **DisplayName** - The display name of the activity.

### Input

* **LDAPFilter** - Specifies which LDAP(Lightweight Directory Access Protocol) filter is used.
* **Location** - Specifies the **Distinguished Name** needed for identifying the Active Directory location from where to retrieve the objects.
* **Connection** - Establish the connection that needs to be used. There are two available options, **Primary** and **Secondary**.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **Objects** - Provides a list containing the Distinguished Names of the objects matching the filter criteria.
