I have TfsConfigurationServer configurationServer
setup with TFS common url (i.e. "http://mytfs/tfs/"). This instance is authenticated with given credentials.
I have two collections (actually more, than two, but only these two are interesting for me) - Collection1 and Collection2.
And Collection1 has user group under project '[Project1]\Group1'. And Collection2 has user group under project '[Project2]\Group2'.
I want to list all users inside both this groups.
Is this somehow possible using mine already created and authenticated configurationServer
? I don't want to use each collection URIs and auth again.
configurationServer = new TfsConfigurationServer(new Uri("http://mytfs/tfs/"), new NetworkCredential(UserName, UserPassword, Domain));
This one answer is working for me. But it need to be calculated for each collection. And takes too long. So maybe there is more faster way? Maybe it is possible somehow by query?