Print

GetUserDataFromAD

This function returns specified field value from AD for specified user login.

Syntax

GetUserDataFromAD("userLogin", "fieldName");

Function arguments

  • userLogin – (String) The login of the user for which data is to be retrieved
  • fieldName – (String) The name of the AD field that is to be retrieved for specified user.

Return value

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

Examples

Example 1:
This will return 'department’ value for user 'rsimmons’.

data = GetUserDataFromAD("rsimmons", "department");

Example 2:
This will return 'fullname’ value for user 'rsimmons’.

data = GetUserDataFromAD("rsimmons", "fullname");

Example 3:
This will return 'phone’ value for user stored in [CaseOwner] case field.

data = GetUserDataFromAD([CaseOwner], "phone");

Example 4:
This will return 'language’ value for user stored in [CaseOwner] case field.

data = GetUserDataFromAD([CaseOwner], "language");
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?