ACTIVE DIRECTORY Search Active Directory function

The ACTIVE DIRECTORY Search Active Directory function in RPA.

Help CentreBuilding Processes

This article describes the RPA Active Directory functionality to search Active Directory.

For a full list of available functions, please read ACTIVE DIRECTORY functions.


Description

The ACTIVE DIRECTORY Search function searches Active Directory using an LDAP filter and returns matching entries with their attributes.


Setting it up

To use the ACTIVE DIRECTORY Search function, follow these instructions:

{{popups:rpas/add:action=ad-search}}

Once on a process map:

  1. Navigate to the process where you would like to add the ACTIVE DIRECTORY Search function
  2. Click on the green button's drop-down (right side of the green button labelled "Process")
  3. On the menu that appears, click on the "+ Activity" item
  4. From here you can select the ACTIVE DIRECTORY Search option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
NameYesText-The name of the Active Directory connection to use
FilterYesText-The LDAP filter string (e.g. (&(objectClass=user)(department=IT)))
Base DNNoText-Override the base DN for this search
AttributesNoArray-List of attributes to return (e.g. ["cn", "mail", "department"])
Size limitNoNumber0Maximum number of results to return (0 for unlimited)
VariableNoTextresultsThe variable name to store the results

Output variables

The {results} variable contains an array of objects, each with a 'dn' property and the requested attributes.


Errors

ErrorDescription
Connection not foundNo connection exists with the specified name
Invalid filterThe LDAP filter string is not valid

Tips

  • Use compound LDAP filters like (&(objectClass=user)(department=IT)) to narrow results
  • Limit the attributes list for better performance when you only need specific fields

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.