且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用 TFS API 获取 TFS 用户组和特定组中的用户?

更新时间:2021-06-30 08:05:24

这个页面有几个例子:http://blogs.microsoft.co.il/blogs/shair/archive/2009/01/14/tfs-api-part-4-get-tfs-user-list-mail-sid-account-domain.aspx

最后一个例子可能是最相关的.

The last example is probably the most relevant.

IGroupSecurityService gss = (IGroupSecurityService)server.GetService(typeof(IGroupSecurityService));
Identity[] UserId = gss.ReadIdentities(SearchFactor.Sid, SIDS.Members, QueryMembership.None);