TF14098 Access Denied Branch in TFS 2013 - visual-studio-2013

I've got some developers who shouldn't get Admin access to a team collection or the project so they're not deleting the code.
However they need to be able to branch.
We recently upgraded to TFS 2013 and VS 2013 for all of our projects and the developers are receiving this error message:
I've looked for previous solutions but the directions don't seem to map to the interface for TFS/VS 2013.
How can I grant them the permissions the need for branching?
Thanks
Edit: Adding this screenshot to show where exactly the setting is in the web interface.

You can set them under the Control Panel/<Project>/<TeamName>/Version Control.
There you can set the permission "Branch creation" (for git, "ManageBranch" in TVC) and the oders you read in the error Window.
For additional information read the following link: Team Foundation Server permissions

For me funny thing was; I accidentally selected wrong work-space / user. It took almost a couple of hours to trace it. It was giving me same error as above, Once I have selected correct workspace it worked for me.

Go to Tfs by administrator user.
Select Project Settings > Repositories > YOURPROJECT Team > Lock
Set Lock option to Allow

Related

Cannot Add GitHub Account from Visual Studio 2022 Account Settings

I have just upgraded from Visual Studio 2019 to Visual Studio 2022 and I have encountered a strange problem. When going to File -> Account Settings..., under "All Accounts" I used to have both my Microsoft account (which is also my Personalization Account) and my GitHub account. In VS 2019, there was no issue adding the GitHub account, but I have not been successful in VS 2022. When I select +Add▾ then GitHub/GitHub Account, the Connect to GitHub dialog pops up asing me to Sign In to either GitHub or GitHub Enterprise. Since my account is GitHub and not GitHub Enterprise, the only sign in option listed is "Sign in with your browser".
When I select Sign in with your browser, I get redirected to https://visualstudio.microsoft.com/vs/github-signed-in/ and I get the message "Success! Your authorization was successful. You can now return to Visual Studio."
The expected result at that point would be to see my GitHub account listed under All Accounts, but I do not. The other expected result would be to see Visual Studio listed in my GitHub account under Authorized OAuth Apps, and I do see it there, so it does look like the authorization was successful. As well, I can access repositories without issue, so it looks like the problem is inside Visual Studio 2022.
Has anyone else experienced this issue? Is this a known issue that Microsoft is working on?
EDIT: I found this on the Microsoft Docs, which lays out the steps I was following. Under Adding public GitHub Accounts, I get to Step 3 ok, but then at Step 4, I do not get the expected result.
I've also found out this is preventing me from creating a new repository from VS, or opening a repository directly from VS. I can still work with local repositories cloned via GitHub Desktop, but that's about it.
Very annoying.
This worked for me:
Open ‘Account options’(Click ‘Account options’ in account settings page or navigate to tools > Options > Environment > Accounts) and check ‘Include GitHub Enterprise Server accounts’ checkbox, then click on “Re-enter your credentials” again and check if you still unable to sign in to GitHub enterprise account?
https://developercommunity.visualstudio.com/t/unable-to-sign-in-to-github-enterprise-account-in/1460790#T-N1465373
I had a suspicion that this was related to some type of settings cache or potentially some type of previous Git setting. After wiping out all of my Visual Studio settings and re-setting to factory defaults (which is another annoyance) using the following commands, it started working for me:
devenv.exe /ResetSettings
devenv.exe /ResetUserData
When I clicked Manage Connections, the GitHub option wasn't available in the usual spot. Only the Microsoft Sign on. I found another spot to connect to GitHub;
Open the Team Explorer (View -> Team Explorer).
Click the Connect | Offline drop down from the top of the explorer.
Projects -> New Repository
Under Create a new GitHub repository select Add an account under the account field to open up the sign on page for GitHub.

An attempt to communicate with Azure DevOps failed because a token could not be retrieved

