How do I get list of all users in TFS 2013
问题 I am using Team Foundation Server (TFS) 2013 and Visual studio 2012. I need a list of all the user in TFS. Is there any way to get all the users in TFS using C#? 回答1: Get the users list from TFS 2010, you can try use the TFS API, please refer to the following code snippet: TfsTeamProjectCollection tfs = new TfsTeamProjectCollection(new Uri("url")); tfs.EnsureAuthenticated(); IGroupSecurityService gss = tfs.GetService<IGroupSecurityService>(); Identity SIDS = gss.ReadIdentity(SearchFactor