Open Team Explorer : Specify User Accounts
Is it possible to force Team Explorer within the .Net IDE to display the logon credentials dialog?
The reason being I have two accounts configured within TFS :
The first is a TFS Server local admin account. This is added to the TFS Administrators groups.
The second is my "normal" domain account. This is added (via an AD group) to the contributors group.
During normal development I'm logged on to my machine as my domain account and Team Explorer opens with contributors perms. But from time to time I need to log on as the admin.
Is there a simple way to do this?
Thanks.
Hi Craig,
Since for the first time while connecting to the server the credentials are requested and if it is successful the login credentials are stored in the .NET IDE settings itself...if you want to have the two user settings..you can use one simply way of doing the same....You can use "RUN AS " for the .NET IDE to login in the different account ....if you do the same you can have the different settings and use different credentials too.....
is this is your expected answer...or am i wrong?
Thanks,
Kathir
Hi Kathir, thanks for the response.
I did try this, unfortunately the server local admin account(the account I installed TFS with) doesn't have any privs to my local machine, therefore I cannot use the runas command with the accounts I'd like to... (although I'm sure I could workaround this with some domain account shannigans)
The issue really stems from the fact that I'd like to configure TFS so that each Team Project lead has two accounts. One with admin Privs, One with contrib privs.) I would prefer the admin privs account to be a server local account as opposed to a domain account, as having 2 domain accounts per user won't be that popular.
Ideally I'd like the .Net IDE NOT to automatically post the logged on users credentials to TFS.
My observations so far are that if the running user has rights to TFS it will automatically log them on.
Prior to adding the domain account into TFS Contributors, the IDE will open, when Team Explorer is opened and the credential dialog displays, a user can log in with SERVERNAME\LOCAL ADMIN ACCOUNT, or DOMAIN\DOMAIN ACCOUNT.
Thanks
Craig.
Hi Craig,
By default, when the IDE is started the current logged in credentials are used for logging into TFS. If the login into TFS fails only then another set of credentials are requested. This is by design. The only way out, is what Kathir suggested. You can use Run as with any account that does not have access to TFS and then the login credentials will be requested.
Please let me know if this helps.
regards