Print

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]);
Czy artykuł był pomocny?
0 na 5 gwiazdek
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
5
How can we improve this article?
How Can We Improve This Article?