How to add Windows group as “Readers” to all projects in TFS 2010 collection?

前提是你 提交于 2019-11-28 01:27:20

问题


I asked this question originally on ServerFault.com, but there seems to me more activity regarding TFS 2010 on StackOverflow.com, so I decided to re post it here...


It is my understanding that "Project Collection Valid Users" TFS group can no longer be modified directly.

However, I would like to grant all of my domain users (Windows group called "DOMAIN\Domain Users") a "reader" level access to TFS project Collection...

I know I can go to each Project and add "DOMAIN\Domain Users" to [Project]\Readers group but I am wondering if this is possible to achieve in "one shot" so that future projects are already accessible when set up.


回答1:


To have this AD group added to a TFS group for your upcoming projects you have to modify your project template. There you can preconfigure your projects, exspecially set permissions to groups and users.

For the existing projects you have to do it by hand. I don't know any other way than that.




回答2:


My approach is based on the fact that TFS permissions are inherited unless explicitly denied.

To create an user group that will automatically access with read only permissions to all existent projects as well as the futures ones, follow those steps:

  1. Create a new security group at the project collection level. You can do it in Visual Studio using the "Team/Team Project Collection Settings/Group Membership" menu.

  2. Add the new group as a member of the "Project Collection Administrators" group. This will grant access to all projects in the collection, including the futures ones.

  3. Limit the permissions of the new group to remove the administrator permissions inherited. To force the read only access, Deny all permisisons except "Create a workspace", "View build resources" and "View collection-level information".

The users of this group will have read access to source code, work items, and build definitions of all projects in the collection.



来源:https://stackoverflow.com/questions/5889389/how-to-add-windows-group-as-readers-to-all-projects-in-tfs-2010-collection

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