How to use User Exist activity?

Hi,

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.

image

Thank you!

@_pjflo

Check below link for more information to fix the remaining values

https://docs.uipath.com/activities/other/latest/user-guide/user-exists

Hope this may help you

Thanks,
Srini

Hi,

I’ve checked that, however, I’m still not quite sure what to write on value, or where to get the value that I am going to put in there.

Hi @_pjflo

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.

Hope this helps,
Best Regards.

Hi,

Thanks for your response. How about the Value field on User Exists? Where can I get that?

I’ll also try your advise.

Thanks again!

@_pjflo

The value field is just a flag to indicate whether the user is present or not.

Create a new variable userExistCheck of type System.Boolean & pass the same variable in this field. It will store the result as True or False.

Hope this helps,
Best Regards.

I think you were talking about Exists property, not value.