Share via


Retrieval of User Information by Workflow Script

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

You can use the Session object in workflow script to retrieve information from the workflow application User Directory. For example, use Session.UserList to access information such as the user's e-mail address or manager.

For example, in the Finding a Manager in the User Directory example, the function uses the current user's SAM Account Name to locate the name and e-mail address of the manager for that user. The script finds the manager by first locating the user in the user directory using the SAM Account Name

   ulist.Find strUL_SAM & "='" & Session.Item(strItem) & "'"

and then by identifying that user's manager.

   strManagerSID = ulist(strUL_MGR)

After the function has located the manager, it looks up the e-mail address for that manager and returns that information.

For example script showing functions that return user information from the user directory, see Script Examples for SQL Server.

See Also

Data Manipulation Using Workflow Script | Lookup of Role Membership Based On SAMAccountName | Finding a User's E-mail Address in the User Directory