When a work item is added to TFS 2010 through the SDK, incidents are created using the same identifier used to authenticate with the TFS server.
In other applications that support defect / work item tracking, the API usually allows you to set the Reporter / ReportedBy / CreatedBy field so that you can look like the user created by your service is creating a problem on behalf of "created a" problem "rather than say the general “service account” that you set up to allow a third-party application to access the TFS / defect tracker.
It looks like you cannot set the CreatedBy field when creating the work item via the TFS SDK (you get TF26194 - the value “Created” cannot be changed ”, and I don’t see the Reporter field, which appears as a standard with common TFS templates.
Is it possible to install “Created” to another user or impersonate another user (without knowing the password, etc.) to create new work items?
source
share