index > Team Foundation Server - Administration > Accidentally deleted the only licensed user!

Accidentally deleted the only licensed user!


Do not ask why. The fact is that I accidentally deleted my account (the only licensed user) from the Server Licensed Users group.

I am not able to connect to TFS now. I am planning to reinstall, but that takes much time.

I tried to found a Server side admin tool, but it seems there is no such tool.

Is it possible to add users to the licensed group using a command line tool?

Thanks.

Neo

If you run repair/reinstall for Team Foundation Server on the Application Tier from the "Add/Remove Programs" control panel, it should fix that for you.

Best of luck-

Cheers,
Adam




This posting is provided "AS IS" with no warranties, and confers no rights.
Adam Singer MSFT

If you're logged in to the App Tier as a member of the Administrators group, you should be able to add users via the TfsSecurity.exe tool.

It should be something like this:

tfssecurity /server:http://jmanning-test:8080 /g+ "Team Foundation Licensed Users" domain\user




Team Foundation Server - http://blogs.msdn.com/jmanning/
James Manning - MSFT

Thanks for the information. I tried to use the tool, but failed. I have a single-server deployment so that means the App Tier is also on the same machine as the database tier.

I logged into this machine using a local Administrator account 'test' and carried out the following command:

C:\Program Files\Microsoft Visual Studio 2005 Team Foundation Server\Tools>TFSSecurity /server:http://experiment:8080 /g+ "Team Foundation Licensed Users" "domain\myuser"

The output is:

TFSSecurity - Team Foundation Server Security Tool
(C) Copyright 2006 Microsoft Corporation. All rights reserved.

The target Team Foundation Server is HTTP://EXPERIMENT:8080.
The request failed with HTTP status 403: TF53011: EXPERIMENT\test is not a licen
sed user..

What else do I need to do to get the user added?

Thanks.

Neo

I've since learned that:

  • This bug is fixed for the next release (can't remove the last member of licensed users) but not for our upcoming Service Pack 1
  • For V1, it needs to be a member of the "Service Accounts" group

So, try the TfsSecurity.exe line again logged in as (or runas'ing as) one of your service accounts (for example, Domain\TfsService)




Team Foundation Server - http://blogs.msdn.com/jmanning/
James Manning - MSFT
Thanks. I think that solved my problem.
Neo
reply 6

You can use google to search for other answers

 

More Articles

Add Users to Global Group AND/OR Porject level groups CAN NOT fin...
Two dialogs for users management in Team Explorer?
Failed to create team project
add a default permission to an area
New to TeamSystem & need to share a document library to anoth...
Pointless documentation.
Not seeing mapped users in TFS after VSS migration
Connecting to VSTFS in a Virtual PC
New Team Project Creation
TFS Security for Multiple Projects
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Numerous errors in the Application Event…
Required permission for Reporting Servic…
TF30177: Team Project Creation Failed (t…
Adding user from different domain to TFS…
PRoject ALert not working in Team founda…
Changes in behavior of the DomainProject…
How to connect to TFS on untrusted domain
How to delete a team project?
Project Portal bug? Cannot get Discussio…
about project alert
How to reverse a check-out (force check-…
Portal Documents CheckIn Checkout Via TF…
Is there any place where I should set th…
Microsoft Project Plan (.mpp file) in Pr…
TF53008: The authentication type Negotia…

Hot Articles

Required permission for Reporting Servic…
Custom Work Item - Rules
TF53011 But not after een upgrade to wor…
How to delete a team project?
permissions to users in VSTS
CheckinEvent Alerts not being sent
SPWeb.SearchListItems is not working (sh…
Project Alert Administration
Problems with libraries being displayed …
Red X on work items, documents and repor…
TF53010: An unexpected condition has occ…
TF30177: Team Project Creation Failed (t…
How do I check search for All files that…
Project Portal Sharepoint Search is slow
Moved Servers - Keep Workspace

Recommend Articles

Deleted Team Foundation Licensed Users
Problem with workgroup edition installed…
Add users from a trusted NT domain
New Project Creation Problems
Change SQL Connection String.
Manage team projects for some separate g…
Troubles with TFS
user or group might be in a different do…
Adding Web Parts to WSS Project Portal
Numerous errors in the Application Event…
view tasks from team explorer at the pro…
Copy or transfer data from portal to por…
Problem running TFSDeleteProejct
Contributors can edit TFS Project Group …
CheckinEvent Alerts not being sent