var workspace = Workstation.Current.GetLocalWorkspaceInfo(path);
var tfs = new TfsTeamProjectCollection(workspace.ServerUri);
var gss = tfs.GetService<IGroupSecurityService>();
var grp = gss.ReadIdentity(SearchFactor.EveryoneApplicationGroup, null, QueryMembership.Expanded);
var names = gss.ReadIdentities(SearchFactor.Sid, grp.Members, QueryMembership.None)
.Where(identity => identity.Type == IdentityType.WindowsUser)
.Select(identity => string.Format(@"{0}\{1}", identity.Domain, identity.AccountName))
.ToArray();
Showing posts with label TFS. Show all posts
Showing posts with label TFS. Show all posts
Sunday, January 8, 2012
List the users of a TFS project associated with a local workspace path
Subscribe to:
Posts (Atom)