tags:

views:

312

answers:

1

Hi

I want to list TFS usersgroups in a dropdown and based on selection of usergroup i need to populate users in that perticular group using TFS API.can anybody help me?.

Thanks Suneetha.

+2  A: 

This page has several examples: 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);
Richard Berg