I have projects that I have controlled be Azure DevOps. Every time when I open some of these solutions in the Visual Studio I get following error in the team explorer:
So when I re-enter my credentials I get the same error again. But when I restart Visual Studio my project is suddenly properly connected to Azure DevOps.
Could you tell me why I have this issue and how to solve it?
You may try the following items:
Go to Control Panel > Credential Manager, and remove all Windows Credentials related to TFS.
Close all Visual Studio instances, and delete the %LOCALAPPDATA%\.IdentityService folder if it exists.
Clear TFS caches %LOCALAPPDATA%\Microsoft\Team Foundation\x.0\Cache
As #4c74356b41 mentioned, repair VS.
As stated above, try doing only this step and see if it fixes the problem. It did for me.
Close all Visual Studio instances, delete %LOCALAPPDATA%.IdentityService if it exists.
It saves doing all the other steps.
The same issue is still occurring in 2021.
I had tried the sign out/sign in method, I had tried the local app data deletion method.
No luck with either.
What worked for me were the following steps.
Click on your name in the top right corner of Visual Studio and select Account Settings
Now rather than signing out, look below this to the All Accounts section. On some it will say "We need to refresh the credentials for this account"
Re-enter your credentials here.
This fixed the issue for me. I hope this helps someone else with this annoying issue.
Much easier solution to this. Close any open visual studio instances, restart visual studio as an administrator and connect to your ADO instance, i got this issue on cloning a repo personally, when i re-tried cloning again via web ADO the next time VS opened it worked just fine.
I've just had this same error as part of a wider issue with not being able to clone my DevOps projects, getting "connection reset" messages in Chrome and general weird behaviour for anything that tried to use my Microsoft login.
After a lot of hunting around, the cause of the issue turned out to be the Intel Killer wifi service. I opened the Killer Control Center app and turned off everything and all the issues disappeared:
Once I'd found the cause, a bit of googling turned up this post that suggests the Killer Prioritization Engine may be the root cause:
Bruno Nepomuceno 🎮 [MSFT] ··· I had the same issue and after a long
time I found out what was going on. My network card has a feature
called "Killer (I know, ironic) Prioritization Engine" and that was
on. Somehow it was interfering with the connection with Azure DevOps.
When I turned it off (and you can do it using the Killer Control
Center app), it started working.

TF30063:You are not authorized to access dev.azure.com but I can connect

