You will have to search the Active Directory with the RequesteBy property and get the email address from the AD. You can use the DirectorySearcher method
Also look at this Question
Question
Does anyone know how to get the email address associated with requesting/triggering a build?
If I use the IBuildDetail
object and look at the RequestedBy
property, it gives me the display name instead of the live id.
Any ideas?
Solution
You will have to search the Active Directory with the RequesteBy property and get the email address from the AD. You can use the DirectorySearcher method
Also look at this Question