By default, SharePoint 2007 workflows do not resolve Windows domain accounts into first and last name structures – only domain\username. This can be frustrating to end users who do not know who the user name is referring to, depending on how your company structures user names. This blog post explains how to translate cryptic user names into a real person’s name when using workflows in SharePoint by setting variables.
Please note: The steps below are instructions for my particular SharePoint environment at work. Although the steps are general, they may or may not pertain to your environment specifically as stated below. If that is the case, just remember Google is your friend.
Here we go!
- Open SharePoint Designer
- Add New Variable
- Click Variables (bottom of screen)
- Click Add
- Select type
- Enter variable name
- *Notes
Unless comparing two different types of data, the default value String will work for most variable types
- Click Add
- Click Variables (bottom of screen)
- Set Variable in Workflow
- Add new workflow step
- Enter a name for the workflow step
- Select Actions > Lookup User Site Property
- Enter “Title” in the [Lookup this user property] field
- In the second this user property field, click the function icon
- Select Current Item Select appropriate field
- Click OK
- In the [Store in Variable: variable#] field, select the appropriate variable from drop down menu
- *Notes*
- Add new workflow step
- Use Variable in Workflow: Send Email



Thanks, Nicely done. Never having seen that “Title” field before, I asked one of my colleagues how to find these fields. If you have Sharepoint CentralAdministration permissions, you can find them under “Shared Services Administration : SharedServicesX” (“X”=your Shared Services #), “Manage Policy”, and “User Profile Properties”. Take care.