I am using Azure Devops and VS2017 15.9.7.
I am logged into Devops and can sync.
When I open my project I get a message
"TF30063": You are not authorized to access dev.azure.com/myproject
I have tried going into credentials manager and deleting all the credentials for the devops organisation.
I have looked at this question and tried logging out via the browser within VS
TF30063:You are not authorized to access dev.azure.com but I can connect
I have encountered the same issue. (I need to switch back and forth between work account and test account). Of course, there could be so many reasons and it could be different for each (cached another account, or modified the password).
To resolve this issue I have two methods/steps.
Step 1 is to clear the credential from credential manager:
Go to Control Panel (with small icon view)-->User Accounts-->Manage your credentials (on the left column)-->Select Windows Credentials-->Scroll down to the Generic Credentials section and look for your TFS server connection.
Step 2 is to click on the operation that Connects to the Team Projects which is the button/plug icon in the Team Explorer tab. Then to also right click the project you are getting this issue on and select Connect:
I also have tried other methods but not work for me, if possible, you can check if it is useful to you:
How To Fix TF30063 Error
Error TF30063: You are not authorized to access
The comment by Kirsten Greed in the accepted solution resolved the issue for me. Reproduced here:
The problem was that I was opening the project using the Recent Project section of the start page. I closed VS, re-opened and then opened the project via "connect: in Team Explorer. Then exited. Now it seems to open ok either way.
I had the same issue, It solved by simply rerunning the Visual Studio as Administrator.
Running this command in cmd prompt, forces the re-authentication screen to come up and worked for me:
tf.exe get . /r
NOTE: you may need to locate tf.exe on your disk. For instance I have it at this location: C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer\TF.exe
Another reason for this error is that you might have to re-enter your credentials in Visual Studio:
Restarting Visual Studio and connecting to Azure DevOps did the trick for me.
If the is problem like below:
The solution will be like below:
And after that select:
Re-enter your credentials
Step 1: Add
"C:\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\CommonExtensions\Microsoft\TeamFoundation\Team Explorer" in the environment variable path
Step 2: remove azuredevops org related credential from credential manager
Step 3: Delete this folder:
C:\Users<UserName>\AppData\Local\Microsoft\Team Foundation\7.0\Cache
Step 3:
run tf workspaces /collection:https://dev.azure.com/royalmailgroup in cmd
It might be the case of a password change.
In my case I had update my account password in a different machine. So on machine #02 I went to Visual Studio > Account Settings. After the pop-up opened, there was a message to re-enter credentials.
Sometimes the password isn't updated across all used app/services and you have to enter that manually.
Hope that helps.
None of the other methods above worked for me. I tried this in visual studio 2022 and it worked.
Open the Developer PowerShell (search for PowerShell) and type in the following:
TF vc permission
This will bring up a login screen and allow you to log in.
After that you should have permission.
In Visual Studio>Navigate to Tools > Nuget Package Manager >Package Manage Settings>Azure Service Authentication>Verify/Change the account
Leo Liu's answer got me on the right track. My problem could have originated from having two different Azure DevOps accounts cached in Windows Credentials and Visual Studio started choosing which one to authenticate with at random.
Log out of both accounts in Windows Credentials.
(The Manage Connections window does not have access to source control now.)
Open up the Azure DevOps website and logout there.
Login on Azure DevOps website.
(Visual Studio's Manage Connections can access source control again.)
What did it for me was open VS without code and connect via Team Explorer, but then also it threw the same error and after some time I logged out of azure web and tried connecting via Team Explorer again and it worked.

tfs unable to browse projects

I'm using Visual Studio Team Services (was TFS Online) server {MyProject}.visualstudio.com. I'm able to connect to the server, map the project, even receive a review request, but I can't see my team projects under DefaultCollection.
Currently when I'm opening the Source Control Explorer I'm only seeing
{MyProject}.visualstudio.com\DefaultCollection
underlying projects are missing, but my user is in project team members list.
What I missed, what I should do else to be able to browse my projects, get and work with them?
Note: My account was not a microsoft account. I received an email to join the visual studio after tfs administrator added my email as the project team member. I follow to the link and I create a new account during VS sign up using that email and then successfully signed in.
Thanks a lot
This is usually caused by the "Access Level" that the Admin assigned to your account.
When your account is assigned as "Stakeholder", you can only access to "Work" section, cannot access to "Code". If you want the access to "Code", you need to ask your Admin to change the access level of your account.
Have the TFS Admin review your user's rights to the code in the team project. Generally we add users to the Contributor role for the project.
You should also try hitting the Refresh button (third from the right) on the Source Control Explorer window.
I had similar problem and as usual Microsoft has not useful error. Here is step by step tutorial to fix it.
The problem
Solution
This is related to user permissions. Note two things
If you are using 5 user free version, make sure to select user as "Basic user". Free version allows only basic membership.
Then go to Security setting, expand to see "Team Foundation Administrators" and add the new user this. This should resolve the browe project issue.

TF30063: You are not authorized to access Collection. Nuget and Tfs conflicting

Latest Comment
I believe my problem occurs when using Nuget, however, if you are reading because of the TF30063 error. Have a look at the answer I provided and accepted.
Original Post
I am getting this error message when I try to check out. This happens randomly and can occur even if minutes ago the same instance of visual studio allowed me to check something else out for edit.
The current workaround is to reopen VS2010.
Using W7x64, vs2010 ultimate with TF2010 and sql2008 on my local dev machine. I am not part of a domain. I am the administrator of this computer.
Additional 2011-08-09
When the problem occurrs, I "close solution" under file. And then reopen the solution. I then get a uid/pwd box. I put my admin uid/pwd into it and then get a further error message. Again, closing vs2010 and reopening solves the issue.
Additional: 2011-08-30
I believe this has to do with nuget. I have provided an answer and so far after many months I have not had a TFS error. Where I should have had an error given the types of operations I have been performing which were identical to the scenarios making it fail.
I noticed that the problem occurred mostly after i installed a nuget package. After adding a nuget package i found that I could not check out. Restarting Visual Studio helped.
Based on this discussion:
http://nuget.codeplex.com/discussions/254328
i used this solution which appears to be working:
(I have copied the solution here if ever the webpage disappears)
Control Panel / Internet Options / Security Tab
Select "Local Intranet"
Click Sites button
Click Advanced Button
Add your TFS server http address to the list. e.g. http://tfs
Restart Visual Studio
Source: http://blog.rthand.com/post/2011/08/26/Fixing-combination-of-NuGet-and-Team-Foundation-in-workgroup-configuration-401-Unauthorized.aspx (Go straight down to The Solution half way down).
Don't let the Internet Options part fool you. I do not use Internet Explorer and this solved my issue.
I found this issue and the accepted solution didn't work for me. For me the problem occurred when trying to add a NuGet package to my project (through either the console or the GUI) and it would show the login prompt but not accept my user/password. It would try around 4 times and then fail and roll back the installation.
It turns out for me the issue was that I had Fiddler open and as soon as I closed it (to undo the proxy settings) I was then able to install the package without any issue. I didn't even have to restart Visual Studio to get it working.
Just thought I'd share this for the next person who comes across this issue.
I want to add a solution for people who are using VisualStudio online. My problem was that I was logged into VS2013 with the wrong Microsoft Account.
I would like to point that the accepted solution didn't work for me - probably it is for IE users.
My fix was to "clear the package cache"
Open VS
Go to Tools-> Options
Open "NuGet Package Manager" and select General
Click in the button: "clear the package cache"
When I had this problem I checked Event Viewer on my TFS machine and it showed a bunch of insufficient permissions Windows Sharepoint Service errors. I ended up just disabling the Sharepoint aspects of TFS since I wasn't using them anyways.
Got the error TF30063: You are not authorized to access Collection when comparing or merging the solutions in tfs 2012.
I found that enabling and disabling the windows authentication in IIS did randomly fix the error but found the disk space issue,
Once i cleared it, and enabled the windows authentication for TFS in IIS, it was a fix for me.!
-Pasha
This answer got me far enough to solve:
Control Panel / Internet Options / Security Tab Select "Local
Intranet" Click Sites button Click Advanced Button Add your TFS server
http address to the list. e.g. http://tfs Restart Visual Studio
On our internal network, for some reason, our computers don't always recognize other computers as being part of the domain - resulting in connections being sporadic/intermittent. My user had a restricted list set by domain policy, so I couldn't edit it. However, I could change the connection from just the computer name to the computer's fully qualified domain name and that appears to have solved the problem.

Resources