How to change workflow state of the newly created TFS work item through API?

醉酒当歌 提交于 2019-11-28 01:44:55
Yan Sklyarenko

Ok, folks, as it often happens, the answer is in manual. Let me explain.

The article I referenced in my question clearly states:

You need to be a member of the Project Collection Service Accounts

But it doesn't mention that you can't easily add the user or group to Project Collection Service Accounts. If you try to do this via web access, you'll fail - the Add button is simply disabled. Besides, the screen shot is misleading, showing an account as a member of Project Collection Administrators group.

By default, the Project Collection Service Accounts group contains a single group called Team Foundation Service Accounts. And this is the group you should add the account to. This can be done with the help of console application called TFSSecurity.exe:

TFSSecurity.exe /g+ "Team Foundation Service Accounts" "Domain\my-service-account" /server:http://mytfsserver:8080/tfs

This is explained in detail in this article, which describes exactly my case with the correct resolution. The TFSSecurity.exe can be found at the following location: %ProgramFiles(x86)%\Microsoft Visual Studio \Common7\IDE (e.g C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE)

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!