index > Team Foundation Server - Administration > Retrieving everyone group members

Retrieving everyone group members


G'day,

I have encountered strange problem.

We are using the code presented below to retrieve Everyone application group with members.

IGroupSecurityService _groupSecurityService = _server.GetService(typeof(IGroupSecurityService)) as IGroupSecurityService;

Identity everyoneGroup = _groupSecurityService.ReadIdentity(SearchFactor.EveryoneApplicationGroup, null, QueryMembership.Expanded);

The code works as expected on all but one installation of TFS. In the exceptional set up the exception "TF30290: There was a problem accessing the database on the server. See the Team Foundation Server event log for details." is thrown. The event log says that "SQLException: The statement has terminated. The maximum recursion 100 has been exhausted before statement completion" and the SQL exception procedure is prc_security_read_identity. The TFS version used is RTM and setup seems to be fairly typical.

I am quite at loss how to continue from that point; the code appears quite kosher and works at other installations.

We would be very obliged for any insights from MS people.

Yours truly, Eugene




Blog at http://teamfoundation.blogspot.com
eugene.z

The short answer is that's a bug, but I don't know if this is a known issue. It may be due to trying to expand groups. It will probably work if you don't ask for the expanded group membership.

I'll send email to the relevant person for follow up.

Buck




http://blogs.msdn.com/buckh
Buck Hodges

Buck,

Thank you for your reply. It does not matter much if retrieving everyone group will work without Expanded option specify, as we were using it in order to get all valid users for Team Server.

Could you advise of some other technique that allows to obtain all valid users for TFS?

Yours truly, Eugene




Blog at http://teamfoundation.blogspot.com
eugene.z

This is a known problem. What is happening is that the Valid Users group contains a group that is nested more than 100 levels deep, or there is a circular group membership in an AD group. If you can eliminate the deep nesting or circular group membership, everything will start working again. Otherwise you will need to contact CSS and ask that a case be opened. If you do open a case with CSS, have them reference dogfood bug #74665.

Matt Hoover
Visual Studio Team Foundation
Software Design Engineer

Matthew Hoover - MSFT
reply 4

You can use google to search for other answers

 

More Articles

TF30170 Error, When i create a new Team Project
add a default permission to an area
TFS Migration to a new server
Subscribable server events?
Change of Team Explorer User
WSS templates into TFS??
proxy bypassed?????
Identify who has code checked out
RootNode.Icons property
Error while installing Team Foundation Server
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

TFSDeleteProject Doesn't Remove Project …
Team Explorer : Need log to investigate …
Moved Servers - Keep Workspace
Setting up Web Site on Different Server
TF30170 Error, When i create a new Team …
Retrieving everyone group members
MOM Management Packs
Notification on New Work Item
Last discussion is put on the bottom of …
How to connect to TFS on untrusted domain
Cross domain testing and foundation server
Problem running TFSDeleteProejct
Saving Document
show project portal
Answering some user questions about TFS …

Hot Articles

TFS Stopped working
SPWeb.SearchListItems is not working (sh…
How can I delete a Team Project
How can I migrate only my Team System DB
no notifications...
Numerous errors in the Application Event…
Cross domain testing and foundation server
Add Users to Global Group AND/OR Porject…
Newbie setup problem
Error connecting to Team Foundation from…
Removing Project Alerts
WSS templates into TFS??
TF53011 But not after een upgrade to wor…
Failed to create team project
how to replace a project while retaining…

Recommend Articles

tfs share point
Strange Error - TF53005 Unable to retrie…
project import/export?
Windows Groups - TFS does not see new us…
TF53011 But not after een upgrade to wor…
Installing Teamserver 2005
Converting tasks from one project to ano…
Failed to create team project
Defect Tracking across projects
Contributors can edit TFS Project Group …
Domain group members do not propagate to…
Project Portal bug? Cannot get Discussio…
Can I access the proxy server thru code?
Adding a node to the Team Explorer
Error unable to connect to the remote se…