branchimpersonationcheckin

TFS - Is it possible to impersonate someone to check-in changes?


I'm responsible for merging and commiting changes to the test Branch, but by doing that every check-in is marked as me as the author. So until now i'm writting the author name in the comments. But it's ugly.

Is it possible to impersonate someone else when doing check-in? What are the security permissions needed in order to do that?

I'm using Team Foundation Server 2010.


Solution

  • TFS API Part 29 – TFS Impersonation

    TFS Impersonation is a feature that was introduced in TFS 2010 in order to allow a process running as User A to make web service calls to TFS in such a way that TFS thinks the actions are being performed by User B.

    Using TFS Impersonation with the Version Control Client APIs

    how to use the version control client APIs to create workspaces and check in files [...] with TFS Impersonation to record the check ins as if they had been done by a different user

    in order for impersonation to work, the user that the process is running as must have the “Make requests on behalf of others” permission for this collection