TFS 2010: how to add a new user? - tfs

I just installed TFS Server 2010 on Windows 7 Ultimate.
I even managed to connect to the TFS server using Visual Studio 2010 - I didn't have to enter any login and password, as Windows Authentication was automatically used.
Now I need to add a new user to TFS, with a specific login and password, so that a member of the project could access the TFS server from the Internet.
However, I did not find a way to add a new user to TFS!
I used to work with Visual SourceSafe, and there the management of users was quite straightforward.
Any help would be appreciated!

It's a little weird in non-domain situations.
Create a new local user on your computer.
In Visual Studio, look on the Team menu for Team Project Collection settings
Add that new user to the Authorized Users group (I think-- I'm not able to access mine right now, so I'm not sure what it's called. It's something like that, though).
On the Team menu, find Team Project Settings
Add the same user to the Contributors group.
When the other user logs on, they will have to specify the TFS Application Tier computer as the domain name. For example, if you installed TFS on a computer named MyWin7Box, they would sign on as MyWin7Box\Username

Related

How to use different accounts to connect to TFS in VS 2015 and VS 2017?

I have connected to TFS in VS 2015 with a credential say 'username2015' and it works fine. Now when I configure the same TFS in VS 2017, it uses the existing credential 'username2015'. But my problem is I want to use a different credential say 'username2017' when connecting to TFS in VS 2017.
In other words, I am looking for a way to use different accounts to connect to TFS in VS 2015 and VS 2017.
If you Shift + right click on Visual Studio exe it gives option to "Run As Different User". Once you select it then you can give credentials of other user which you want to use. See screenshot below.
I've already used a TFS username "username2015" when connecting to my
client's TFS in Team -> Manage Connections in VS 2015. Now in VS 2017,
I want to use another username 'username2017' to connect to same TFS.
Firstly make sure the username2017 is added in TFS, see Quickstart: Add users to a team project or specific team
If it's the FIRST TIME connecting to same TFS with VS 2017 under current windows user account, then you can use username2017 directly in VS 2017 (Team Explorer -> Manage Connections), it will popup the login dialog box for you to sign-in, nothing different with VS 2015.
But if you have ever connected to the TFS with other tfs accounts in VS 2017, then it will automatically use your previous logged-on tfs user account from Windows Sign-on services and check if you are able to login to selected TFS Server. That means it will automatically connect to TFS with the pervious tfs account if the account is still available. If the password changed, then it will popup the dialog to let you enter the new password to sing-in again.
So, in your scenario if you have ever connected to the TFS with VS2017 under current user account (windows account to run VS ), then you can try to below ways to run VS2017 as another user:
Run as different user as Pankaj mentioned above.
Command to run Visual Studio as another user:
cd C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE
runas /netonly /user:<account> devenv.exe
Enter the user password, then Team Explorer > Manage Connections
Logoff windows user, then logon with another windows user, open VS ->
Connect to TFS with another tfs user.
If you insist on using different tfs accounts to connect the same TFS server in VS under the same windows account, then you can try to remove the tfs related credentials from Credential Manager, clean VS and TFS caches etc... But based on my test, it's difficult to take effect.
You can reference my answers in other threads:
Clear stored TFS credentials in Visual Studio 2017
Signing out from TFS and sign in with new credentials

TFS 2015 permissions required to create new project?

I have two users say user Ad and user Us, Ad has admin rights and is the account used to install and configure TFS 2015, user Us is an admin which has all permissions needed for an administrator.
Now when I tried to create a new project from Visual Studio 2015 the get the below error:
Error
The Project Creation Wizard encountered an error while creating reports to the SQL Server Reporting Services on
Interestingly, my Ad account does not have SYSDBA permission on the databases when i get the error. But if i provide the SYSDBA permission to the Ad account the project creation utility works.
I want to know how is this possible? and is there a way to create a new project in TFS 2015 without having the SYSDBA permission?
Help appriciated!!!
If you just create a new project, usually you only need to be the memeber of the Project Collection Administrators Group and have the Create new projects permission set to Allow.
However, if you have SQL Server Analysis Services and SQL Server Reporting Services been configured for the deployment or a SharePoint Web application been configured for your deployment, you also need to become a member of Team Foundation Content Managers group and get Full Control permissions on the server that hosts SharePoint Products.
Has SQL Server Analysis Services and SQL Server Reporting Services been configured for the deployment?
If so, ask your administrator to add you as a member of the Team
Foundation Content Managers group on the server that hosts SQL Server
Reporting Services. Without these permissions, you’ll be unable to
create a team project.
More detail info please refer the link from MSDN: Create a team project
Permissions for TFS Team project creation:
1. Add the user to TFS Admin console users or to Project collection Admin group
2. If sharepoint is available, Add user to sharepoint Farm admin and also site collection administrators
3. If Reporting is configured, Give user Team Foundation Content Manager role.
Still if team project creation fails then Depending on the error check if user is added to TfsReports Folder security and then in to specific collection level folder security.
4. If error is related to Datasources then check if user is available at both reportDS and OlapreportDS security.
If you can give the exact error message base on that recommendations can be made. The above information is the basic requirement.

