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