I have been asked to restrict permissions for users to Team Projects they need. So i have added users to Team group for their team projects and that gives them access to all the functionality they need in the relevant team project. However some of the users appear and some don't appear in the "Project Collection Valid Users" group. The user who is in this group, can see all the Team Projects in TFS and users who are not in group, can only see the team projects where they are in a team group. Now my question is should everyone be in the "Project Collection Valid Users" group? If yes, does that mean they will always have read permissions to full tfs team projects? How come some users in this group and some are not? Is something going wrong in the jobs that runs in background? How can i figure out? Please help.
1 Answers
It sounds like some users may have been given permissions elsewhere. Download the sidekicks utility and it'll allow you to easily see what permissions a user has and groups they are a member of.
I wouldn't typically worry about the valid users groups. TFS security will take care of that, just give users access to their projects (contributors/readers) and make sure they aren't in a collection or server level group through being a member of some AD group.
If users are added to a Team then by default they will have Contributor rights on that Team Project (Team is a member of the Contributor group). Their team should be a member of the Project Valid Users which in turn is a member of the Project Collection Valid Users.
If a user is a Contributor on one Team Project, they do not automatically get rights on another Team Project unless they are a member of another group.
I would suggest that if users are getting read access to all other Team Projects it is because they are a member of a collection or even server level group. If someone has full access to the Project Collection then again, they must be a member of a server or collection level group. Have you double checked their membership at the collection level? Are they only a member of Collection Valid Users? Are they a member of an AD group that has been given permissions at a higher level?
You cannot add users to the Valid Users groups through the UI but I would guess you can using tfssecurity.exe, I'm assuming you haven't done that.
SideKicks
as @rerwinRR suggested and try to determine what is the difference between the "right user" and the "wrong user". Then if everything seems ok, you can check ifTFS Job Agent
is running without errors, if not correct the errors with it. – Beytan Kurt