我正在尝试以编程方式找到TFS项目集合中每个项目的具有Checkin权限的所有用户。以前,我可以使用以下代码
获取TFS集合中的所有项目管理员 var teamProject = teamProjects[i];
var security = new Security();
var myTeamProj = new TeamProject();
myTeamProj.Name = teamProject.Name;
myTeamProj.TeamProjectCollectionName = teamProject.TeamProjectCollection.Name;
security.TeamProject = myTeamProj;
var groupMemberships = new List<GroupMembership>();
Identity[] appGroups =
sec.ListApplicationGroups(teamProject.ArtifactUri.AbsoluteUri);
foreach (Identity group in appGroups)
{
if (group.DisplayName.ToString() != "Project Administrators")
continue;
.....
我可以将其扩展为查询项目特定的权限吗?否则,获取具有“签入”权限的用户列表的最佳方法是什么