I am trying to use User Exists activity to verify if the user exists in the company directory before I proceed with resetting the password. However, I don’t know what to put in Location or Value. I want to search the user in the company directory.
The location in the activity refers to the path in which the user exists. This location is the combination of Organizational Unit (OU) & Domain Component (DC). The location looks something like this:
OU=UiPath, OU=Departments, OU=Forum, DC=net.
This actually indicates the traversal of folders & subfolders in which the user is present.
If your objective is to check for the user’s existence using samAccountName, I suggest you to use the Get Objects by LDAP Filter activity. To this activity, you can pass samAccountName as filter parameter & OU location. It will return you an object array, using which you can decompile the user’s entire property.
I suggest you to check out this activity once & do let us know if you need any assistance on AD.