Team Foundation Server 2012 Non Domain User Access

I am very new in Team Foundation Server.
I want to create a server at home and i want to use this server from another computer with my developer partner.
The main problem is that, i don't want to create domain users to access team foundation server. I am running an svn server and i want to migrate its data to TFS. Can non domain user (only a dedicated user like in svn server) access TFS from outside of the network?
I installed a Windows Server 2012, SQL Server 2012 and Team Foundation Server 2012. I have created a team project, then i want to connect to server from visual studio from another computer and got a standard "server unable to access" error message.
Can anybody write down the solution by step by step?
There are a few choices for collaborating in tfs:
Domain: This is the easiest to setup, user-wise. All you have to do is be a member of the domain and a member in a team project.
You have already said that you do not want this option.
Workgroup This requires you setting up the TFS server as a work group and then creating users in that workgroup that represent your team members. You then add them to your tfs team project(s). The pain part comes from you having to make sure that the username and password your team members log in with matches the work group username and password.
This is probably going to be your best bet unless you want to subscribe to visual studio online.
Visual Studio Online
This is almost as easy as the domain setup but isn't free. But connecting remotely is a good option. Plus if you are doing any cloud work it integrates nicely.
This link (http://msdn.microsoft.com/en-us/library/ms252507(v=vs.100).aspx) from Microsoft describes various domain \ work group combos. The one I describe above refers to the one where everything is in a workgroup.
Local user accounts must be created on the Team Foundation server for
all users requiring access to the server. Local user accounts must be
added to Team Foundation Server server-level and project-level groups
so that the users are authorized on the Team Foundation server. When
connecting from a Team Foundation client, such as Team Explorer, in
the workgroup, the client user account credentials must match those of
the server, or the user will be prompted for a user name and password
for an account on the Team Foundation Server.

Can you create and modify Work Items in TFS 2010 without Team Explorer?

We have a team that consists of a number of non-developers - for these non-developers to create and modify Work Items, would they need to have VS 2010 / Team Explorer installed on their machines? Or is it possible to create and modify Work Items through the project's SharePoint site or some other built-in means?
I've not yet installed a full test TFS 2010 instance, so I can't check it out myself.
You can also create or edit workitems using Team System Web Access portal which will be configured as part of TFS2010 Installation. You can access this portal using this URL: http://[TFSServer]:8080/tfs/web
You can also configure users to access the restricted version of this portal(Work Item Only View) which the users can connect without using CAL. In this version, the users can add or edit the workitems only created by them.
You can create and edit work items from the sharepoint site for a team project in TFS 2010. but the users will still need a Client Access Licence (CAL) to do more than very basic work item management. The url will be something like http://[tfsServer]/sites/[tfsCollection]/[tfsTeamproject]/Dashboards/ProjectDashboard_wss.aspx. If you right click on the Team Project in Team Explorer and select "show project portal" then it will open a browser in the correct location.
I think the licence basically says that users can create and modify their own work items without a CAL. If they need to view work items created by other users, or allocate work items to other users, then a CAL is required.

How to add new users to TFS 2010

I have installed Visual Studio Team Foundation Server 2010 on Windows 7 Professional edition.
How can I manage (add) new users which can use the TFS 2010?
I had the same challenge. It isn't obvious how this can be done without Visual Studio but here we go... On your TFS 2010 server:
Go to Team Foundation Server
Administration Console
Navigate to your Team Project Collection
Select Group Membership from the General tab
Open Project Collection Valid Users. It should include your Team Projects's groups as
members.
Select suitable Team Project group and add your user into that group.
Since you don't have a server version of windows, you can't have a domain, so you can't add domain users to your project.
You should either install a server (which most people might recommend) or you can save your time and effort and just simply create local users on your TFS server (which can have any version of windows). This method will work just the same as installing a windows server. To do that just go to this location:
"Computer Management" -> "Local Users and Groups" -> Users
Add any users you want and in order to prevent windows from showing them in the welcome screen, double click on each one of them and remove their member of data (which is set to Users by default)
Then follow Kyberias' instructions.
Connect to a team project in VS2010.
In the Team Explorer menu expand your team project.
Right click Team Members and select Add Team Member.
From here you can add members and assign them permissions based on what they should be allowed to do on the project.
I hope this is what you are looking for.
The problem here is that there are no TFS users per se. TFS authenticates users against windows which runs it. Once you have some windows users, then you must configure permissions as mentioned by Kyberias.

Resources