DCSIMG
TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010 - Shai Raiten

Shai Raiten

 Subscribe

TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010

TFS API Part 25: Get TFS User List (Mail Sid, Account, Domain) – TFS 2010

One of my first posts on TFS API I showed how to obtain TFS User List (TFS API Part 4: Get TFS User List (Mail, Sid, Account, Domain))m Couple of days ago I got a question how to perform the same thing on TFS 2010, This is very simple:

image

In TFS 2008 the global user group were called = "Team Foundation Valid Users".

Identity SIDS = gss.ReadIdentity(SearchFactor.AccountName, "Team Foundation Valid Users", QueryMembership.Expanded);

In TFS 2010 the name of TFS global user group changed to  = "Project Collection Valid Users".

Identity SIDS = gss.ReadIdentity(SearchFactor.AccountName, "Project Collection Valid Users", QueryMembership.Expanded);

So, all you need to do is change the name to "Project Collection Valid Users" and everything should work.

Download Demo Project (TFS 2010)

Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 


Enter the numbers above: