FindUsersInAD

This function returns specified values of users account names or any wanted values of AD field for given AD field name and it’s value.

Syntax

FindUsersInAD("ADFieldName", "ADFieldValue");
FindUsersInAD("ADFieldName", "ADFieldValue", "ADResultFieldName");

Function arguments

  • ADFieldName – (String) The name of the AD field after which value you are looking for.
  • ADFieldValue – (String) The value of the AD field after which you are looking for.
  • ADResultFieldName – (String) The name of the AD field that value is to be retrieved.

Return value

This function returns String.
Returns value of specified AD field or an empty string if there is no value set.

Examples

Example 1:
This will return specified values of users account names which have 'EmployeeID’ value equals '123′.

data = FindUsersInAD("EmployeeID", "123");

Example 2:
This will return specified values of users account names which have 'EmployeeID’ value equals value stored in [ID] case field.

data = FindUsersInAD("EmployeeID", [ID]);

Example 3:
This will return values stored in the „EmailAddress” AD field which have 'EmployeeID’ value equals '123′.

data = FindUsersInAD("EmployeeID", "123", "EmailAddress");

Example 4:
This will return values stored in the AD field which name is specified in [WantedResult] case field which have 'EmployeeID’ value equals '123′.

data = FindUsersInAD("EmployeeID", [ID], [WantedResult]);
Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we improve this article?
Please submit the reason for your vote so that we can improve the article.