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");