I work with some custom reports in TFS. I have a set of instances WorkItemthat I want to receive from the Creator and the Assigned-From.
WorkItem wi = GetWorkItem( ... );
String assignedTo = (String)wi.Fields[CoreField.AssignedTo].Value;
String createdBy = (String)wi.Fields[CoreField.CreatedBy].Value;
The problem is that the fields are raw string values containing the display name of the user. I have to keep my own database that maps these display names to their Active Directory identifiers (by their username or email address).
Obviously, maintaining your own parallel user database is not the case - is there any other way to get the wi.Fields[CoreField.AssignedTo].Valuesecurity authentication object from the object, or at least the user's username or email address?
source
share