5
的成员,我创建了我们公司的程序员TFS组,我试图让该组程序员的名单。这到目前为止我尝试过。获取TFS组
ICommonStructureService iss = (ICommonStructureService)tfsServer.GetService(typeof(ICommonStructureService));
IGroupSecurityService gss = tfsServer.GetService<IGroupSecurityService>();
Identity SIDS = gss.ReadIdentity(SearchFactor.AccountName, "Project Collection Valid Users", QueryMembership.Expanded);
Identity[] _userIds = gss.ReadIdentities(SearchFactor.Sid, SIDS.Members, QueryMembership.None);
var companyProgrammers = _userIds.Where(u=>u.MemeberOf.Contains("CompanyProgrammers")).ToList();
该列表为空。
我错过了什么吗?
的IGroupSecurityService是过时的今天。你将如何使用新的API来做到这一点? –
已过时的代码。根据建议,应该使用IIdentityManagementService或ISecurityService。有谁知道如何使用这些接口? – jwrightmail